openlayer.OpenlayerClient#

class openlayer.OpenlayerClient(api_key=None)#

Client class that interacts with the Openlayer Platform.

Parameters
api_keystr

Your API key. Retrieve it from the web app.

Examples

Instantiate a client with your api key

>>> import openlayer
>>> client = openlayer.OpenlayerClient('YOUR_API_KEY_HERE')

Methods

add_dataframe(task_type, df, class_names, ...)

Uploads a dataset to the Openlayer platform (from a pandas DataFrame).

add_dataset(task_type, file_path, ...[, ...])

Uploads a dataset to the Openlayer platform (from a csv).

add_model(name, task_type, function, model, ...)

Uploads a model to the Openlayer platform.

create_or_load_project(name, task_type[, ...])

Helper function that returns a project given a name.

create_project(name, task_type[, description])

Creates a project on the Openlayer platform.

load_project(name)

Loads an existing project from the Openlayer platform.