module mlapp.mlstorage_rest

Inheritance diagram of lightmlrestapi.mlapp.mlstorage_rest

Short summary

module lightmlrestapi.mlapp.mlstorage_rest

Machine Learning Post request

source on GitHub

Classes

class

truncated documentation

MLStoragePost

Implements a simple REST API to upload zip files. The application assumes machine learning models are actionable …

Static Methods

staticmethod

truncated documentation

data2json

numpy.array cannot be converted into json. We change the type into a list.

Methods

method

truncated documentation

__init__

_predict

Stores the model in the storage.

_store

Stores the model in the storage.

on_post

Processes a POST request.

Documentation

Machine Learning Post request

source on GitHub

class lightmlrestapi.mlapp.mlstorage_rest.MLStoragePost(secret=None, folder='.', folder_storage='.', version=None)

Bases: BaseLogging

Implements a simple REST API to upload zip files. The application assumes machine learning models are actionable through the following template: Templates.

source on GitHub

Parameters:

source on GitHub

__init__(secret=None, folder='.', folder_storage='.', version=None)
Parameters:

source on GitHub

_predict(args)

Stores the model in the storage.

source on GitHub

_store(args)

Stores the model in the storage.

source on GitHub

static data2json(data)

numpy.array cannot be converted into json. We change the type into a list.

source on GitHub

on_post(req, resp)

Processes a POST request.

Parameters:
  • req – request

  • resp

source on GitHub