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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logicplum-1.0.1.tar.gz.
File metadata
- Download URL: logicplum-1.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50f40f7a35710ec7ce6fa7b33586c0d5caac11438677fb88013cbfeb3c1ca605
|
|
| MD5 |
18f4f90f8f3d2bd006dbab05b36056a4
|
|
| BLAKE2b-256 |
1fa9da48ad50cb09c0ba9c6db212cf2b3090caf8c5b4f1298fc0cb49963c5a2a
|
File details
Details for the file logicplum-1.0.1-py3-none-any.whl.
File metadata
- Download URL: logicplum-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b2b604ca8d9569cfb4711f6b74b94e9c08ea08d6461dd0ee23abaf91550fdc
|
|
| MD5 |
abe3caeb86709d72827ef305d2891a7e
|
|
| BLAKE2b-256 |
f3541adadd2032a0bac25518017d68def4aa1b130e921e5fe058a108eed2fff1
|