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.1.tar.gz (52.4 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.1-py3-none-any.whl (65.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brisk_ml-0.1.1.tar.gz
  • Upload date:
  • Size: 52.4 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.1.tar.gz
Algorithm Hash digest
SHA256 321288783a4ef9a28f50fd9f553cd5b9042fcc14ca738cc5bbebaa7bc4a82091
MD5 e75c73b45bc517be643429f10f18042a
BLAKE2b-256 8989ebadb59326849efb0d3b15a7c8b1e436d6b8f86ba045cdcf4c8ed840316d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brisk_ml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 65.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8a261319431802d4f6fab082ddbb056c3f46889b44d40f9abbe2f704579cd4b
MD5 8497da3d2e542efc5b44a2847fa7a7df
BLAKE2b-256 f3734d4e44249c584d0838e93332f1729f4ffae72fc360b0606cf9926664b4ce

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