neuralset.extractors.meta.ExtractorPCA¶
- pydantic model neuralset.extractors.meta.ExtractorPCA[source][source]¶
Applies a PCA to another extractor’s data The underlying extractor is first computed through the prepare method, and then the current extractor applies the PCA on it. Both caches are stored.
- Parameters:
- Fields:
- field extractor: BaseExtractor [Required][source]¶
- prepare(obj: Any) None[source][source]¶
Pre-compute and cache extractor data for a collection of events.
This method triggers
_get_dataon every matching event so that expensive computation (e.g. model inference) is done once and cached. It then calls the extractor on a single event to populate the output shape, which is needed whenallow_missing=True.Call
preparebefore using the extractor in a dataloader.