<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gokila Narasimman</title>
    <description>The latest articles on DEV Community by Gokila Narasimman (@gokila0).</description>
    <link>https://dev.to/gokila0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3080209%2Ff228ba20-3395-4559-9489-b560990d64e3.png</url>
      <title>DEV Community: Gokila Narasimman</title>
      <link>https://dev.to/gokila0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gokila0"/>
    <language>en</language>
    <item>
      <title>CREATE AN DOCKER IMAGE FOR ML PROJECT</title>
      <dc:creator>Gokila Narasimman</dc:creator>
      <pubDate>Mon, 28 Apr 2025 16:51:01 +0000</pubDate>
      <link>https://dev.to/gokila0/create-an-docker-image-for-ml-project-2if0</link>
      <guid>https://dev.to/gokila0/create-an-docker-image-for-ml-project-2if0</guid>
      <description>&lt;p&gt;Step1:&lt;/p&gt;

&lt;p&gt;Create an Folder Structure and download the DataSet from Iris dataset from Kaggle.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbfycxq2vvz70c7vx7hb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbfycxq2vvz70c7vx7hb.png" alt="Image description" width="315" height="282"&gt;&lt;/a&gt;&lt;br&gt;
Step2:&lt;/p&gt;

&lt;p&gt;Create an Dockerfile for creating an docker image.&lt;/p&gt;

&lt;p&gt;We can get the dependencies "FROM PYTHON:3.9" , it is used to get the dependencies.&lt;/p&gt;

&lt;p&gt;We can run the required tools for running of the projects in this we have use pandas,matplotlib, scikit-learn for docker image to be run.&lt;/p&gt;

&lt;p&gt;"RUN PIP INSTALL PANDAS MATPLOTLIB SCIKIT-LEARN"&lt;/p&gt;

&lt;p&gt;We have to use Command "COPY . .", we have used it for source and destination.&lt;/p&gt;

&lt;p&gt;We have used to start container by docker image command.&lt;/p&gt;

&lt;p&gt;"CMD[python,"hello.py"]"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjrypzb0rvv9fl185hpl4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjrypzb0rvv9fl185hpl4.png" alt="Image description" width="618" height="293"&gt;&lt;/a&gt;&lt;br&gt;
Step 3:&lt;/p&gt;

&lt;p&gt;Create an docker image using&lt;br&gt;
"docker build -t username/filename:latest ."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2pf3iactfdh7n6hlktrq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2pf3iactfdh7n6hlktrq.png" alt="Image description" width="729" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa8v9y6radjdwzeq7l3ae.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa8v9y6radjdwzeq7l3ae.png" alt="Image description" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3m4w8e00yqhbz0tjeg40.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3m4w8e00yqhbz0tjeg40.png" alt="Image description" width="800" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>PREDICTION OF IRIS</title>
      <dc:creator>Gokila Narasimman</dc:creator>
      <pubDate>Fri, 25 Apr 2025 17:56:02 +0000</pubDate>
      <link>https://dev.to/gokila0/prediction-of-iris-4b58</link>
      <guid>https://dev.to/gokila0/prediction-of-iris-4b58</guid>
      <description>&lt;h2&gt;
  
  
  Installed Key Python Libraries for Machine Learning
&lt;/h2&gt;

&lt;p&gt;Checking the version of the pip installed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fflvhvjsbbcrsizkuf7yq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fflvhvjsbbcrsizkuf7yq.png" alt="Image description" width="800" height="54"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PANDAS&lt;br&gt;
Importing pandas for the machine learning code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frj683sqqb1uryz7pgmyc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frj683sqqb1uryz7pgmyc.png" alt="Image description" width="800" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SKICIT-LEARN&lt;/p&gt;

