ModelDownloader(sparkSession, localPath, serverURL='https://mmlspark.azureedge.net/datasets/CNTKModels/')¶
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.
Download a model
models – The models to be downloaded
list of models downloaded
- Return type
Downloads models stored locally on the filesystem
Downloads models stored remotely.
ModelSchema(name, dataset, modelType, uri, hash, size, inputNode, numLayers, layerNames)¶
An object that represents a model.
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
MicrosoftML is a library of Python classes to interface with the Microsoft scala APIs to utilize Apache Spark to create distibuted machine learning models.
MicrosoftML simplifies training and scoring classifiers and regressors, as well as facilitating the creation of models using the CNTK library, images, and text.