ModelDownloader¶
-
class
ModelDownloader.
ModelDownloader
(sparkSession, localPath, serverURL='https://mmlspark.azureedge.net/datasets/CNTKModels/')[source]¶ Bases:
object
A class for downloading CNTK pretrained models in python. To download all models use the downloadModels function. To browse models from the microsoft server please use remoteModels.
Parameters: -
downloadModel
(model)[source]¶ Download a model
Parameters: model (object) – The model to be downloaded Returns: model schema Return type: object
-
-
class
ModelDownloader.
ModelSchema
(name, dataset, modelType, uri, hash, size, inputNode, numLayers, layerNames)[source]¶ Bases:
object
An object that represents a model.
Parameters: - name (str) – Name of the model
- dataset (DataFrame) – Dataset it was trained on
- modelType (str) – Domain that the model operates on
- uri (str) – The location of the model’s bytes
- hash (str) – The sha256 hash of the models bytes
- size (int) – the size of the model in bytes
- inputNode (int) – the node which represents the input
- numLayers (int) – the number of layers of the model
- layerNames (array) – the names of nodes that represent layers in the network