Skip to main content

Convenient access to the Akkio API from python

Project description

akkio-python

Convenient access to the Akkio API from python

Installation

pip install akkio

Usage

import akkio
akkio.api_key = 'YOUR-API-KEY-HERE' # get your API key at https://app.akk.io/team-settings

models = akkio.get_models()['models']
for model in models:
  print(model)

datasets = akkio.get_datasets()['datasets']
for dataset in datasets:
  print(dataset)

new_dataset = akkio.create_dataset('python api test')
print(new_dataset)

# create a toy dataset
import random
rows = []
for i in range(1000):
  rows.append({
    'x': random.random()
  })
  rows[-1]['y'] = rows[-1]['x'] > 0.5

akkio.add_rows_to_dataset(new_dataset['dataset_id'], rows)

new_model = akkio.create_model(new_dataset['dataset_id'], ['y'], [], {'duration': 1})
print(new_model)
prediction = akkio.make_prediction(new_model['model_id'], [{'x': 0.1}, {'x':0.7}], explain=True)
print(prediction)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akkio-1.0.5.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

akkio-1.0.5-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file akkio-1.0.5.tar.gz.

File metadata

  • Download URL: akkio-1.0.5.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.7

File hashes

Hashes for akkio-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b9cf8a26edce99ffb6150d87424fded69570341722310089016c5051bdf7b2b9
MD5 02043e025a910b2392211f53760cf250
BLAKE2b-256 953c1605494e641c4ad11fa0945c2be6ccd95cfd6fb8eefa4d24b72a69789cd1

See more details on using hashes here.

File details

Details for the file akkio-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: akkio-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.7

File hashes

Hashes for akkio-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cd3f92b228fa6f3440396b5de8db8b02d1bec65d8f563f75af7eb81acedb40d5
MD5 f054473db56e8e72d130507c3068381e
BLAKE2b-256 25e4ab7cac81eb16fec04b1ff622be9f2ea98bbb5137013c0f71ed0790f8670c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page