Methods

Summary

method

class parent

truncated documentation

__init__

AuthMiddleware

__init__

BaseLogging

__init__

MachineLearningPost

__init__

MLStorage

__init__

ZipStorage

__init__

MLStoragePost

_check_name

MLStorage

A name is valid if it is a variable name or a filename if data is True.

_check_name

ZipStorage

A name is valid if it is a variable name or a filename if data is True.

_import

MLStorage

Imports the main module for one model.

_load

MachineLearningPost

_logerrorinfo

BaseLogging

Logs any king of data into the logs.

_makedirs

MLStorage

Creates a subfolder and add a file __init__.py. The function overwrites it file __init__.py to let …

_makedirs

ZipStorage

Creates a subfolder and add a file __init__.py. The function overwrites it file __init__.py to let …

_predict

MLStoragePost

Stores the model in the storage.

_predict_single

MachineLearningPost

_store

MLStoragePost

Stores the model in the storage.

_token_is_valid

AuthMiddleware

Decides if it is valid or not.

add

MLStorage

Adds a project based on the data. A project which already exists cannot be added.

add

ZipStorage

Adds a project based on the data. A project which already exists cannot be added.

call_predict

MLStorage

Calls method restapi_predict from a stored script python.

call_version

MLStorage

Calls method restapi_version from a stored script python.

check_single

MachineLearningPost

Checks the sequence load + predict returns something with the given observations.

duration

BaseLogging

Get the duration since save_time() was called.

empty_cache

MLStorage

Removes one place in the cache if the cache is full. Sort them by last access.

enumerate_names

MLStorage

Returns the list of sub folders.

enumerate_names

ZipStorage

Returns the list of sub folders.

error

BaseLogging

Logs any king of data into the logs.

exists

MLStorage

Tells if project name exists.

exists

ZipStorage

Tells if project name exists.

get

MLStorage

Retrieves a project based on its name.

get

ZipStorage

Retrieves a project based on its name.

get_full_name

MLStorage

Returns the full name of a project.

get_full_name

ZipStorage

Returns the full name of a project.

get_metadata

MLStorage

Restores the data procuded by verify_data.

get_metadata

ZipStorage

Restores the data procuded by verify_data.

info

BaseLogging

Logs any king of data into the logs.

load_model

MLStorage

Loads a model into the cache if not loaded and returns it.

on_post

MachineLearningPost

on_post

MLStoragePost

Processes a POST request.

parse_auth_token_from_request

AuthMiddleware

Parses and returns Auth token from the request header. Raises falcon.HTTPUnauthoried exception with proper error …

process_request

AuthMiddleware

Processes an authentification request.

save_time

BaseLogging

Saves the times to get a duration later.

verify_data

MLStorage

Performs verifications to ensure the data to store is ok. The storages expects to find at least one script …

verify_data

ZipStorage

Performs verifications to ensure the data to store is ok.