Skip to main content

A package for distributed scikit-learn tasks.

Project description

distributed-ml

distributed-ml is a Python-based machine learning package that facilitates model training, hyperparameter tuning, and data handling through a structured API. It supports various scikit-learn estimators, including classifiers, regressors, and hyperparameter search classes like GridSearchCV and RandomizedSearchCV.

This package allows users to:

  • Create and manage API sessions
  • Check and download datasets
  • Train models with various configurations
  • Monitor job status with progress bars
  • Handle hyperparameter tuning efficiently

API Reference

MLTaskManager()

  • Instantiates class.
  • Returns session id.

check_data(data_name)

  • Checks if a dataset is available.
  • Arguments:
    • data_name (str): Name of the dataset.
  • Returns path where data was downloaded, otherwise 404 Error.

download_data(data_link, data_name, data_type)

  • Downloads data from a specified source.
  • Arguments:
    • data_link (str): URL or dataset identifier.
    • data_name (str): Name to save dataset as.
    • data_type (str): Source type (e.g., “kaggle”).
  • Returns path where data was downloaded.

train(estimator, dataset_name, train_params=None, wait_for_completion=False)

  • Submits a training job to the API.
  • Arguments:
    • estimator: A scikit-learn model.
    • dataset_name (str): Name of dataset.
    • train_params (dict, optional): Training configurations.
    • wait_for_completion (bool, optional): Whether to wait for the job to complete.
  • Returns training progress and job results (i.e. best results, best parameters)

check_job_status(job_id)

  • Retrieves the status of a training job.
  • Arguments:
    • job_id (str): Unique job identifier.
  • Returns training progress and job results (i.e. best results, best parameters)

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

distributed_ml-0.1.8.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file distributed_ml-0.1.8.tar.gz.

File metadata

  • Download URL: distributed_ml-0.1.8.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for distributed_ml-0.1.8.tar.gz
Algorithm Hash digest
SHA256 8fd350e1e35cd09c95830def2a4c58a047953b33d8c7381c47ab20365c158629
MD5 92bfb9865a94b05c0fe96ceceb7835f6
BLAKE2b-256 92eae737df23fe0f82d5ca8331fce2816dba68116a9730388e58b7f8c41da33e

See more details on using hashes here.

Supported by

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