Skip to main content

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.10.tar.gz (23.9 kB view hashes)

Uploaded Source

Built Distribution

captn_nanobit_client-0.0.10-py3-none-any.whl (21.8 kB view hashes)

Uploaded Python 3

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