Giter Site home page Giter Site logo

kidney-disease-classification-mlflow-dvc's Introduction

kidney-disease-classification-Mlflow-dvc

Workflows

  1. Update Configuration: Make necessary changes to the configuration file (config.yaml).
  2. (Optional) Update Secrets: If needed, update sensitive information in the secrets file (secrets.yaml).
  3. Update Parameters: Modify parameters in the params file (params.yaml).
  4. Update the Entity: Update the return type of a function in your code.(To update entities first write code in research folder experiment notebook then make it an entity.)
  5. Update Configuration Manager: Make changes to the configuration manager located in the 'src/config' folder.
  6. Update Components: Modify and enhance the components of your project.
  7. Update the Pipeline: Make updates to the project's data processing pipeline.
  8. Update Main.py: Enhance the main Python script.
  9. Update DVC Configuration: Update the DVC (Data Version Control) configuration for data tracking.

How to Run?

Steps:

  1. Clone the Repository:
    • Copy the URL of the repository and use the following command to clone it to your local machine:
git clone https://github.com/harshit-sharma1256/kidney-disease-classification-Mlflow-dvc.git

Step 01 - Create a Conda Environment:

  1. After opening the repository, create a Conda environment using the following commands:
conda create -p kidney python=3.8 -y
  • Note: You can replace "chicken" with any desired environment name.
conda activate kidney
  • Note: If you are using the latest version of Anaconda, use the following command:
activate kidney
   or 
activate kidney/

Step 02 - Install Requirements:

Install the required Python packages by running:

pip install -r requirements.txt

Running the Application:

To run the application, execute the following command:

python app.py

Afterward, open your web browser and navigate to your local host and port to access the application.

DVC Commands:

  1. Initialize DVC:
dvc init
  1. Reproduce DVC Pipeline:
dvc repro
  1. Visualize DVC Pipeline:
dvc dag

AWS CI/CD Deployment with GitHub Actions

1. Login to AWS Console:

Access your AWS account and log in to the AWS Management Console.

2. Create IAM User for Deployment:

Create an IAM user in AWS with specific access permissions, including EC2 and ECR.

  • EC2 Access: This provides access to virtual machines.
  • ECR: Elastic Container Registry, used to store Docker images in AWS.

3. Create ECR Repository:

Create an Elastic Container Registry repository to store and manage Docker images. Save the repository URI for later use.

4. Create an EC2 Machine:

Set up an EC2 instance with the Ubuntu operating system.

5. Install Docker on the EC2 Machine:

Optionally, update and upgrade the EC2 instance and install Docker to manage containers.

# Optional
sudo apt-get update -y
sudo apt-get upgrade

# Required
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker ubuntu
newgrp docker

6. Configure EC2 as Self-Hosted Runner:

Configure the EC2 instance as a self-hosted runner for GitHub Actions. This is done by following the settings in the GitHub repository under "Actions."

7. Setup GitHub Secrets:

In the GitHub repository settings, set up secrets for AWS credentials, ECR URI, and other necessary information.

  • AWS_ACCESS_KEY_ID: Your AWS access key.
  • AWS_SECRET_ACCESS_KEY: Your AWS secret access key.
  • AWS_REGION: Your AWS region (e.g., us-east-1).
  • AWS_ECR_LOGIN_URI: The ECR login URI.(Part before the '/')
  • ECR_REPOSITORY_NAME: The name of your ECR repository.(Part after the '/')

kidney-disease-classification-mlflow-dvc's People

Contributors

harshit-sharma1256 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.