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.1.0.tar.gz (47.2 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.1.0-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for brisk_ml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 706ab8976dc55eaf818bb6ef0fe13276dae382c27cdd5a052b028d2f89f17fec
MD5 beb48972444e60039df969139e3b861b
BLAKE2b-256 b2576677c74c45349133b904f3d6368ea666e3943b72319fdb233aebca600277

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for brisk_ml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d95549cc53291c5509f84387db8f87941c5a073948a73f9d4f2b30a85be119e
MD5 063383e06924631d730f913e8580405c
BLAKE2b-256 e478e0a0f62501bb874bda7b9188755a7af28d4541fc9a0ebbfff8d59e6e6870

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