AEPMM#
parametricmatrixmodels.modules.AEPMM
- AEPMM#
addAppend a module to the end of the model.
add_moduleAppend a module to the end of the model.
appendAppend a module to the end of the model.
append_moduleAppend a module to the end of the model.
astypeConvenience wrapper to set_precision using the dtype argument, returns self.
compileCompile the model for training by compiling each module.
copyCreate a deep copy of the module.
deepcopyCreate a deep copy of the module.
deserializeDeserialize the model from a dictionary.
freezeFreeze the module parameters by setting trainable to False.
from_fileLoad a model from a file and return an instance of the Model class.
get_hyperparametersGet the hyperparameters of the model as a dictionary.
get_modulesGet the modules of the model.
get_num_trainable_floatsReturns the number of trainable floats in the module.
get_output_shapeGet the output shape of the model given an input shape.
get_paramsGet the parameters of the model.
get_rngget_stateGet the state of the model.
get_trainable_modulesReturn a PyTree with the same structure as the model's modules, where each leaf node is a boolean indicating whether the corresponding module is trainable (i.e. mod.trainable == True and mod.get_params() is not None/()).
grad_inputDoc TODO
grad_paramsDoc TODO
insertInsert a module at a specific index in the model.
insert_moduleInsert a module at a specific index in the model.
is_readyReturn True if the module is initialized and ready for training or inference.
loadLoad the model from a file.
popRemove and return a module by key or index in the model.
pop_module_by_indexRemove and return a module at a specific index in the model.
pop_module_by_keyRemove and return a module by key or index in the model.
predictCall the model with the input data.
prependPrepend a module to the beginning of the model.
prepend_modulePrepend a module to the beginning of the model.
resetsaveSave the model to a file.
save_compressedSave the model to a compressed file.
serializeSerialize the model to a dictionary.
set_hyperparametersSet the hyperparameters of the model from a dictionary.
set_paramsSet the parameters of the model from a PyTree of PyTrees of numpy arrays.
set_precisionSet the precision of the model parameters and states.
set_rngSet the random key for the model.
set_stateSet the state of the model from a PyTree of PyTrees of numpy arrays.
trainunfreezeUnfreeze the module parameters by setting trainable to True.
upgradeUpgrade serialized module data to the current version.
nameReturns the name of the module, unless overridden, this is the class name.
trainableWhether the module is trainable (i.e., whether its parameters should be updated during training).
alias of
AffineEigenvaluePMM