Skip to content

beduncs/nd0821-c3-starter-code

 
 

Repository files navigation

nd0821-c3-starter-code

The nd0821-c3-starter-code project is a deployable machine learning model leveraging a FastAPI interface. This project was created as part of the Deploying a Scalable ML Pipeline In Production Project for the Udacity Machine Learning Devops Engineer course.

Installation

Use the package manager pip in conjunction with the requirements.txt file to setup the required environment dependencies.

pip install -r requirements.txt

Usage

Model Training

A new model can be trained by executing the train_model script. The TrainedModel dataclass containing the trained model, encoder, label binazer and metrics is output to the ./model/ folder.

python -m ml.train_model

API Deployment

The FastAPI interface can be deployed using uvicorn on a local machine using the following command.

uvicorn main:app --reload

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.8%
  • Procfile 0.2%