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
- Create a new project
- brisk create -n project_name
- Create directory with configuration files
- cd ./project_name
- 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
- 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
- data.py
- Define how data should be split/processed
- algorithms.py
- Define the default parameters and hyperparameter space to use.
- Can load defaults using brisk.CLASSIFICATION_ALGORITHMS or brisk.REGRESSION_ALGORITHMS
- 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
- 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
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brisk_ml-0.1.2.tar.gz.
File metadata
- Download URL: brisk_ml-0.1.2.tar.gz
- Upload date:
- Size: 52.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd260786457210c970341abca6d8af64d4e2493def1481668d9f4351e230dae
|
|
| MD5 |
3e81f8a9c48acd82caa11153e024fdbe
|
|
| BLAKE2b-256 |
599a9088dcbfa6dc1c7a2dda49244c2e3cb2e4f9efec029c5d8be82e8a177ed6
|
File details
Details for the file brisk_ml-0.1.2-py3-none-any.whl.
File metadata
- Download URL: brisk_ml-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6544547eddf77f3edda6e11d9f9181015d95b71ae5215542a6a96c8e4893a60b
|
|
| MD5 |
c2305c714dee1e59da85fb55a662c242
|
|
| BLAKE2b-256 |
92ead387670672a82446acd38b0c0cf4de5fa89fd92e9dda504c29b58cc4c423
|