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.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for logicplum-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6aa432ee91a88649dd453c4ff9a34901671d15b3d054457e188b1dbd287b85 |
|
MD5 | c22e42ada2e6cb09ca09958c0475e2ea |
|
BLAKE2b-256 | 622d7ee37eef4aa364e4279de38e4c7706837f580de48ee61ce6ee0d64bebac9 |