MondoBrain API wrapper
Reason this release was yanked:
Deprecated
Project description
MondoBrain Python SDK
MondoBrain Python SDK is a python wrapper for the MondoBrain API that provides additional functionality such as dataframe ingest and one-off processing
Installation
Use the package manager pip to install mondobrain.
pip install mondobrain-sdk
Dependencies
Install from source
In the mondobrain-python
directory (same directory as this README.md file), run this command in your terminal:
pip install -e .
Usage
import mondobrain as mb
# Create a mb client & authenticate using your api-key
client = mb.Client(apiKey="<your-api-token-here>")
# Build a pandas dataframe and store in `df` (not shown)
# Convert your pandas df to a mondobrain df
mdf = mb.MondoDataFrame(df)
# Select a column as your outcome column & specify a target class
outcome = mdf["column_name"]
# for a discrete column
outcome.target_class = "Some_modality"
# for a continuous column the value should be `min` or `max`
outcome.target_class = "max"
# Get a dataframe of all columns you want to explor
explorable = mdf[["column_a", "column_b"]]
# Create a solver instance and pass in your mb client
solver = mb.Solver(client)
# Fit your data
solver.fit(explorable, outcome)
# Check your results
solver.real_values
See documentation and SDK Example.ipynb
in the mondobrain-python
directory for more in depth examples.
The package includes documentation to provide explanation and examples of usage.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Take a look at CONTRIBUTING.md
for more info
Please make sure to update tests as appropriate.
License
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
Hashes for mondobrain-1.0.0a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a68e05ee5a17bc434a2cdecf01e729ba879827ccecfe688312574728dee10c6 |
|
MD5 | 8200ab957a2d0b2d30b7eb7560429353 |
|
BLAKE2b-256 | 918164d2da07447ef505f410bae9fce75a77a608e002ad5b45948c18d3f3964c |