Giter Site home page Giter Site logo

mohshaikh23 / wine-quality-prediction-using-mlflow Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.12 MB

Wine Quality Prediction using ElasticNet Regression using MLFlows

License: MIT License

C 0.55% PowerShell 3.02% Batchfile 0.17% Python 16.11% Roff 0.88% HTML 0.18% JavaScript 2.38% CSS 66.39% Jinja 10.29% Smarty 0.03%
elasticnet-regression machine-learning mlflow supervised-machine-learning

wine-quality-prediction-using-mlflow's Introduction

Wine Quality Prediction using ElasticNet Regression

This project demonstrates how to build and deploy a machine learning model for predicting wine quality using the ElasticNet regression algorithm. The dataset used in this example is sourced from the UCI Machine Learning Repository and contains physicochemical properties of wines.

Dataset Information

Project Structure

  • wine_quality_prediction.py: Python script containing the machine learning code.
  • requirements.txt: A list of Python packages required to run the project.
  • README.md: This file, providing an overview of the project.
  • LICENSE: The license information for the project.
  • .gitignore: Specifies files and directories to be ignored by Git.
  • mlruns/: MLflow tracking directory for storing experiment runs.
  • data/: Directory where the dataset is downloaded and stored.

Getting Started

Prerequisites

Before running the project, make sure you have the following prerequisites installed:

  • Python 3.x
  • Required Python packages (install via pip install -r requirements.txt).

Running the Project

  1. Clone this repository to your local machine:

    git clone https://github.com/Mohshaikh23/Wine-Quality-Prediction-using-MLFlow.git
    cd wine-quality-prediction

    for dagshub:

       
       set MLFLOW_TRACKING_URI=https://dagshub.com/Mohshaikh23/Wine-Quality-Prediction-using-MLFlow.mlflow
    
       set MLFLOW_TRACKING_USERNAME=Mohshaikh23
    
       set MLFLOW_TRACKING_PASSWORD=your_password
  2. Install the required packages:

    pip install -r requirements.txt
  3. Run the machine learning script to train an ElasticNet regression model and log the results using MLflow:

    python wine_quality_prediction.py <alpha> <l1_ratio>

    Replace <alpha> and <l1_ratio> with your desired values for model hyperparameters. If not provided, default values are used.

  4. MLflow will log the model and metrics, and you can view the results in the MLflow UI.

   mlflow ui

models view models view chart comparison chart comparison model information model information model parameters and metrics model parameters and metrics model prediction analogy model prediction analogy

Model Deployment

The trained ElasticNet model can be deployed using various platforms, such as MLflow's built-in model serving capabilities, cloud-based solutions, or other deployment options. For specific deployment instructions, refer to the documentation of your chosen deployment platform.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • UCI Machine Learning Repository for providing the Wine Quality dataset.
  • MLflow for model tracking and management.
  • The authors of the Wine Quality dataset for their valuable contributions to the field of data mining.

Feel free to contribute to this project by opening issues or submitting pull requests. Happy modeling!

wine-quality-prediction-using-mlflow's People

Contributors

mohshaikh23 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.