module documentation
Undocumented
| Function | get |
Get model class from identifier string: |
| Function | get |
Print summary of model with identifier model_string. Input-shape and batch-size are needed to compute the estimated memory-footprint for forward- and backward-passes. |
| Function | load |
Undocumented |
| Function | load |
Undocumented |
| Function | load |
Undocumented |
| Variable | custom |
Undocumented |
| Variable | models |
Undocumented |
Get model class from identifier string:
Saddler et al 2020 dnn_modelling:
model_string = "saddler-???" where ??? should match one of the following:
TODO
Kell et al 2018 dnn_modelling:
model_string = "kell"
returns a model with the same architecture but with no input split and number of output classes
model_string = "kell-???"
returns same as above but with the number of channels reduced as $n // ??$, ??=1 makes no changes
model_string = "kell-1?-2?"
same as above for 1?, where 2? sets the size of the hidden fully connected layer
| Parameters | |
| model | model identifier string |
| **kwargs | |
| Returns | |
( | [0] the actual model as a class [1] boolean flag, indicating whether the model is based on PyTorch |
Print summary of model with identifier model_string. Input-shape and batch-size are needed to compute the estimated memory-footprint for forward- and backward-passes.
| Parameters | |
| model | string identifier for the model to get summary of |
| input | shape of expected input matrix |
| batch | batch size to use when training model |
| **kwargs | other kwargs passed on to get_model |
| Returns | |
| the model that was summarised | |