PipeRider Python SDK
Project description
PipeRider Python SDK
PipeRider SDK is a python library to manipulate your project resources on the PipeRider.
Configuration
Before using the sdk, you need a api key
to authenticate with the api server. Visit the user settings page and
generate your api key:
When the api key available, set it to the environment:
export PIPERIDER_API_KEY=<user_api_key>
Or setup it with help function:
from PipeRider.api.http_client import set_api_key
set_api_key('api-key')
Install
pip install piperider-python-sdk
Usage
First, start a new project my-pipe-rider
import PipeRider
project = PipeRider.project('my-pipe-rider')
Then, create a run to keep ML project settings:
with project.runs.create(name='Awesome Run') as run:
run.config = {'learning_rate': 0.02,
'architecture': 'CNN',
'dataset': 'TKNV-users', }
run.params = {
'batch_size': 64,
'epoch': 100,
'learning_rate': 0.005
}
Don't forget to link dataset, it is useful when reviewing how a model built:
run.add_dataset('golden-dataset')
The run
could be used logging metrics and mark the final result:
offset = random.random() / 5
for ii in range(2, 10):
acc = 1 - 2 ** -ii - random.random() / ii - offset
loss = 2 ** -ii + random.random() / ii + offset
# 2️⃣ Log metrics from your script to PipeRider
run.log({"acc": acc, "loss": loss})
# the final metrics
run.metrics = {"acc": 0.987, "loss": 0.123}
You also could add comment to the timeline:
project.comment('it is a good idea.')
Finally, mark the run as winner if it was so outstanding:
run.win()
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
Built Distribution
File details
Details for the file piperider-python-sdk-0.0.1.tar.gz
.
File metadata
- Download URL: piperider-python-sdk-0.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c2ffdc26153e62b717e8ed91a59746c546dd2ee457b9ba196cb17f522d7d58 |
|
MD5 | a7d67958e2bc1e4d0cd7ed58fc95ef78 |
|
BLAKE2b-256 | ae4a2314b318bfe827090573ddff36789622945ae14f9b337572d31cd24a6a4f |
File details
Details for the file piperider_python_sdk-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: piperider_python_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0825b5692d716f47672464a57f6b2c3053606ab96e23d24d7b3ad7374f1bd9 |
|
MD5 | 98fe342fc0f48285267073fcf7e75970 |
|
BLAKE2b-256 | 4a8d723e27da71b962497da73272bca2031684db222a2807161fc79f9b5f0106 |