src.model.deeplearn.dlrun.hierarchical_pre_processor
Classes
|
- class src.model.deeplearn.dlrun.hierarchical_pre_processor.HierarchicalPreProcessor(**kwargs)
- Author:
Alberto M. Esmoris Pena
Preprocess the input dictionary of X (coordinates), F (features), and y (expected values) so it can be feed into a hierarchical neural network (e.g., hierarchical autoencoder).
- Variables:
pre_processor_type (str) – String representing the type of pre-processor to generate the Input for the hierarchical neural network.
pre_processor (
HierarchicalFPSPreProcessor.) – The pre-processor itself (instantiated).
- __init__(**kwargs)
Initialization/instantiation of a hierarchical pre-processor.
- Parameters:
kwargs – The key-word arguments for the HierarchicalPreProcessor.
- __call__(inputs)
Executes the pre-processing logic.
- Parameters:
inputs (dict) – A key-word input where the key “X” gives the input dataset and the “y” (OPTIONALLY) gives the reference values that can be used to fit/train a hierarchical model.
- Returns:
Either (X, F, …NDi…, …Ni…, …NUi… yout) or (X, F, …NDi…, …Ni…, …NUi…). Where X are the input points, F are the input features, NDi are point-wise downsamlping neighborhoods at depth i, Ni are the point-wise neighborhoods at depth i, and NUi are the point-wise upsampling neighborhoods at depth i.
- overwrite_pretrained_model(spec)
Assist the
model.Model.overwrite_pretrained_model()method through assisting thearchitecture.Architecture.overwrite_pretrained_model()method.- Parameters:
spec (dict) – The key-word specification containing the model’s arguments.
- to_temporary_file()
Redirect call to underlying
ReceptiveFieldPreProcessor.to_temporary_file()(self.pre_processor).
- from_temporary_file()
Redirect call to underlying
ReceptiveFieldPreProcessor.from_temporary_file()(self.pre_processor).