Skip to content

rolling-scopes-school/ml-project-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo homework for RS School Machine Learning course.

This demo uses Heart Disease dataset.

Usage

This package allows you to train model for detecting the presence of heart disease in the patient.

  1. Clone this repository to your machine.
  2. Download Heart Disease dataset, save csv locally (default path is data/heart.csv in repository's root).
  3. Make sure Python 3.9 and Poetry are installed on your machine (I use Poetry 1.1.11).
  4. Install the project dependencies (run this and following commands in a terminal, from the root of a cloned repository):
poetry install --no-dev
  1. Run train with the following command:
poetry run train -d <path to csv with data> -s <path to save trained model>

You can configure additional options (such as hyperparameters) in the CLI. To get a full list of them, use help:

poetry run train --help
  1. Run MLflow UI to see the information about experiments you conducted:
poetry run mlflow ui

Development

The code in this repository must be tested, formatted with black, and pass mypy typechecking before being commited to the repository.

Install all requirements (including dev requirements) to poetry environment:

poetry install

Now you can use developer instruments, e.g. pytest:

poetry run pytest

More conveniently, to run all sessions of testing and formatting in a single command, install and use nox:

nox [-r]

Format your code with black by using either nox or poetry:

nox -[r]s black
poetry run black src tests noxfile.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages