Mind Foundry Analyze Python Client
Project description
Mind Foundry Analyze is a Data Science workbench developed by Mind Foundry.
This Python client makes it easier to interact with the API and integrate with other Python libraries.
Quick start:
from mindfoundry.client.analyze import create_project_api_client client = create_project_api_client(YOUR_INSTANCE_URL, YOUR_CLIENT_ID, YOUR_CLIENT_SECRET) with open('./your-training-data.csv', 'rb') as data: data_set_id = client.create_file_data_set(data, 'Your Data Set Name', 'Your description') model_id = client.create_classification_model('Your Model Name', data_set_id, 'Target Column') with open('./your-prediction-data.csv', 'rb') as other_data: other_data_set_id = client.create_file_data_set(other_data, 'Prediction Data') prediction_id = client.create_prediction(model_id, other_data_set_id, 'Your Prediction Name') client.download_prediction_as_csv(prediction_id, './your-output-file.csv')
You can also create a data set from a Pandas DataFrame, or an array of dicts, or an array of arrays:
data_dicts = [{'a': 1, 'b': 2}, {'a': 3}, {'b': 4}] client.create_file_data_set(data_dicts, 'Array of dicts') df = pd.DataFrame(data_dicts) client.create_file_data_set(df, 'Pandas DataFrame') data_arrays = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] client.create_file_data_set(data_arrays, 'Array of arrays')
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
Built Distribution
Close
Hashes for mindfoundry.client.analyze-1.20.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae6abe349970fcabb2a7e39d593a6ca2f4740ede7f4d17159efe4c92bcb2983 |
|
MD5 | 8bbc2f3c2273e1b0af018ebb2b5de516 |
|
BLAKE2b-256 | a082b955a7d57c14f27dcac0c17943408ee29135b77db2d3367b45604e6b37b5 |
Close
Hashes for mindfoundry.client.analyze-1.20.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6e1c0bf941e16a8b344e24f8397baf1a40b82e371e842bbca9e8b7c22317d3 |
|
MD5 | 903bc4aa484be9aad4ec4cc7f9f84691 |
|
BLAKE2b-256 | 289ef7c45f1e844e98506a1ec2f3a8d1f7e5f8c8fe0faadf2d29574651d1b083 |