beyondml
Project description
Model One python wrapper
Model One is a few-shot AutoML system.
Model One can do almost anything that requires understanding or generating natural language. Model One is able to solve tasks in 12 languages: English, Spanish, Portuguese, Russian, Turkish, French, German, Italian, Arabic, Polish, Dutch, and Hebrew.
This package provides a simple wrapper for using our api.
Using model-one
package allows you to train and apply models.
Get started
Firstly fill out the form to get a key to access the API. We will send you the key within a day.
Install
To install the package just use pip --install model-one
.
Usage
import model_one
import pandas as pd
model_one.API_KEY = 'YOUR_API_KEY'
# create a model
model = model_one.create_generator()
# save the model for further usage
model.save('filename.json')
# if you want to load
model = model_one.load('filename.json')
tdf = pd.read_csv('train.csv')
vdf = pd.read_csv('test.csv')
# upload datasets
model.upload(tdf['inputs'], tdf['outputs'], vdf['inputs'], vdf['outputs'])
model.fit()
# wait...
# a few hours
# while our GPUs train your model
print(model.status())
print(model.ready())
# inference!
model.generate('The Answer to the Ultimate Question of Life, the Universe, and Everything')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
model_one-0.1.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for model_one-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c43c6d4f9d5c10c12c05dd91cfb978935470a607458d120404fa485baa4897 |
|
MD5 | 7f18b59eb45db0f1c444732eb92672d1 |
|
BLAKE2b-256 | 2c0f799d3708c1c6e20c0733c1ee7220cc7fd97d542a66653082b0ce0e7a3ce6 |