&lt;p&gt;Importing skicit learn&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flgtux2kh0h0srywxdw3b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flgtux2kh0h0srywxdw3b.png" alt="Image description" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MATPLOTLIB&lt;br&gt;
Importing matplotlib&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0fwz06k0bfonvohcqn5g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0fwz06k0bfonvohcqn5g.png" alt="Image description" width="800" height="209"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ALGORITHM&lt;br&gt;
from pandas import read_csv&lt;br&gt;
from matplotlib import pyplot&lt;br&gt;
from sklearn.linear_model import LogisticRegression&lt;br&gt;
from sklearn.model_selection import train_test_split&lt;br&gt;
import joblib&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 1: Load dataset
&lt;/h1&gt;

&lt;p&gt;filename = "Iris.csv"&lt;br&gt;
data = read_csv(filename)&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 2: Display data shape and preview
&lt;/h1&gt;

&lt;p&gt;print("Shape of the dataset:", data.shape)&lt;br&gt;
print("First 20 rows:\n", data.head(20))&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 3: Plot and save histograms silently
&lt;/h1&gt;

&lt;p&gt;data.hist()&lt;br&gt;
pyplot.savefig("histograms.png")&lt;br&gt;
pyplot.close()  # Close the plot so it doesn't show up in prompt&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 4: Plot and save density plots silently
&lt;/h1&gt;

&lt;p&gt;data.plot(kind='density', subplots=True, layout=(3,3), sharex=False)&lt;br&gt;
pyplot.savefig("density_plots.png")&lt;br&gt;
pyplot.close()&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 5: Convert to NumPy array and extract features/labels
&lt;/h1&gt;

&lt;p&gt;array = data.values&lt;br&gt;
X = array[:, 1:5]  # Features: Sepal/Petal measurements&lt;br&gt;
Y = array[:, 5]    # Target: Species&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 6: Split data into training (67%) and testing (33%)
&lt;/h1&gt;

&lt;p&gt;test_size = 0.33&lt;br&gt;
seed = 7&lt;br&gt;
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size=test_size, random_state=seed)&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 7: Create and train logistic regression model
&lt;/h1&gt;

&lt;p&gt;model = LogisticRegression(max_iter=200)&lt;br&gt;
model.fit(X_train, Y_train)&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 8: Evaluate and display accuracy
&lt;/h1&gt;

&lt;p&gt;result = model.score(X_test, Y_test)&lt;br&gt;
print("Accuracy: {:.2f}%".format(result * 100))&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 9: Save the trained model to a file
&lt;/h1&gt;

&lt;p&gt;joblib.dump(model, "logistic_model.pkl")&lt;/p&gt;

&lt;p&gt;IRIS DATASET&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F64jns2hwm7vg02soww0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F64jns2hwm7vg02soww0m.png" alt="Image description" width="611" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;OUTPUT&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcf7iqm1yf3iqtaxlpss0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcf7iqm1yf3iqtaxlpss0.png" alt="Image description" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DENSITY_PLOTS&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97p6inr3rqumpqbxge83.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97p6inr3rqumpqbxge83.png" alt="Image description" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;HISTOGRAM&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1qlusgtizm8h1a5u6qnj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1qlusgtizm8h1a5u6qnj.png" alt="Image description" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BRANCH CREATION IN GITHUB TO STORE THE CODE:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffoc14ifbn8fjn0kriax9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffoc14ifbn8fjn0kriax9.png" alt="Image description" width="751" height="345"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuoxiiaka9nitdokd4vve.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuoxiiaka9nitdokd4vve.png" alt="Image description" width="705" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmzsgxd45hth2aifxbrfw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmzsgxd45hth2aifxbrfw.png" alt="Image description" width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>pip</category>
    </item>
    <item>
      <title>Dockerize a Python ML Model and push in GitHub(With Steps + ScreenShots)</title>
      <dc:creator>Gokila Narasimman</dc:creator>
      <pubDate>Fri, 25 Apr 2025 17:36:02 +0000</pubDate>
      <link>https://dev.to/gokila0/dockerize-a-python-ml-model-and-push-in-githubwith-steps-screenshots-5f1j</link>
      <guid>https://dev.to/gokila0/dockerize-a-python-ml-model-and-push-in-githubwith-steps-screenshots-5f1j</guid>
      <description>&lt;p&gt;1.Checkout to main&lt;br&gt;
