Skip to main content

Pd auto_ml provides a pandas dataframe accessor to allow using dataframes with MindsDB (either the local native library or a local or remote mindsdb server)

Project description

Python MindsDB SDK

It enables you to connect to a midnsDB server and use it in a similar way to mindsb_native.

Install

pip install mindsdb_sdk

Example of usage

from mindsdb_sdk import SDK

# connect
mdb = SDK('http://localhost:47334')

# upload datasource
mdb.datasources['home_rentals_data'] = {'file' : 'home_rentals.csv'}

# create a new predictor and learn to predict
predictor = mdb.predictors.learn(
    name='home_rentals',
    datasource='home_rentals_data',
    to_predict='rental_price'
)

# predict
result = predictor.predict({'initial_price': '2000','number_of_bathrooms': '1', 'sqft': '700'})

Tests

Before run tests, change SERVER and CREDENTIAL constants in tests/test.py. After that, run python3 tests/test.py
Test file - is a good place where you can find some examples of api usage.

API Reference(WIP)

class MindsDB(server: str, params: dict)

class DataSources()

class DataSource()

class Predictors()

class Predictor()

class Proxy()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pd_auto_ml-0.4.0.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file pd_auto_ml-0.4.0.tar.gz.

File metadata

  • Download URL: pd_auto_ml-0.4.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for pd_auto_ml-0.4.0.tar.gz
Algorithm Hash digest
SHA256 90fbb6d28cc0d7a02d626e6df5b4186b8302fe82f3ca8c6085e12c874e2108a4
MD5 de703e51570fdd086b1c9c8617ca62d4
BLAKE2b-256 df1b8b3ddf8d1665c27f1945dadae9d9dfd14aff5f98d6b631b395c1412950d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page