[Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul...

6
BigML Inc API

Transcript of [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul...

Page 1: [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul Petersen

BigML Inc

API

Page 2: [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul Petersen

BigML Inc 2

https://au.bigml.io/ / /{id}?{auth}

sourcedatasetmodel

ensembleprediction

batchpredictionevaluationanomalycluster

andromeda

dev

dev/andromeda

• Path elements:

• /andromeda specifies the API version (optional)

• /dev specifies development mode

• if not specified, then latest API in production mode

• {id} is required for PUT and DELETE

• {auth} contains url parameters username and api_key

• api_key can be an alternative key

Page 3: [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul Petersen

BigML Inc 3

https://au.bigml.io/… {JSON} {JSON}

Operation HTTP Method Semantics

CREATE POSTCreates a new resource. Returns a JSON document including a unique identifier.

RETRIEVE GETRetrieves either a specific resource or a list of resources.

UPDATE PUT Updates a resource. Only certain fields are putable.

DELETE DELETE Deletes a resource

Page 4: [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul Petersen

BigML Inc 4

Operation HTTP Method Binding Method

CREATE POST api.create_<resource>(from, {opts})

RETRIEVE GETapi.get_<resource>(id, {opts})

api.list_<resource>({opts})

UPDATE PUT api.update_<resource>(id, {opts})

DELETE DELETE api.delete_<resource>(id)

Binding Overview

• Where <resource> is one of: source, dataset, model, ensemble, evaluation, etc

• id is a resource identifier or resource dict

• from is a resource identifier, dict, or string depending on context

Page 5: [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul Petersen

BigML Inc 5

BigML API Docs

https://bigml.com/developers

Page 6: [Tutorial] using big ml's simple api for classification, clustering and anomaly detection - Poul Petersen

BigML Inc 6

BigML Python Docs

https://bigml.readthedocs.org/en/latest/