&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git checkout main&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhbwdkzp4pniltxa4e1xa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhbwdkzp4pniltxa4e1xa.png" alt="Image description" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Create a new branch (e.g., feature branch)&lt;br&gt;
&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git checkout main -b features-24mcr027&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumx87p4r0avblq0tgjfe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumx87p4r0avblq0tgjfe.png" alt="Image description" width="800" height="226"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.(Optional) Add a branch through GitHub UI&lt;/p&gt;

&lt;p&gt;Go to GitHub → Your Repo → Branch Dropdown → Type branch name → Create branch&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz1h8sto6oybdps8pngwa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz1h8sto6oybdps8pngwa.png" alt="Image description" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Check current branches&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git branch&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnn3ca9bwxoyxbteksyh3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnn3ca9bwxoyxbteksyh3.png" alt="Image description" width="800" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Check status of changes&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git status&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsz3t3ghqg9tv5hivgmi4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsz3t3ghqg9tv5hivgmi4.png" alt="Image description" width="795" height="216"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Add all changes&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git add .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4pyowa2f0kno478h72iw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4pyowa2f0kno478h72iw.png" alt="Image description" width="310" height="45"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Commit your changes&lt;br&gt;
&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git commit -m "Added hello.py"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwlekjyqmlrafb87h81t4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwlekjyqmlrafb87h81t4.png" alt="Image description" width="665" height="158"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.Push your branch to GitHub&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
git push origin features-24mcr027&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn4q9ynv8rze0tmghayph.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn4q9ynv8rze0tmghayph.png" alt="Image description" width="666" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.Create a Pull Request on GitHub&lt;/p&gt;

&lt;p&gt;Go to GitHub → Pull Requests → New Pull Request → Select branch → Create Pull Request → Merge Pull Request → Confirm Merge&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffhtte19kkkxrpr1p17o2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffhtte19kkkxrpr1p17o2.png" alt="Image description" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxci1mxosti41q3lonpa6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxci1mxosti41q3lonpa6.png" alt="Image description" width="800" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdopjgjz78206ey48j7hw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdopjgjz78206ey48j7hw.png" alt="Image description" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DOCKER COMMANDS&lt;/p&gt;

&lt;p&gt;1.Check Docker version&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
docker --version&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp8ii047c2lvq1wm7x4dm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp8ii047c2lvq1wm7x4dm.png" alt="Image description" width="439" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Create a Dockerfile in your project&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feap7n5epi82nlpk6uu1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feap7n5epi82nlpk6uu1k.png" alt="Image description" width="800" height="210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Build Docker image&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
docker build -t gokila07/mca-24mcr042-ml:latest .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0vtznyqyl13bcevvq6lf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0vtznyqyl13bcevvq6lf.png" alt="Image description" width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.List Docker images&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
docker images&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1d63dg5zyora2iyazj0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1d63dg5zyora2iyazj0.png" alt="Image description" width="586" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Push Docker image to DockerHub&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt;&lt;br&gt;
docker push gokila07/mca-24mcr027&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F40o3ll862j6w16sfew56.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F40o3ll862j6w16sfew56.png" alt="Image description" width="334" height="105"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Open Docker Desktop to view images and containers&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3hlx5gukdxm6zxlcxcs9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3hlx5gukdxm6zxlcxcs9.png" alt="Image description" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Run the Docker container&lt;/p&gt;

