Project for captn-nanobit client
Project description
Capt'n AI for Nanobit
Marketing campaigns optimization
Install
pip install captn-nanobit-client
How to use
from captn_nanobit_client.api import authorize, predict
from captn_nanobit_client.testing import get_test_dataframe
from captn_nanobit_client.plotly_graph import plot_prediction
# server is one of "staging" or "production"
server = "staging"
token = authorize(username=username, password=password, server=server)
Get pandas dataframe
df = get_test_dataframe()
Run the code below to make a prediction
prediction = predict(df, token=token)
Run the code below to draw a graph
graph = plot_prediction(df, prediction, last_n_days=3, target_day=29)
# uncomment this line to show the graph
# graph.show()
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
captn_nanobit_client-0.0.8.tar.gz
(23.9 kB
view hashes)
Built Distribution
Close
Hashes for captn_nanobit_client-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21f70a35bcc62f851bd3062dee10c2e6c5f2d6f889feb4083c6fde933c35ce5 |
|
MD5 | d95fdd48b8d901bd3ff8cf31aa7dbb5f |
|
BLAKE2b-256 | 1b90d80ff5b55b96f28454781c5f1f1fefdfd782e05804e3f5e1062e036da150 |
Close
Hashes for captn_nanobit_client-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07822cfb4bc7bc7b332ce774e7ade8f2b4ce9f779c18ba3bad5b54f2246e033d |
|
MD5 | b91e6e918ff2b0344828383eaef455d7 |
|
BLAKE2b-256 | 73cded927b0de42159320cb7a5426e6f4c8d62b57f869e67b0109506166d5686 |