Python client for Forbin API
Project description
api-python-client
Installation
pip install forbin
Use
from forbin.client import Client, Submission
from sklearn.ensemble import RandomForestClassifier
client = Client(username='username', password='password')
challenges = client.challenges()
challenge = challenges[0]
clf = RandomForestClassifier(max_depth=2, random_state=0)
clf.fit(challenge.x_train, challenge.y_train)
submission = Submission(client)
submission.confidence = 0.8
submission.stake = 1
submission.y_live = clf.predict(challenge.x_live)
submission.y_test = clf.predict(challenge.x_test)
submission.save()
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
forbin-0.1.tar.gz
(7.5 kB
view details)
Built Distribution
forbin-0.1-py3-none-any.whl
(7.3 kB
view details)
File details
Details for the file forbin-0.1.tar.gz
.
File metadata
- Download URL: forbin-0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9475ef5111f04771cd249324bc2cde7b05ac8426488b9f7c7f28a61d4dae74c2
|
|
MD5 |
4cb79ec8f6bcbaaa535a0760dd41aa45
|
|
BLAKE2b-256 |
1379c86699e3739dd9ea2aa6db1007e5b8f26f32417c3d835d325f38b575c84b
|
File details
Details for the file forbin-0.1-py3-none-any.whl
.
File metadata
- Download URL: forbin-0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ecf4eaeb41e43c4c4a3c0611dd9032f8813fa7c62b7db4b702dbc07f4047f0d4
|
|
MD5 |
834ae7a91ddd0b984713e3ba625d68c4
|
|
BLAKE2b-256 |
a6b349b937252fe89eb91b51448aec0f68ec00799340baf9cca4c1f6aba20c28
|