<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Danish Bansal on Medium]]></title>
        <description><![CDATA[Stories by Danish Bansal on Medium]]></description>
        <link>https://medium.com/@danishbansal?source=rss-273f5b7a627e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RtD8R651zjs_SKZNjGW71g.jpeg</url>
            <title>Stories by Danish Bansal on Medium</title>
            <link>https://medium.com/@danishbansal?source=rss-273f5b7a627e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:13:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danishbansal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to connect DVC to Google Drive (remote storage) to store and version your data]]></title>
            <link>https://blog.devgenius.io/how-to-connect-dvc-to-google-drive-remote-storage-to-store-and-version-your-data-64db2fad73ad?source=rss-273f5b7a627e------2</link>
            <guid isPermaLink="false">https://medium.com/p/64db2fad73ad</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[google-drive]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Danish Bansal]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 17:34:32 GMT</pubDate>
            <atom:updated>2023-01-31T20:44:01.132Z</atom:updated>
            <content:encoded><![CDATA[<p>Don’t have access to cloud storage options like GCS, S3, or Azure Blob? No problem! The always free Google Drive is here to help. With the help of open-source DVC and free Google Drive, you can still share your datasets with your collaborators. However, it’s important to note that Google Drive only offers 15GB of storage on personal accounts, potentially more available if your account is associated with an educational institution or workplace. So, consider your storage needs before choosing Google Drive as your remote storage option. You’re all set to learn how to connect DVC with Google Drive if you have enough storage.</p><p>If you want to choose Google Cloud Storage as your remote follow below blog</p><p><a href="https://danishbansal.medium.com/how-to-connect-dvc-to-gcp-bucket-remote-storage-to-store-and-version-your-data-faf98292b3f4">How to connect DVC to GCP Bucket (remote storage) to store and version your data</a></p><p>So, let’s dive straight into the hands-on experience without further ado.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QClC8ldY6C-aYWJjBYxA_g.png" /></figure><h4>Download data:</h4><ul><li>Go to the link: <a href="https://drive.google.com/file/d/1bdZpbYh4_M9GnJ0pA8tL-FFcq2PxEJzA/view?usp=sharing">https://drive.google.com/file/d/1bdZpbYh4_M9GnJ0pA8tL-FFcq2PxEJzA/view?usp=sharing</a></li><li>Download the data file.</li></ul><h4>Create GitHub/BITBUCKET repo:</h4><ul><li>Log into your GitHub/BITBUCKET account.</li><li>Create a new repository.</li></ul><h4>Clone the repo:</h4><ul><li>Copy the clone URL from the repository.</li><li>Use git clone &lt;repo-url&gt; to clone the repository.</li></ul><h4>Create a “data” folder and unzip:</h4><ul><li>Inside the repo, create a new folder named “data”.</li><li>Unzip the downloaded data file in the “data” folder.</li></ul><h4>Create a virtual environment:</h4><ul><li>Open the terminal/command prompt in the repo.</li><li>Run python -m venv venv to create a virtual environment.</li><li>Run source venv/bin/activate to activate the virtual environment.</li></ul><h4>Install and initialize DVC:</h4><ul><li>Run pip install dvc to install DVC.</li><li>Run dvc init to initialize DVC.</li></ul><h4>Add data via DVC:</h4><ul><li>Run dvc add data/raw_data/ to add the data.</li><li>Run git add data/.gitignore data/raw_data.dvc and git commit -m &quot;Adding Data&quot;.</li><li>Run git push origin master to push changes to the repository.</li></ul><h4>Adding Gdrive as remote:</h4><ul><li>Create a Folder over the Drive where you want to store the DVC Data. (Note this folder will be used for storing and versioning the data)</li><li>Find the folder ID of the Google Drive folder.</li><li>Run dvc remote add --default drive gdrive://&lt;Folder ID&gt; to add Gdrive as a remote.</li><li>Run dvc remote modify drive gdrive_acknowledge_abuse true.</li></ul><h4>Install drive dependency:</h4><ul><li>Run pip install dvc_gdrive to install gdrive dependency.</li></ul><h4>Push the data:</h4><ul><li>Run dvc push to push the data.</li><li>Authenticate the drive in the browser.</li></ul><h4>Finalize push to git:</h4><ul><li>Run git status to check the changes.</li><li>Run git add .dvc/config, git commit -m &quot;Adding data to remote&quot; and git push to finalize the push to the repository.</li></ul><h3>A<strong>nd that’s it.</strong></h3><p>Other blogs in this series</p><ul><li>What is Version Control for Data Science?</li></ul><p><a href="https://blog.devgenius.io/dvc-a-version-control-system-for-machine-learning-93d3b5185223">DVC: A Version Control System for Machine Learning</a></p><ul><li>The best practices for structuring your working directory</li></ul><p><a href="https://blog.devgenius.io/what-directory-structure-should-i-follow-for-an-ml-ds-project-8e6daf303073">What Directory Structure Should I Follow for an ML/DS Project?</a></p><ul><li>Step-by-Step Guide To Install DVC</li></ul><p><a href="https://danishbansal.medium.com/step-by-step-guide-to-install-dvc-59a276dabe3b">Step-by-Step Guide To Install DVC</a></p><p>That concludes our discussion for now. Follow me for further updates and insights on Machine Learning and Data Science. You can also connect with me on <a href="https://www.linkedin.com/in/danish--bansal/">Linkedin</a> for more information and to stay in touch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64db2fad73ad" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-connect-dvc-to-google-drive-remote-storage-to-store-and-version-your-data-64db2fad73ad">How to connect DVC to Google Drive (remote storage) to store and version your data</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to connect DVC to GCP Bucket (remote storage) to store and version your data privately]]></title>
            <link>https://blog.devgenius.io/how-to-connect-dvc-to-gcp-bucket-remote-storage-to-store-and-version-your-data-faf98292b3f4?source=rss-273f5b7a627e------2</link>
            <guid isPermaLink="false">https://medium.com/p/faf98292b3f4</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Danish Bansal]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 17:34:00 GMT</pubDate>
            <atom:updated>2023-02-02T05:47:50.857Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, we’ll be diving into the practical usage of DVC by connecting it to various remote storage options such as GCP Bucket, AWS S3, and even Google Drive. By the end of this tutorial, you’ll have a clear understanding of how to store and version your data using DVC. If you haven’t already installed DVC, be sure to check out our previous blog on the installation process before continuing.</p><p><a href="https://danishbansal.medium.com/step-by-step-guide-to-install-dvc-59a276dabe3b">Step-by-Step Guide To Install DVC</a></p><p>In this guide, we’ll cover how to store your dataset using DVC, connect your local storage to remote options, push data to remote locations in one simple command, and how easily share the data with collaborators. So, let’s get started and dive straight into the hands-on experience without further ado.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*dQDi8kF5QOe6sZa3YVpEcA.png" /></figure><h3>Pre-requisites</h3><p>GCP account with access to create a bucket</p><p>Or</p><p>Access to the already created bucket (<strong>Service Key to access that bucket</strong>)</p><p>If you do not have access to GCP, don’t worry follow the below blog to use Google Drive as the Remote Storage Option.</p><p><a href="https://danishbansal.medium.com/how-to-connect-dvc-to-google-drive-remote-storage-to-store-and-version-your-data-64db2fad73ad">How to connect DVC to Google Drive (remote storage) to store and version your data</a></p><h3>Getting Started</h3><h4>Create GIT Repository</h4><p>Imagine we want to build an ML project from scratch. Let’s start by creating a Git repository</p><pre>$ mkdir sample_dvc<br>$ cd sample_dvc<br>$ git init<br>$ git remote add origin &quot;Remote Path&quot;</pre><h4>Get Started</h4><p>Let’s initialize it by running <a href="https://dvc.org/doc/command-reference/init">dvc init</a> inside a Git project</p><pre>$ dvc init</pre><p>A few <a href="https://dvc.org/doc/user-guide/project-structure/internal-files">internal files</a> are created that should be added to Git:</p><pre>$ git status<br>$ git commit -m &quot;Initialize DVC&quot;</pre><p>Now you’re ready to DVC!</p><h4>Create a Data Folder Where we will store our Data</h4><blockquote>Note: <strong>You should be inside your repository folder</strong></blockquote><pre>$ mkdir data</pre><h4>Copy Some Data Inside it</h4><blockquote>Note: <strong>If you have any dataset copy inside it or else download one from online.</strong></blockquote><pre>$ cp /to/file/path .</pre><h4>To start tracking a file or directory, use <a href="https://dvc.org/doc/command-reference/add">dvc add</a>:</h4><blockquote>If you are adding a single file use the below command</blockquote><pre>$ dvc add data/data.xml </pre><blockquote>If you are adding a folder(Like images or audio in a folder or sub-folders) use the below command</blockquote><pre>$ dvc add data/folder_name</pre><p>DVC stores information about the added file in a special <a href="https://dvc.org/doc/user-guide/project-structure/dvc-files">.dvc</a> file named data/data.xml.dvc — a small text file with a human-readable <a href="https://dvc.org/doc/user-guide/project-structure/dvc-files">format</a>. This metadata file is a placeholder for the original data, and can be easily versioned like source code with Git:</p><pre>$ git add data/data.xml.dvc data/.gitignore<br>$ git commit -m &quot;Add raw data&quot;</pre><p>The data, meanwhile, is listed in .gitignore.</p><h3>Setting Up Remote Storage and Push the Data</h3><ol><li>Create a bucket on GCP <a href="https://console.cloud.google.com/storage/">https://console.cloud.google.com/storage/</a> (To follow this create a bucket named <strong>dvctry</strong>)</li><li>Create an IAM Role and Service Account Key to access this bucket</li><li>Follow the following commands to configure the DVC to use this private bucket</li></ol><blockquote><em>If any values given to the parameters below contain sensitive user info, add them with the </em><em>--local option, so they&#39;re written to a Git-ignored config file.</em></blockquote><p>You can upload DVC-tracked data or model files with them, so they’re safely stored <a href="https://dvc.org/doc/command-reference/remote">remotely</a>. This also means they can be retrieved on other environments later with <a href="https://dvc.org/doc/command-reference/pull">dvc pull</a>. First, we need to set up a remote storage location:</p><h4>Copy the gs bucket path</h4><p>It should look like this gs://&lt;bucket&gt;/&lt;object&gt; format</p><h4>Create a New Remote in DVC</h4><pre>$ dvc remote add -d gcs gs://dvctry</pre><h4>Modify the URL, Project ID, and Service Key Path</h4><pre>$ dvc remote modify gcs url gs://dvctry<br>$ dvc remote modify gcs projectname ai-datasets-349014<br>$ dvc remote modify --local gcs credentialpath &quot;/path/to/service/key&quot;</pre><h4>Finally, Push the Data</h4><pre>$ dvc push</pre><h4>Push the changes to Git and Push them to the Remote</h4><pre>$ git add .dvc/config<br>$ git commit -m &quot;Configure remote storage and pushing Data&quot;<br>$ git push -U origin master</pre><h3>Retrieving Data</h3><h4>Retrieving</h4><p>Having DVC-tracked data and models stored remotely, it can be downloaded when needed in other copies of this project with <a href="https://dvc.org/doc/command-reference/pull">dvc pull</a>. Usually, we run it after git clone and git pull.</p><pre>$ git clone &quot;Your Remote Path&quot;</pre><blockquote>Note: You need to run following command at local where you or your colleague is pulling or cloning the repo, as the bucket is private, so he/she needs to set the key path to access it, so run below</blockquote><pre>$ dvc remote modify --local gcs credentialpath &quot;/path/to/service/key&quot;</pre><h4>Finally, Pull the data in a single command</h4><pre>$ dvc pull</pre><p>Pheww…. &amp; That’s it</p><p>Other blogs in this series</p><ul><li>What is Version Control for Data Science?</li></ul><p><a href="https://danishbansal.medium.com/dvc-a-version-control-system-for-machine-learning-93d3b5185223">DVC: A Version Control System for Machine Learning</a></p><ul><li>The best practices for structuring your working directory</li></ul><p><a href="https://blog.devgenius.io/what-directory-structure-should-i-follow-for-an-ml-ds-project-8e6daf303073">What Directory Structure Should I Follow for an ML/DS Project?</a></p><p>That concludes our discussion for now. Be sure to follow me for further updates and insights on Machine Learning and Data Science. You can also connect with me on <a href="https://www.linkedin.com/in/danish--bansal/">Linkedin</a> for more information and to stay in touch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faf98292b3f4" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-connect-dvc-to-gcp-bucket-remote-storage-to-store-and-version-your-data-faf98292b3f4">How to connect DVC to GCP Bucket (remote storage) to store and version your data privately</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide To Install DVC]]></title>
            <link>https://danishbansal.medium.com/step-by-step-guide-to-install-dvc-59a276dabe3b?source=rss-273f5b7a627e------2</link>
            <guid isPermaLink="false">https://medium.com/p/59a276dabe3b</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[step-by-step]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Danish Bansal]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 17:09:27 GMT</pubDate>
            <atom:updated>2023-01-24T17:09:27.455Z</atom:updated>
            <content:encoded><![CDATA[<p>DVC is Data Version Control, an Open Source Tool for Data Versioning and Experiment Tracking.</p><p>You can follow this article to know about Artifact Versioning and its importance</p><p><a href="https://danishbansal.medium.com/dvc-a-version-control-system-for-machine-learning-93d3b5185223">DVC: A Version Control System for Machine Learning</a></p><h3>Pre-Requisites</h3><p>Before we begin, there are a couple of prerequisites that you’ll need to have installed on your machine:</p><ol><li>Python(3.8+)</li><li>Pip</li></ol><p>That’s all you need! The installation process is very straightforward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7iKzJtBG8D5SEtrgKHA5w.png" /></figure><h3>Installation using PIP</h3><p>The following commands will do the wonders</p><p>To start, we’ll need to make sure that you have the correct version of Python and pip installed. You can do this by running the following commands:</p><pre>python --version<br>pip --version</pre><p>If the printed version of Python is ≥3.8 and pip is installed, then you’re all set. Now, you can run the following command to install DVC:</p><pre>pip install dvc[all]</pre><p>And that’s it! You’ve successfully installed DVC on your machine. You can now start using it to version your data and track experiments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*kQGSEe5L1Lfa89Tq.gif" /><figcaption><a href="https://tenor.com/en-GB/">Source</a></figcaption></figure><h3>Other Installations</h3><p>In addition to the step-by-step guide provided above, there are other ways to install DVC. The official documentation provides several options for your convenience. If another method is more suitable for your needs, I encourage you to use it. Below are the links to the official documentation for installing DVC in other ways:</p><ul><li><a href="https://dvc.org/doc/install/windows">Installing DVC on Windows</a></li><li><a href="https://dvc.org/doc/install/macos">Installing DVC on Mac</a></li><li><a href="https://dvc.org/doc/install/linux">Installing DVC on Linux</a></li></ul><p>Please note that you can choose the installation method that best suits your needs and environment. Be sure to follow the instructions provided in the official documentation to ensure a successful installation.</p><p>Are you struggling to decide on the perfect directory structure for your Machine Learning or Data Science project? Look no further! In this blog post, we’ll take a closer look at how to organize your project for optimal efficiency and ease of use. Whether you’re a beginner or an experienced data scientist, this guide will provide valuable insights on how to structure your project for success. So, let’s dive in and get your project organized like a pro!</p><p><a href="https://danishbansal.medium.com/what-directory-structure-should-i-follow-for-an-ml-ds-project-8e6daf303073">What Directory Structure Should I Follow for an ML/DS Project?</a></p><p>That concludes our discussion for now. Be sure to follow me for further updates and insights on Machine Learning and Data Science. You can also connect with me on <a href="https://www.linkedin.com/in/danish--bansal/">Linkedin</a> for more information and to stay in touch</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59a276dabe3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Directory Structure Should I Follow for an ML/DS Project?]]></title>
            <link>https://blog.devgenius.io/what-directory-structure-should-i-follow-for-an-ml-ds-project-8e6daf303073?source=rss-273f5b7a627e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e6daf303073</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Danish Bansal]]></dc:creator>
            <pubDate>Fri, 20 Jan 2023 16:58:18 GMT</pubDate>
            <atom:updated>2023-01-28T10:55:45.044Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you find yourself drowning in a sea of Jupyter Notebooks, struggling to keep track of your ML/DS projects and collaborate with your team? Look no further! This blog will guide you through the process of creating a well-organized project directory and provide tips for seamless collaboration with your team members, putting an end to your project management woes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBryZpXAhrVzeQt0FRJ0Gg.png" /></figure><h3>Why is Project Structure Important?</h3><p>When it comes to working on Machine Learning and Data Science projects, it’s easy to get caught up in using Jupyter Notebooks. They’re great for experimenting and exploring data, and they make it easy to share your results with others. But what happens when it’s time to take your project to the next level and put it into production? That’s where having a good project structure becomes essential.</p><p>A well-organized project structure makes it easier for other developers to understand and work on your project. It also makes it easier to move your code from a development environment to a production environment. That’s why it’s important to start thinking about your project structure from the very beginning of your project, instead of trying to fix it later on.</p><p>Here’s why you should follow a good directory structure</p><h4>Others will thank you.</h4><p>Well-organized code tends to be self-documenting in that the organization itself provides context for your code without much overhead. People will thank you for this because they can:</p><ul><li>Collaborate more easily with you on this analysis</li><li>Learn from your analysis about the process and the domain</li><li>Feel confident in the conclusions at which the analysis arrives</li></ul><h4>You will thank you.</h4><p>Ever tried to reproduce an analysis that you did a few months ago or even a few years ago? You may have written the code, but it’s now impossible to interpret whether you should use a.py.old, b.py or c.py to get things done. Here are some questions which you may have experienced or will experience-</p><ul><li>Are we supposed to go in and join column X to the data before we get started or did that come from one of the notebooks?</li><li>Come to think of it, which notebook do we have to run first before running the plotting code: was it “process data” or “clean data”?</li><li><em>Et cetera, times infinity.</em></li></ul><p>These types of questions are painful and are symptoms of a disorganized project. A good project structure encourages practices that make it easier to come back to old work</p><h4>Nothing here is binding</h4><p>Disagree with a couple of the default folder names? Working on a project that’s a little nonstandard and doesn’t exactly fit with the current structure? Prefer to use a different package than one of the provided ones?</p><p><strong>Go for it!</strong> This is a lightweight structure and is intended to be a good <em>starting point</em> for many projects</p><p>Let’s break the suspense here and let me provide you with the best directory structure which will help you start an ML/DS Project.</p><h3>Best Directory Structure</h3><p>The best repository structure is the <a href="https://drivendata.github.io/cookiecutter-data-science/">Cookiecutter data science project structure</a>, which contains all of the elements to lay a good foundation for our projects:</p><pre>├── LICENSE<br>├── Makefile           &lt;- Makefile with commands like `make data` or `make train`<br>├── README.md          &lt;- The top-level README for developers using this project.<br>├── data<br>│   ├── external       &lt;- Data from third party sources.<br>│   ├── interim        &lt;- Intermediate data that has been transformed.<br>│   ├── processed      &lt;- The final, canonical data sets for modeling.<br>│   └── raw            &lt;- The original, immutable data dump.<br>│<br>├── docs               &lt;- A default Sphinx project; see sphinx-doc.org for details<br>│<br>├── models             &lt;- Trained and serialized models, model predictions, or model summaries<br>│<br>├── notebooks          &lt;- Jupyter notebooks. Naming convention is a number (for ordering),<br>│                         the creator&#39;s initials, and a short `-` delimited description, e.g.<br>│                         `1.0-db-initial-data-exploration`.<br>│<br>├── references         &lt;- Data dictionaries, manuals, and all other explanatory materials.<br>│<br>├── reports            &lt;- Generated analysis as HTML, PDF, LaTeX, etc.<br>│   └── figures        &lt;- Generated graphics and figures to be used in reporting<br>│<br>├── requirements.txt   &lt;- The requirements file for reproducing the analysis environment, e.g.<br>│                         generated with `pip freeze &gt; requirements.txt`<br>│<br>├── setup.py           &lt;- Make this project pip installable with `pip install -e`<br>├── src                &lt;- Source code for use in this project.<br>│   ├── __init__.py    &lt;- Makes src a Python module<br>│   │<br>│   ├── data           &lt;- Scripts to download or generate data<br>│   │   └── make_dataset.py<br>│   │<br>│   ├── features       &lt;- Scripts to turn raw data into features for modeling<br>│   │   └── build_features.py<br>│   │<br>│   ├── models         &lt;- Scripts to train models and then use trained models to make<br>│   │   │                 predictions<br>│   │   ├── predict_model.py<br>│   │   └── train_model.py<br>│   │<br>│   └── visualization  &lt;- Scripts to create exploratory and results oriented visualizations<br>│       └── visualize.py<br>│<br>└── tox.ini            &lt;- tox file with settings for running tox; see tox.readthedocs.io</pre><p>You can add some additional folders as per your requirement.</p><p>One more good news you don’t need to make it yourself. You can just use the following command to get started</p><pre>$ pip install cookiecutter<br>$ cookiecutter -c v1 https://github.com/drivendata/cookiecutter-data-science  </pre><p>Below is the preceding article of this blog series. Follow me to learn how industry-standard ML is implemented</p><p><a href="https://danishbansal.medium.com/dvc-a-version-control-system-for-machine-learning-93d3b5185223">DVC: A Version Control System for Machine Learning</a></p><p>That concludes our discussion for now. Be sure to follow me for further updates and insights on Machine Learning and Data Science. You can also connect with me on <a href="https://www.linkedin.com/in/danish--bansal/">Linkedin</a> for more information and to stay in touch</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e6daf303073" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/what-directory-structure-should-i-follow-for-an-ml-ds-project-8e6daf303073">What Directory Structure Should I Follow for an ML/DS Project?</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DVC: A Version Control System for Machine Learning]]></title>
            <link>https://blog.devgenius.io/dvc-a-version-control-system-for-machine-learning-93d3b5185223?source=rss-273f5b7a627e------2</link>
            <guid isPermaLink="false">https://medium.com/p/93d3b5185223</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[experiment]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Danish Bansal]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 18:03:32 GMT</pubDate>
            <atom:updated>2023-01-31T17:36:58.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>DVC: Artifact Version Control for Machine Learning</h3><p>If you’re learning Machine Learning, just starting your professional journey in the field, or have some experience under your belt, one challenge you may face is how to keep track of your data, experiments, and other artefacts. Fortunately, there’s a solution to this problem: DVC(Data version Control), an open-source tool designed to be developer-friendly. With <a href="https://dvc.org/">DVC</a>, you won’t need to make any changes to your code apart from copying/pasting in order to use it. All you have to do is install and start using it — it’s that simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yd2F2AAenifl5fLUwr1v3Q.png" /><figcaption>Evolution of a Machine Learning Projects (<a href="http://dvc.org/">Credits</a>)</figcaption></figure><h3>Takeaways from this short blog</h3><ul><li>The need for DVC as a tool for tracking and versioning data, experiments, and other artefacts in ML projects</li><li>The common challenges faced by ML developers and the ways in which DVC aims to solve them</li><li>A general overview of what a typical ML workflow looks like</li><li>The prerequisites for following along with the rest of the blog series, include knowledge of Github commands, data pre-processing, and model training.</li></ul><h3>ML Workflow</h3><p>In order to understand the context of the discussion about machine learning development workflow, it’s important to understand that developing an ML project is not a one-time task. Instead, it is an iterative process that involves moving between different activities. The typical ML development workflow can be broadly divided into the following five phases:</p><ul><li>Data management and analysis</li><li>Experimentation</li><li>Solution development and testing</li><li>Deployment and serving</li><li>Monitoring and maintenance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*L9EsOdI-ZrT1fo1D.png" /><figcaption>A diagram explaining the life cycle of an ML Problem (<a href="https://aws.amazon.com/">Credits</a>)</figcaption></figure><p>Each phase requires a different set of tools and methodologies and we will be discussing those in the upcoming blogs.</p><h3>Common challenges faced during the ML Project Collaboration</h3><p>Collaborating on ML projects can come with its own set of challenges, including:</p><ul><li>Difficulty sharing large datasets among teammates</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*sRUDlB7u28IL73v0rtFeqQ.png" /><figcaption>Dataset Sharing</figcaption></figure><ul><li>Work duplication due to lack of visibility into the progress of other team members</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*B2DZYJX9p6RCILMpUTnfXQ.png" /><figcaption>Duplication of def() function by 2 ML Developers</figcaption></figure><ul><li>Slow updates and lack of visibility into the latest status of a project</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*3dL3KYaGqNs_wfP0.png" /><figcaption>Visibility of Project (<a href="https://www.hydra.cloud/">Credits</a>)</figcaption></figure><ul><li>Pipelines that are not reliable or reproducible, resulting in varying models depending on machine configurations</li><li>Inconsistent data quality, hindering reproducibility</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XQy7tlnrh7nHmV9VOl05kQ.png" /><figcaption>Non-Reusable and Reproducible Code</figcaption></figure><ul><li>Difficulty tracking and comparing model metrics</li></ul><p>These are just a few examples of the types of challenges you may encounter while working on ML projects with a team. However, many of these issues can be overcome by ensuring that your projects are reproducible for everyone involved. Reproducibility ensures that the artifacts produced by experiments, such as models and datasets, can be used throughout the ML development workflow.</p><p>To achieve reproducibility, there are several prerequisites to consider, including:</p><ul><li>Environment dependency control</li><li>Code version control</li><li>Control over run parameters</li><li>Automated pipelines</li><li>Artifact version control</li><li>Experiment results tracking</li><li>Automated CI/CD and MLOps</li></ul><p>Throughout this blog series, we will be covering these points as a checklist to help you overcome the common challenges of collaborating on ML projects.</p><h3>Is there really is a need of DVC?</h3><p>As we all know, Jupyter Notebooks and Google Colab are popular choices for experimenting and developing Machine Learning models. However, as projects grow in complexity, code length, and number of experiments, it becomes increasingly difficult to keep everything organized. Additionally, Jupyter Notebooks are not the best tool for versioning code. To address these challenges, we need a system that can:</p><ul><li>Organize code into reusable units/Re-usable Code</li><li>Use Git for version control</li><li>Make dependencies and requirements explicit</li></ul><h3>Pre-requisites</h3><p>Before diving into this series of blogs, it’s important to have a basic understanding of Github commands such as git add, git commit, git push, git fetch, git pull, git checkout, git merge, and git rebase. Additionally, having a foundation in data pre-processing, model training, and saving models will be beneficial for understanding the content covered in these blogs.</p><h3>Blog Links</h3><p>Stay tuned for our upcoming blog series where we’ll be discussing important topics in ML/Data Science such as:</p><ul><li>The best practices for structuring your working directory (Published)</li></ul><p><a href="https://danishbansal.medium.com/what-directory-structure-should-i-follow-for-an-ml-ds-project-8e6daf303073">What Directory Structure Should I Follow for an ML/DS Project?</a></p><ul><li>A step-by-step guide on how to install DVC</li></ul><p><a href="https://danishbansal.medium.com/step-by-step-guide-to-install-dvc-59a276dabe3b">Step-by-Step Guide To Install DVC</a></p><ul><li>How to connect DVC to remote storage options like GCP Bucket, AWS S3, and even Google Drive to store and version your data</li></ul><ul><li><a href="https://danishbansal.medium.com/how-to-connect-dvc-to-gcp-bucket-remote-storage-to-store-and-version-your-data-faf98292b3f4">How to connect DVC to GCP Bucket (remote storage) to store and version your data</a></li><li><a href="https://danishbansal.medium.com/how-to-connect-dvc-to-google-drive-remote-storage-to-store-and-version-your-data-64db2fad73ad">How to connect DVC to Google Drive (remote storage) to store and version your data</a></li></ul><ul><li>Tips and tricks for sharing artefacts across team members</li></ul><p>Links to these informative blogs will be available soon, so make sure to check back and learn more about optimizing your ML/Data Science workflow.</p><p>That concludes our discussion for now. Be sure to follow me for further updates and insights on Machine Learning and Data Science. You can also connect with me on <a href="https://www.linkedin.com/in/danish--bansal/">Linkedin</a> for more information and to stay in touch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93d3b5185223" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/dvc-a-version-control-system-for-machine-learning-93d3b5185223">DVC: A Version Control System for Machine Learning</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy steps to use AZURE services in python]]></title>
            <link>https://medium.com/analytics-vidhya/easy-steps-to-use-azure-services-in-python-c7c3e0bda9a2?source=rss-273f5b7a627e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7c3e0bda9a2</guid>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[ai-app]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[project-based-learning]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Danish Bansal]]></dc:creator>
            <pubDate>Thu, 25 Feb 2021 10:23:44 GMT</pubDate>
            <atom:updated>2021-03-15T16:16:48.546Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Pre-requisites</strong>:</h3><ol><li>An account on Microsoft Azure. If you don&#39;t have one check below:</li></ol><blockquote>If you are a working profession sign-up <a href="https://azure.microsoft.com/en-in/free/">here</a></blockquote><blockquote>If you are a student sign-up <a href="https://azure.microsoft.com/en-us/free/students/">here</a></blockquote><p>2. Basic knowledge about python (FLASK).</p><h3><strong>Goal</strong></h3><p>After completing the tutorial you will be able to</p><ol><li>Get hands-on experience with how to use Microsoft AZURE services in integration with python.</li><li>You will have a mini translator project ready for showcasing.</li></ol><h3><strong>Process</strong></h3><p>If you are here it means you already have a Microsoft AZURE account.</p><p>Let&#39;s start with the process then:</p><ol><li><strong>Setup local environment</strong></li></ol><blockquote>1. Make a Folder at your localhost.</blockquote><blockquote>2. Create a new file requirements.txt and copy the following in it.</blockquote><blockquote>flask<br> python-dotenv<br> requests</blockquote><blockquote>3. Open bash(command prompt on windows) at that location.</blockquote><blockquote>4. Run-</blockquote><blockquote><strong>pip install -r requirements.txt</strong></blockquote><p>2. <strong>Make a simple app</strong></p><blockquote>1. Create a file name <strong>app.py</strong></blockquote><blockquote>2. Copy following code inside it.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8cdaac0284ad91b3b0567d2b38c935e/href">https://medium.com/media/e8cdaac0284ad91b3b0567d2b38c935e/href</a></iframe><blockquote>3. Now create new folder <strong>templates</strong> and then create an <strong>index.html </strong>file inside it. (make sure to name folder <strong>templates</strong>)</blockquote><blockquote>4. Copy the following code inside it.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0dd8eeb4be4c3c6e30a25fd6a41c7210/href">https://medium.com/media/0dd8eeb4be4c3c6e30a25fd6a41c7210/href</a></iframe><blockquote>5. Let’s try it on our localhost. Try running the following in command prompt/bash.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c3812d5aa06c2967139a5a5879e3bcb/href">https://medium.com/media/3c3812d5aa06c2967139a5a5879e3bcb/href</a></iframe><blockquote>6.Finally open the mini application in a browser by going to url <a href="http://localhost:5000/">http://localhost:5000</a></blockquote><p>3. <strong>Make a service on Microsoft AZURE</strong></p><blockquote>Browse to the <a href="https://portal.azure.com/">Azure portal</a></blockquote><blockquote>Select Create a resource</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/0*fGKBOk_TSKt4foMa.png" /></figure><blockquote>3. In the Search box, enter Translator</blockquote><blockquote>4. Select Translator</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*6gAwqTj9uytQW4r7.png" /></figure><blockquote>5. Select Create</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/0*sMSlVq16GHpGtCLs.png" /></figure><blockquote>6. Complete the Create Translator form with the following values:</blockquote><blockquote>Subscription: <em>Your subscription</em></blockquote><blockquote>Resource group:</blockquote><blockquote>Select Create new</blockquote><blockquote>Name: flask-ai</blockquote><blockquote>Resource group region: <em>Select a region near you</em></blockquote><blockquote>Resource region: <em>Select the same region as above</em></blockquote><blockquote>Name: <em>A unique value, such as ai-yourname</em></blockquote><blockquote>Pricing tier: Free F0</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/0*ZDR8p4cD2jque_FY.png" /></figure><blockquote>7. Select Review + create</blockquote><blockquote>8. Select Create</blockquote><blockquote>9. After a few moments, the resource will be created</blockquote><blockquote>10. Select Go to resource</blockquote><blockquote>11. Select Keys and Endpoint on the left side under RESOURCE MANAGEMENT</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/0*LF4N7x7DXFwNp-o7.png" /></figure><blockquote>12. Next to KEY 1, select Copy to clipboard</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/0*96ehbCuzd9vGI3yI.png" /></figure><blockquote>13. Make a note of the endpoint and location values</blockquote><blockquote>15. Return to a local folder and create a new file in the root of the application by selecting New file and naming it .env (The . at the beginning of the file is required.)</blockquote><blockquote>16. Paste the following text into .env</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/40dff4e957e8ac0a95db4224a470b714/href">https://medium.com/media/40dff4e957e8ac0a95db4224a470b714/href</a></iframe><p><strong>4. Final Steps</strong></p><blockquote>The following code is for final <strong>app.py</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97209e8940cf1f921a64f4f3bb3bddcc/href">https://medium.com/media/97209e8940cf1f921a64f4f3bb3bddcc/href</a></iframe><blockquote>2. Create a new file <strong>results.html</strong> in the <strong>templates</strong> folder and copy the following code in it.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf39e21d7625199f6b8f7fb30026cd49/href">https://medium.com/media/bf39e21d7625199f6b8f7fb30026cd49/href</a></iframe><p><strong>5. Results</strong></p><blockquote>Use Ctrl-C to stop the Flask application</blockquote><blockquote>Execute the command flask run to restart the service</blockquote><blockquote>Browse to <a href="http://localhost:5000/">http://localhost:5000</a> to test your application</blockquote><blockquote>Enter text into the text area, choose a language, and select Translate</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/0*_8HexPoR2aOnsmv7.png" /></figure><blockquote>5. You’ll see the results!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/0*4NYdf08keWSgI08R.png" /></figure><p>THAT&#39;S ALL</p><p>Pheww that was a lot of work. But you now got the hang of Microsoft AZURE. 😃</p><blockquote><strong>ALL IMAGE CREDITS GOES TO MICROSOFT.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7c3e0bda9a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/easy-steps-to-use-azure-services-in-python-c7c3e0bda9a2">Easy steps to use AZURE services in python</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>