Skip to main content

A framework that helps train machine learning models using sklearn.

Project description

Brisk

v0.0.1

A framework that helps train machine learning models using sklearn.

The package aims to speed up the training process by providing built in methods for analysis. It also provides a strucutre to help keep code organized. The package automatically tracks the settings used during training to help with repeatability. Users can define their own methods for algorithms, metrics or evaluation and integrate them with the package methods easily.

Instructions

  1. Create a new project
  • brisk create -n project_name
  • Create directory with configuration files
  • cd ./project_name
  1. settings.py
  • in TRAINING_MANAGER_CONFIG define the algorithms to use
  • Define the paths to the data files to use
  • In WORKFLOW_CONFIG add settings for model training
  1. metrics.py
  • Define the metrics to use
  • Can load defaults from brisk.REGRESSION_METRICS or brisk.CLASSIFICATION_METRICS
  • Can add custom metrics by defining a function that takes y_true and y_pred
    • Create a MetricWrapper with this function
  1. data.py
  • Define how data should be split/processed
  1. algorithms.py
  • Define the default parameters and hyperparameter space to use.
  • Can load defaults using brisk.CLASSIFICATION_ALGORITHMS or brisk.REGRESSION_ALGORITHMS
  1. Create a Workflow
  • In workflows/ directory define a Workflow class
  • you can access built in evaluation methods
  • You can define your own methods in the workflow class
  1. Run the Workflow
  • navigate to the project root (directory created by brisk create)
  • brisk run -w workflow_file
  • This will run the workflow defined by the workflow class in this file
  1. Analyze Results
  • results are stored in the results directory
  • When complete an HTML report is generated
  • Analysis of the data splits is run automatically
  • A log file with the settings used is created
  • All the built in evaluation methods export their results to a file by default

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

brisk_ml-0.0.1.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brisk_ml-0.0.1-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

Details for the file brisk_ml-0.0.1.tar.gz.

File metadata

  • Download URL: brisk_ml-0.0.1.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.0 Linux/6.8.0-40-generic

File hashes

Hashes for brisk_ml-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0a6f6f2a581f0949b194e2ce11c98dacf0286cd4d6eb5d0a00d0f2912e8e8ec8
MD5 1a47b63b1bb2d95926cf4f551de1f97b
BLAKE2b-256 4d426927ca5931e72f264b6717df908ac5ff7d4e63e799b1b19e7d9b29b89fe4

See more details on using hashes here.

File details

Details for the file brisk_ml-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: brisk_ml-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 48.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.0 Linux/6.8.0-40-generic

File hashes

Hashes for brisk_ml-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a16367bd8a23aa737b20eedd80e46942f77b857aee96cd3efb75b3a670354bb2
MD5 b5ad130ed5a860ff2ce321a8ce4bfef3
BLAKE2b-256 3ac8fb519eb76a30a73f1294996c1c892c9a1afa7f35b0ea66d10b4918451bed

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