📌 What I Did:

  • Loaded and explored the Iris.csv dataset.
  • Plotted histograms and density plots for visual exploration of feature distributions.
  • Split the data into training and testing sets.
  • Trained a Logistic Regression model to classify iris species based on flower measurements.
  • Evaluated the model’s accuracy on unseen data.
  • Saved the trained model as logistic_model.pkl for reuse or deployment.

🧠 ML Libraries Used & How I Installed Them:

Pandas

pip install pandas

Image description

For easy data manipulation and analysis.

Scikit-learn

pip install scikit-learn

Image description

The ML powerhouse! Used for splitting data, training the model, and evaluation.

Matplotlib

pip install matplotlib

Image description

For visualizing data with plots and charts.

Snippet :

Image description

Output :

Image description

Image description

Histogram :

Image description

Density_Plots :

Image description

GitHub Repository :

First Push Attempt (Everything up-to-date):

git push origin feature-24MCR115

Image description

  • Everything up-to-date
  • This means you had already pushed the feature-24MCR115 branch earlier, and no new commits were made since then.

Staging and Committing New Files :

git status
git add .
git add .gitignore hello_world_ml.py logistic_model.pkl
git commit -m "[feature-24MCR115 b890daa] Added ML model, script, and gitignore"

Image description

Image description

Image description

  • You staged all files using git add ..
  • You explicitly staged .gitignore, hello_world_ml.py, and logistic_model.pkl again (not harmful, just redundant since they were already added with git add .).
  • The commit was successfully created and shows the files added:

  • .gitignore

  • hello_world_ml.py

  • logistic_model.pkl

Image description