modlee.model_metafeatures module
- modlee.model_metafeatures.ImageClassificationMetafeatures
alias of
ImageModelMetafeatures
- class modlee.model_metafeatures.ImageModelMetafeatures(torch_model: Module, *args, **kwargs)[source]
Bases:
ModelMetafeatures
- class modlee.model_metafeatures.ImageSegmentationModelMetafeatures(torch_model: Module, *args, **kwargs)[source]
Bases:
ImageModelMetafeatures
- class modlee.model_metafeatures.ModelMetafeatures(torch_model: Module, *args, **kwargs)[source]
Bases:
object
- static dataframe_lists_to_columns(df: DataFrame)[source]
Split dataframe columns that are lists to separate, indexed columns
- Parameters:
df – _description_
- static get_graph_dataframe(onnx_graph, *args, **kwargs)[source]
Parse the layers of the model, maybe as a dataframe? With columns of layer type, parameters, indices (position in graph) Can then calculate parameters e.g. counts, parameter ranges, etc This almost seems like a converter function
- static get_layer_counts(df: DataFrame)[source]
Get the counts of each layer type in a dataframe
- Parameters:
df – _description_
- class modlee.model_metafeatures.TextModelMetafeatures(torch_model, *args, **kwargs)[source]
Bases:
ModelMetafeatures