|
|
| __setstate__ (self, state) |
| | Reinstall the descriptor lookup after loading an archive.
|
| Sequence[FeaturesLike] | compute_latent (self, Sequence[IndividualLike] inds, *, bool fit_transform=False) |
| | Encode named scores and cache the descriptors used for admission.
|
| None | train (self, int nb_epochs) |
| None | recompute_features_all_ind (self, update_params=None) |
| Optional[int] | add (self, IndividualLike individual, bool raise_if_not_added_to_parents=False) |
| int | update (self, Iterable iterable, bool ignore_exceptions=True, bool issue_warning=False) |
| Mapping[str, Any] | __get_summary_state__ (self) |
| str | summary (self, Optional[int] max_depth=None, Optional[int] max_entry_length=250) |
| Any | from_config (cls, Mapping[str, Any] config, **Any kwargs) |
|
|
| _init_methods_hooks (self) |
| | Route descriptor lookups through the wrapping encoder.
|
|
tuple[str,...] | _extracted_score_names (self) |
| | List the stable names of the wrapped archive's latent coordinates.
|
| torch.Tensor | _score_tensor (self, Sequence[IndividualLike] inds) |
|
| _model_input (self, model, data) |
| | Move encoder inputs to the model's device and floating-point dtype.
|
| | _encode (self, model, data) |
| | Encode a batch without autograd or training-time layers.
|
|
| _fit_quantile_transform (self, latent) |
| | Fit one empirical quantile mapping per latent coordinate.
|
|
| _transform_latent (self, latent, transformer) |
| | Apply a fitted transform, or use sigmoid before the first fit.
|
|
| _store_descriptors (self, inds, rows) |
| | Cache the descriptors returned to the underlying archive.
|
|
None | _create_default_model (self, IndividualLike example_ind) |
| | Construct a dense autoencoder from an example record.
|
|
| _make_default_model (self, IndividualLike example_ind) |
| | Build a default model without installing it or changing the archive.
|
|
| _input_shape (self, example_ind) |
| | Infer the shape of a score vector or array-valued observation.
|
| | _train_and_recompute_if_needed (self, update_params=None) |
| | Train while the current archive is still available.
|
Use an autoencoder's latent values as archive descriptors.
Install PyTorch separately. Supply consistent numeric named scores
across candidates. Choose their order with ``base_scores``. By default,
use the non-extracted scores in the order of the first training
entry's keys. The default model uses the wrapped container's
descriptor dimension as its latent width. Set ``observation_score``
to encode one fixed-shape numeric observation per individual.
The default model flattens these records. Supplied models receive
the observation shape with a leading batch dimension.
Train periodically from explicit training archives, immediate parents,
or the retained entries. After training, recompute latent features
and rebuild the wrapped archive. Pair with an autoscaling grid when
the latent domain should adjust as the model changes. Alternatively,
set ``quantile_transform=True`` and use a fixed unit grid. The decoder
still trains in observation space. Before the first fit, a sigmoid
maps provisional descriptors into the unit domain.
:param quantile_transform: Fit a separate empirical cumulative
distribution for each latent coordinate during a rebuild.
:param observation_score: Name of the array-valued record to encode.
Supply this or ``base_scores`` to choose the input.
Definition at line 96 of file feature_extraction.py.