This package is created to distribute KBox, which allow users to share and dereference ML models.
-
Download the library [here] (https://pypi.org/project/airML/)
-
Install using pip
pip install airML
Description:List all available models(kns=False) or list all KNS services(kns=True).
Args:
kns:'boolean',defines whether to list only the KNS services or not
Returns:
None
Throws:
OSError
Description:Install the a model by given modelID
Args:
modelID: 'string', url of the model hosted in a public repository.
format: 'string', format of the model.
version: 'string' specific version to be installed of the the model.
Returns:
None
Throws:
OSError
Example:
install("http://github.org/aksw/NSpM/monument_300","NSPM/Model","0")
Description:Install a given model base using the available KNS services to resolve it.
Args:
modelID:'string',url of the model to be installed.
format: 'string',format of the model.
version:'string',version of the model.
kns:'string', url of the kns service.
Returns:
None
Throws:
OSError
Description:Remove a given KNS service.
Args:
kns:'string', url of the kns service.
Returns:
None
Throws:
OSError
Description:Gives the information about a specific model.
Args:
model: url of the model to be installed.
format: format of the model.
version: version of the model.
Return:
None
Throws:
OSError
Description:Find the local address of the given model.
Args:
model: 'string', url of the model to be located.
Returns:
None
Throws:
OSError
Description:Search for all model-ids containing a given pattern.
Args:
pattern: 'string',pattern of the url of the models.
format: 'string',format of the model.
version: 'string',version of the model.
Returns:
None
Throws:
OSError
Description:Show the path to the folder which contains the models.
Returns:
Path of the installed models.
Throws:
OSError
"""
Description:Change the path of the resource folder.
Args:
dir:'string', new model path
Returns:
None
Throws:
OSError
"""
Description:Returns KBox version.
Returns:
KBox version.
Throws:
OSError
- See the source for this project [here] (https://github.com/AKSW/airML)
- Find the KBox source code [here] (https://github.com/AKSW/KBox)