&lt;p&gt;8.Verify the Docker image and running container in Docker Desktop (GUI)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpvorvmxtu70g54m4yv29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpvorvmxtu70g54m4yv29.png" alt="Image description" width="800" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PUSH DOCKER FILE INTO GITHUB&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06vhc3bhhf5fjy8beka3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06vhc3bhhf5fjy8beka3.png" alt="Image description" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Main branch&lt;br&gt;
First Branch: feature-24mcr027&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlqrwh0ik6r9jt0w71rt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlqrwh0ik6r9jt0w71rt.png" alt="Image description" width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Second Branch: dockerfile&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi46cmg0wrvz3ibj7qno0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi46cmg0wrvz3ibj7qno0.png" alt="Image description" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>python</category>
      <category>github</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>DAY 1 ML</title>
      <dc:creator>Gokila Narasimman</dc:creator>
      <pubDate>Wed, 23 Apr 2025 16:40:14 +0000</pubDate>
      <link>https://dev.to/gokila0/day-1-ml-3fke</link>
      <guid>https://dev.to/gokila0/day-1-ml-3fke</guid>
      <description>&lt;p&gt;KONGU ENGINEERING COLLEGE&lt;br&gt;
MASTER OF COMPUTER APPLICATIONS&lt;/p&gt;

&lt;p&gt;DAY 1 &lt;br&gt;
Step-by-Step Git Commands Execution: &lt;/p&gt;

&lt;p&gt;Initialize a Git repository: &lt;br&gt;
git init &lt;br&gt;
Creates a new Git repository in the folder 24MCR027. &lt;/p&gt;

&lt;p&gt;Add a file to staging area: &lt;br&gt;
git add 24MCR027.txt &lt;br&gt;
Adds 24MCR027.txt to the staging area.&lt;/p&gt;

&lt;p&gt;Commit the file: &lt;br&gt;
git commit -m "Added Personal Details" &lt;br&gt;
Creates a commit with the message "Added Personal Details". &lt;/p&gt;

&lt;p&gt;Check Git status: &lt;br&gt;
git status &lt;br&gt;
Shows that 24MCR027.txt has been modified but not staged. &lt;/p&gt;

&lt;p&gt;View commit log: &lt;br&gt;
git log &lt;br&gt;
Displays the commit history (one commit at this point). &lt;/p&gt;

&lt;p&gt;Add remote GitHub repository: &lt;br&gt;
git remote add origin-&lt;a href="https://github.com/gokila0/24MCR027" rel="noopener noreferrer"&gt;https://github.com/gokila0/24MCR027&lt;/a&gt; &lt;br&gt;
Links the local repository to a remote GitHub repo.Check current branch: &lt;br&gt;
git branch &lt;br&gt;
Shows the current branch is master. &lt;/p&gt;

&lt;p&gt;Rename branch from master to main: &lt;br&gt;
git branch -M main &lt;br&gt;
Renames the current branch to main. &lt;/p&gt;

&lt;p&gt;Set Git global config for email and username: &lt;br&gt;
git config --global user.email " gokigokin2@@gmail.com " &lt;br&gt;
git config --global user.name "gokila0" &lt;br&gt;
Sets your global Git identity. &lt;/p&gt;

&lt;p&gt;Push code to remote repo for the first time: &lt;br&gt;
git push -u origin main &lt;br&gt;
Pushes the main branch to GitHub and sets upstream tracking.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fko827bcc4jjkgd8n9t8a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fko827bcc4jjkgd8n9t8a.png" alt="Image description" width="554" height="292"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhkpme6mcj61gg7m8h1wu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhkpme6mcj61gg7m8h1wu.png" alt="Image description" width="554" height="292"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpz8hext4r37l8tp4vp25.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpz8hext4r37l8tp4vp25.png" alt="Image description" width="553" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9sjpphvcdiqvlw6euvab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9sjpphvcdiqvlw6euvab.png" alt="Image description" width="553" height="264"&gt;&lt;/a&gt;&lt;br&gt;
Then , Again if we modify or add new file means we need to follow the same steps mentioned below.&lt;/p&gt;

&lt;p&gt;git add . &lt;br&gt;
git commit -m “message” &lt;br&gt;
git push origin main&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F557w24qug5mzqzqrguqe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F557w24qug5mzqzqrguqe.png" alt="Image description" width="554" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2n4b4n5awe93gti3m6x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2n4b4n5awe93gti3m6x.png" alt="Image description" width="553" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
