This client library is designed to support the LogicPlum API.
Project description
LogicPlum
LogicPlum is a client library for working with the LogicPlum platform APIs.
Example
>>> import pandas as pd
>>> from logicplum import LogicPlum
>>>
>>>
>>> lp = LogicPlum("YOUR-API-KEY")
>>>
>>> # New Project
>>> project_id = lp.create_project("PROJECT-NAME", "PROJECT-DESCRIPTION")
>>> print(project_id)
>>>
>>> # Data Training
>>> train_df = pd.read_csv("datatotrain.csv")
>>> target = "TARGET-COLUMN-NAME"
>>> x = lp.train(project_id, train_df, target)
>>> print(x)
>>>
>>> # Check data training status
>>> training_status = lp.train_status(project_id)
>>> print(training_status)
>>>
>>> # List models
>>> models = lp.model_list(project_id)
>>> print(models)
>>>
>>> # Deploy a model
>>> model_id = "MODEL-ID-TO-DEPLOY"
>>> deployment_id = lp.deploy(project_id, model_id)
>>> print(deployment_id)
>>>
>>> # List deployed models
>>> deployments = lp.deployment_list(project_id)
>>> print(deployments)
>>>
>>> # Predictions
>>> score_df = pd.read_csv('datatoscore.csv')
>>> scores = lp.score(deployment_id, score_df)
>>> print(scores)
>>>
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
logicplum-1.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for logicplum-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b2b604ca8d9569cfb4711f6b74b94e9c08ea08d6461dd0ee23abaf91550fdc |
|
MD5 | abe3caeb86709d72827ef305d2891a7e |
|
BLAKE2b-256 | f3541adadd2032a0bac25518017d68def4aa1b130e921e5fe058a108eed2fff1 |