Python Library
Python library for Akkio
Last updated
Python library for Akkio
Last updated
As noted in the code samples below, you must get your API keys and copy them into your API code. Those can be found under the team settings page at the bottom of the Akkio app.
Create a new empty dataset.
Add rows to a dataset.
Get all datasets in your organization.
Get a dataset.
Recalculate the field types for a dataset.
Delete a dataset.
Get all models in your organization.
Delete a model in your organization.
Create a model (requires a dataset).
Sometimes creating models can take a while, especially if this is the first time creating a model on this dataset. create_model is idempotent and can be called multiple times with the same parameters.
Make a prediction using your model and new data.
input
description
dataset_name
The name of your newly created dataset.
input
description
dataset_id
A dataset id
rows
An array of rows to be added to the dataset in the following form:
[{ "field 1": "data", "field 2": "data" }, { ... }, ... ]
input
description
dataset_id
A dataset id
input
description
dataset_id
A dataset id
input
description
dataset_id
A dataset id
input
description
model_id
A model id
input
description
dataset_id
A dataset id
predict_fields
An array of field names to predict (case sensitive)
ignore_fields
An array of field names to ignore (case sensitive) (optional)
params
A dict with default value of:
{
"duration": 10,
"extra_attention": False,
"force": False
}
duration
is the duration in seconds to be used for model training.
extra_attention
can be enabled to help with predicting rare cases
force
forces a new model to be created
input
description
model_id
A model id
data
An array of rows to be predicted in the following form:
[{ "field 1": "data", "field 2": "data" }, { ... }, ... ]