<?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 Sanchit Shashank Agarkar on Medium]]></title>
        <description><![CDATA[Stories by Sanchit Shashank Agarkar on Medium]]></description>
        <link>https://medium.com/@sanchitsagarkar03?source=rss-369f0c24af4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pitmlWyxQgL-_Q78imUZhw.jpeg</url>
            <title>Stories by Sanchit Shashank Agarkar on Medium</title>
            <link>https://medium.com/@sanchitsagarkar03?source=rss-369f0c24af4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:40:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sanchitsagarkar03/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[Deploy Machine Learning Project on AWS Sagemaker.]]></title>
            <link>https://medium.com/@sanchitsagarkar03/deploy-machine-learning-project-on-aws-sagemaker-22539f3d443?source=rss-369f0c24af4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/22539f3d443</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-sagemaker]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sanchit Shashank Agarkar]]></dc:creator>
            <pubDate>Wed, 10 May 2023 13:08:33 GMT</pubDate>
            <atom:updated>2023-05-11T02:27:36.429Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS Sagemaker:</p><p>AWS SageMaker is a fully managed service that provides developers and data scientists with the tools to build, train, and deploy machine learning models at scale. It allows users to select and customize machine learning algorithms, manage and track experiments, and deploy models to production in various ways, including serverless and containerized deployment.</p><p>SageMaker also includes built-in features for data labelling, model tuning, and model monitoring to help optimize the performance and accuracy of machine learning models. Additionally, it integrates with other AWS services, such as Amazon S3 and Amazon Athena, to streamline the machine learning workflow.</p><p>Overall, SageMaker simplifies the machine learning process and enables businesses to quickly develop and deploy high-quality machine learning models without requiring extensive expertise in infrastructure management or machine learning algorithms.</p><p>Now will see how to train, test and deploy a machine learning model using AWS Sagemaker (using free tire resources).</p><p>Steps involved are</p><ol><li>Create a SageMaker notebook instance</li><li>Prepare the data</li><li>Train the model to learn from the data</li><li>Deploy the model</li><li>Evaluate your ML model’s performance</li></ol><p>We will be using <a href="https://archive.ics.uci.edu/ml/datasets/bank+marketing">Bank Marketing Data Set</a> for the training purpose. This data collection includes details on customer demographics, reactions to marketing campaigns, and outside variables. For your convenience, the data has been labelled, and a column in the dataset indicates if the client has signed up for a service provided by the bank.</p><h4>Step 1:</h4><p>To login in AWS Management Console</p><p>Link: <a href="https://aws.amazon.com/console/">https://aws.amazon.com/console/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xg-6nvI3zMloLKegQflcYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mXDCruLDCEVVu8iJSZGrRg.png" /></figure><p>Sign in to your account or create and then log in as a Root user.</p><p>Then in the search menu search for Amazon SageMaker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qM8tIOL3UMzThToIqNIvHg.png" /></figure><p>Change the region to <strong>US West (Oregon)</strong> (you can use other regions also it depends upon latency requirements and the availability of the AWS services you plan to use )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49ISCMHt9U24l3s8DDm5YQ.png" /></figure><h4>Step 2: To Create a Notebook instance in AWS SageMaker.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbvT_2im4K071gUT0Orrdw.png" /></figure><p>Scroll to the right side and select Notebook → Notebook Instance → Create notebook instance.</p><p><strong><em>Notebook instance name</em></strong><em>: Give a unique project name</em></p><p><strong><em>Notebook instance type</em></strong><em>: ml.t2.medium (depends on usage)</em></p><p><em>Elastic inference, keep the default selection of none.</em></p><p><em>Platform identifier, keep the default selection.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eC1r2thxnoNC17MISxz3XA.png" /></figure><p>Now create a IAM role</p><p>Choose create a new role under IAM role in the Permissions and Encryption section, then select create role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILcJ81ZvRh_S_Dv_UvVZBQ.png" /></figure><p>Then select any S3 bucket and then click on create role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PrgtyAjWOd8NWtbu3F-EcA.png" /></figure><p>Then keep all the settings as it is and click on Create notebook instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*to4HTI47JWeJXyXD0ZkgRg.png" /></figure><h4>Step 3: Preparation of Data</h4><p>Select on Open open Jupyter and then In Jupyter, choose New and then choose conda_python3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-w6hgzd3NJC7CJd6cxPCfQ.png" /></figure><p>After creating the notebook instance now change the name in the below image it is “Deployment of ML project on AWS Sagemaker”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wmu1TrNS9wgJW_SJKwoJeQ.png" /></figure><p>Now we will import the necessary libraries.</p><pre># import libraries<br>import boto3, re, sys, math, json, os, sagemaker, urllib.request<br>from sagemaker import get_execution_role<br>import numpy as np<br>import pandas as pd<br>import matplotlib.pyplot as plt<br>from IPython.display import Image<br>from IPython.display import display<br>from time import gmtime, strftime<br>from sagemaker.predictor import csv_serializer<br><br># Define IAM role<br>role = get_execution_role()<br>prefix = &#39;sagemaker/DEMO-xgboost-dm&#39;<br>my_region = boto3.session.Session().region_name # set the region of the instance<br><br># this line automatically looks for the XGBoost image URI and builds an XGBoost container.<br>xgboost_container = sagemaker.image_uris.retrieve(&quot;xgboost&quot;, my_region, &quot;latest&quot;)<br><br>print(&quot;Success - the MySageMakerInstance is in the &quot; + my_region + &quot; region. You will use the &quot; + xgboost_container + &quot; container for your SageMaker endpoint.&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpr0SzWT4hrNFKXPHd2XDQ.png" /><figcaption>The output of the above code snippet</figcaption></figure><p>Now we have to create S3 Bucket to store our data below code will help you to create an S3 bucket using the code.</p><pre>bucket_name = &#39;mlprojectmitaoe&#39; # &lt;--- CHANGE THIS VARIABLE TO A UNIQUE NAME FOR YOUR BUCKET<br>s3 = boto3.resource(&#39;s3&#39;)<br>try:<br>    if  my_region == &#39;us-east-1&#39;:<br>      s3.create_bucket(Bucket=bucket_name)<br>    else: <br>      s3.create_bucket(Bucket=bucket_name, CreateBucketConfiguration={ &#39;LocationConstraint&#39;: my_region })<br>    print(&#39;S3 bucket created successfully&#39;)<br>except Exception as e:<br>    print(&#39;S3 error: &#39;,e)</pre><p>The output of the above code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOVPB9SZ83Pg_pXuAAHhDQ.png" /></figure><p>Using this code data will be downloaded to our SageMaker instance and loaded into a data frame.</p><pre>try:<br>  urllib.request.urlretrieve (&quot;https://d1.awsstatic.com/tmt/build-train-deploy-machine-learning-model-sagemaker/bank_clean.27f01fbbdf43271788427f3682996ae29ceca05d.csv&quot;, &quot;bank_clean.csv&quot;)<br>  print(&#39;Success: downloaded bank_clean.csv.&#39;)<br>except Exception as e:<br>  print(&#39;Data load error: &#39;,e)<br><br>try:<br>  model_data = pd.read_csv(&#39;./bank_clean.csv&#39;,index_col=0)<br>  print(&#39;Success: Data loaded into dataframe.&#39;)<br>except Exception as e:<br>    print(&#39;Data load error: &#39;,e)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbUukwfZ70F5576jEL4azg.png" /><figcaption>Output</figcaption></figure><p>Now we will Shuffle and split the data into training data and test data.</p><pre>train_data, test_data = np.split(model_data.sample(frac=1, random_state=1729), [int(0.7 * len(model_data))])<br>print(train_data.shape, test_data.shape)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRDCJAyDQTKwObYfdiIYWQ.png" /><figcaption>Output</figcaption></figure><p>The training data (70% of customers) is used during the model training and remaining (30% of customers) which is used as test data is used to evaluate the performance of the model.</p><p>Now we will train the ML model</p><p>The below-given code rearranges the header and first column of the training data and retrieves the data from the S3 bucket, necessary for utilizing the pre-built XGBoost algorithm in Amazon SageMaker.</p><pre>pd.concat([train_data[&#39;y_yes&#39;], train_data.drop([&#39;y_no&#39;, &#39;y_yes&#39;], axis=1)], axis=1).to_csv(&#39;train.csv&#39;, index=False, header=False)<br>boto3.Session().resource(&#39;s3&#39;).Bucket(bucket_name).Object(os.path.join(prefix, &#39;train/train.csv&#39;)).upload_file(&#39;train.csv&#39;)<br>s3_input_train = sagemaker.inputs.TrainingInput(s3_data=&#39;s3://{}/{}/train&#39;.format(bucket_name, prefix), content_type=&#39;csv&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q4F1mOMd_YFahk4Jy6rew.png" /><figcaption>Output</figcaption></figure><p>The below-given code establish the Amazon SageMaker session, generate an XGBoost model instance (estimator), and specify the hyperparameters for the model.</p><pre>sess = sagemaker.Session()<br>xgb = sagemaker.estimator.Estimator(xgboost_container,role, instance_count=1, instance_type=&#39;ml.m4.xlarge&#39;,output_path=&#39;s3://{}/{}/output&#39;.format(bucket_name, prefix),sagemaker_session=sess)<br>xgb.set_hyperparameters(max_depth=5,eta=0.2,gamma=4,min_child_weight=6,subsample=0.8,silent=0,objective=&#39;binary:logistic&#39;,num_round=100)</pre><p>The code utilizes gradient optimization to train the model on a ml.m4.xlarge instance. After a short period, you will observe the generation of training logs in your Jupyter notebook.</p><pre>xgb.fit({&#39;train&#39;: s3_input_train})</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1VHk80Vm7Ybufp0lmp7BQ.png" /><figcaption>Output</figcaption></figure><h4>Step 4: Deploy the model</h4><p>During this step, the trained model is deployed to an endpoint, the CSV data is reformatted and loaded, and the model is executed to generate predictions.</p><pre>xgb_predictor = xgb.deploy(initial_instance_count=1,instance_type=&#39;ml.m4.xlarge&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4Q-Q6fRxSkV8apdw756PA.png" /><figcaption>Output</figcaption></figure><p>To determine if customers in the test data have subscribed to the bank product or not, paste the provided code into the next code cell and select Run.</p><pre>from sagemaker.serializers import CSVSerializer<br><br>test_data_array = test_data.drop([&#39;y_no&#39;, &#39;y_yes&#39;], axis=1).values #load the data into an array<br>xgb_predictor.serializer = CSVSerializer() # set the serializer type<br>predictions = xgb_predictor.predict(test_data_array).decode(&#39;utf-8&#39;) # predict!<br>predictions_array = np.fromstring(predictions[1:], sep=&#39;,&#39;) # and turn the prediction into an array<br>print(predictions_array.shape)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcoTSNwyQFwsX4NfhphDJg.png" /></figure><h4>Step 6: Evaluate model performance</h4><p>Below code compares the actual and predicted values in a table called a confusion matrix.</p><pre>cm = pd.crosstab(index=test_data[&#39;y_yes&#39;], columns=np.round(predictions_array), rownames=[&#39;Observed&#39;], colnames=[&#39;Predicted&#39;])<br>tn = cm.iloc[0,0]; fn = cm.iloc[1,0]; tp = cm.iloc[1,1]; fp = cm.iloc[0,1]; p = (tp+tn)/(tp+tn+fp+fn)*100<br>print(&quot;\n{0:&lt;20}{1:&lt;4.1f}%\n&quot;.format(&quot;Overall Classification Rate: &quot;, p))<br>print(&quot;{0:&lt;15}{1:&lt;15}{2:&gt;8}&quot;.format(&quot;Predicted&quot;, &quot;No Purchase&quot;, &quot;Purchase&quot;))<br>print(&quot;Observed&quot;)<br>print(&quot;{0:&lt;15}{1:&lt;2.0f}% ({2:&lt;}){3:&gt;6.0f}% ({4:&lt;})&quot;.format(&quot;No Purchase&quot;, tn/(tn+fn)*100,tn, fp/(tp+fp)*100, fp))<br>print(&quot;{0:&lt;16}{1:&lt;1.0f}% ({2:&lt;}){3:&gt;7.0f}% ({4:&lt;}) \n&quot;.format(&quot;Purchase&quot;, fn/(tn+fn)*100,fn, tp/(tp+fp)*100, tp))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZtXCT8UKJhJRfrO2vuABA.png" /><figcaption>Output</figcaption></figure><h4>Step 6: Clean up all the resources.</h4><p>In this step, you terminate the resources you used in this blog.</p><pre>xgb_predictor.delete_endpoint(delete_endpoint_config=True)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLqePyEvlEjTWDgZLWy5zg.png" /></figure><p>Delete your training artifacts and S3 bucket.</p><pre>bucket_to_delete = boto3.resource(&#39;s3&#39;).Bucket(bucket_name)<br>bucket_to_delete.objects.all().delete()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CLIXoQKoWX8WxWYNQfAaEw.png" /><figcaption>Output</figcaption></figure><p>After this step, you can stop and delete your SageMaker Notebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2S9Au2RcvwC6OoGQvNQvA.png" /></figure><h4>Conclusion</h4><p>Amazon SageMaker simplifies the process of creating, training, deploying, and evaluating machine learning models. It provides a convenient way to access training data, choose the most suitable algorithm and framework for your application, and handle the underlying infrastructure management. This enables training models at a large scale, even up to petabytes of data.</p><h3>Thank you for Reading !!</h3><p>Link for dataset and code:<a href="https://github.com/SanchitAgarkar/Deploy-Machine-Learning-Project-on-AWS-Sagemaker.">https://github.com/SanchitAgarkar/Deploy-Machine-Learning-Project-on-AWS-Sagemaker.</a></p><p>Link for Introduction to machine learning:</p><p><a href="https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce">https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce</a></p><p>Link for Machine Learning: Boon or Curse?</p><p><a href="https://medium.com/@sanchitsagarkar03/machine-learning-boon-or-curse-a32a7006aab">https://medium.com/@sanchitsagarkar03/machine-learning-boon-or-curse-a32a7006aab</a></p><p>Link for Offline and online mode of training Machine learning/Deep Learning model using GPU and CPU.</p><p><a href="https://medium.com/@sanchitsagarkar03/offline-and-online-mode-of-training-machine-learning-deep-learning-model-using-gpu-and-cpu-4066bf604bff">https://medium.com/@sanchitsagarkar03/offline-and-online-mode-of-training-machine-learning-deep-learning-model-using-gpu-and-cpu-4066bf604bff</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22539f3d443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Offline and online mode of training Machine learning/Deep Learning model using GPU and CPU.]]></title>
            <link>https://medium.com/@sanchitsagarkar03/offline-and-online-mode-of-training-machine-learning-deep-learning-model-using-gpu-and-cpu-4066bf604bff?source=rss-369f0c24af4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4066bf604bff</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[colab]]></category>
            <category><![CDATA[anaconda-python]]></category>
            <category><![CDATA[kaggle]]></category>
            <category><![CDATA[model-training]]></category>
            <dc:creator><![CDATA[Sanchit Shashank Agarkar]]></dc:creator>
            <pubDate>Thu, 13 Apr 2023 14:11:57 GMT</pubDate>
            <atom:updated>2023-04-13T14:11:57.544Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world, machine learning has become an integral part of many industries. It has made significant progress in various fields, including healthcare, finance, transportation, and more. However, one of the challenges that machine learning practitioners face is the need to train models with massive amounts of data. This can be a daunting task, especially in cases where data sets are too large to be processed online or when there are limited resources for online training. In such scenarios, the offline mode of training comes into play.</p><p>Machine learning (ML) and deep learning (DL) models require significant computational power to train effectively. In order to speed up the training process, GPUs (graphics processing units) are often used in addition to CPUs (central processing units) to accelerate the computation. However, the availability of GPU resources may be limited, which can make training ML/DL models challenging. In this blog post, we will discuss the differences between offline and online modes of training ML/DL models using GPU and CPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*tCfD7YbB1COZoSm4mey5Yg.png" /><figcaption>Image Source: @thermofisher</figcaption></figure><p>Offline mode training</p><p>In offline mode, the training data is preprocessed and saved in a file or database before the training begins. The training is performed on a batch of data at a time, rather than on the entire dataset at once. The entire dataset is divided into small batches, and each batch is loaded into memory for processing. This allows for better memory management and more efficient use of available resources. In offline mode, GPU resources can be utilized to train ML/DL models more quickly. GPUs are particularly good at parallel processing, which means they can perform many calculations simultaneously. This can dramatically speed up training times for ML/DL models. However, offline mode training can be time-consuming and require a significant amount of storage space for the training data.</p><p>One of the main advantages of offline training is its flexibility to the user. Practitioners can choose to train the model at their convenience, without having to worry about network connectivity issues or server availability. Furthermore, offline training allows for the easy customization of algorithms and the ability to experiment with different models and hyperparameters without having to pay for expensive cloud resources.</p><p>Online mode training</p><p>In online mode, the training data is processed in real time as it is fed into the ML/DL model. This allows for the model to adapt to changes in the data as it is being collected. Online mode training is particularly useful in scenarios where the data is continuously changing, such as in online advertising or fraud detection. Online mode training can be performed using CPUs, but it may not be as efficient as using GPUs. CPUs are designed for sequential processing, which means they can only perform one calculation at a time. This can significantly slow down the training process for ML/DL models that require complex computations.</p><p>Offline mode training using GPUs is typically the preferred method for training ML/DL models when large amounts of data need to be processed. However, online mode training using CPUs may be suitable for scenarios where the data is continuously changing and the model needs to adapt in real time.</p><p>Now will see a few online and offline tools we can use to train our ML/DL model.</p><ol><li>Anaconda Jupyter notebook</li><li>Kaggle</li><li>Colab</li><li>Amazon Sage maker studio lab (No credit card needed)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSis9axqqc1KFZw7n2kvJg.png" /></figure><h4>Anaconda Jupyter notebook</h4><p>Anaconda is a popular distribution of Python and R programming languages used in data science, machine learning, and scientific computing. It includes various packages and libraries that are commonly used in these fields and provides an environment to manage dependencies and package versions.</p><p>Jupyter Notebook is one of the applications that come pre-installed with Anaconda. Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It supports various programming languages, including Python, R, Julia, and others.</p><p>The Jupyter Notebook consists of two components: the notebook application and the notebook document format. The notebook application runs in your web browser and provides an interactive computational environment. The notebook document format is a JSON-based file format that stores all the content of your notebook, including code, text, and output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aprw0i-sSf5jbnfbb33PpQ.png" /><figcaption>Jupyter Notebook</figcaption></figure><p>With Jupyter Notebook, you can write code and immediately see the results. You can also include text, images, and equations to explain your work, making it an excellent tool for creating and sharing data analysis, ML, DL, and scientific research. Jupyter Notebook is widely used in academia, industry, and data science communities, and it has a large and active community of contributors and users. It also integrates well with other tools and platforms, such as GitHub, Docker, and cloud services, making it easy to share and collaborate on your work.</p><p>Link to Download Anaconda: <a href="https://www.anaconda.com/">https://www.anaconda.com/</a></p><h4>Kaggle</h4><p>Kaggle is an online community and platform for data scientists and machine learning engineers. It offers a range of resources and tools for data science, including datasets, competitions, notebooks, courses, and jobs.</p><p>One of the key features of Kaggle is its competition, where individuals or teams can compete to develop the best machine-learning models for a given problem. These competitions often have substantial cash prizes and are sponsored by companies and organizations looking for innovative solutions to their data science challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3JvZhpTTKTXFTfoaMJBHw.png" /><figcaption>Kaggle</figcaption></figure><p>In addition to competitions, Kaggle offers a variety of resources for data science learning and exploration, including datasets to practice on, public notebooks to learn from, and online courses and tutorials. Kaggle also provides a platform for job postings and resume submissions for data science-related roles.</p><p>Kaggle has a large and active community of data scientists, with over 4 million registered users as of 2021. The platform is owned by Google, and it is free to use for both individuals and teams.</p><p>Link of Kaggle: <a href="https://www.kaggle.com/">https://www.kaggle.com/</a></p><h4>Colab</h4><p>Colab, short for Google Colaboratory, is a free, cloud-based platform that provides an interactive environment for working with Python and other data science tools. Colab is offered by Google as part of its suite of cloud-based services and is intended for education, research, and development purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEDYlfX5GgO5DHTHN8lDww.png" /><figcaption>Colab</figcaption></figure><p>One of the main benefits of Colab is that it provides free access to powerful computing resources, including CPUs, GPUs, and TPUs. This makes it a great tool for running computationally-intensive tasks, such as training deep learning models.</p><p>Colab also provides a range of features for data exploration, visualization, and collaboration. It includes pre-installed libraries for data manipulation, analysis, and visualization, as well as tools for version control and sharing of code and notebooks.</p><p>Another notable feature of Colab is its integration with Google Drive, allowing users to easily store and access data and notebooks in the cloud. Colab also supports popular machine learning frameworks like TensorFlow and PyTorch, making it an excellent platform for developing and testing machine learning models.</p><p>Colab is widely used by data scientists, researchers, and students, and it has a large and active community of users who share notebooks, tutorials, and other resources.</p><p>Link of Colab: <a href="https://colab.research.google.com/">https://colab.research.google.com/</a></p><h4>Amazon Sage maker studio lab</h4><p>(No credit card needed)</p><p>Amazon SageMaker Studio is an integrated development environment (IDE) for machine learning (ML) that provides a single, web-based visual interface where you can perform all ML development steps, from data preparation to model training, deployment, and monitoring. SageMaker Studio is built on top of the SageMaker platform, which is a fully-managed service that enables data scientists and developers to quickly and easily build, train, and deploy ML models at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHQ6saO_lWe2Rjo7OmZkfw.png" /><figcaption>Amazon SageMaker Studio</figcaption></figure><p>SageMaker Studio Lab is a fully-managed environment in SageMaker Studio that allows you to quickly start working on ML projects without having to set up or manage any infrastructure. With Studio Lab, you can launch a pre-configured Jupyter Notebook instance in seconds, with access to all the tools and libraries you need for ML development. You can also collaborate with others by sharing your notebooks and data in a secure way.</p><p>Some key features of SageMaker Studio Lab include:</p><ul><li>Pre-configured Jupyter notebook instance with popular data science libraries such as Pandas, NumPy, Scikit-learn, TensorFlow, and PyTorch</li><li>Collaborative environment with sharing capabilities</li><li>Ability to customize the environment with your own libraries and dependencies</li><li>Access to pre-built notebooks and sample datasets</li><li>Built-in security and compliance features, including AWS Identity and Access Management (IAM), encryption, and VPC support.</li></ul><p>SageMaker Studio Lab is available at no additional cost to users of SageMaker Studio. You only pay for the resources you consume while using it, such as storage, computing, and data transfer fees. Overall, SageMaker Studio Lab provides a fast and easy way to get started with ML development, without the need for any infrastructure setup or management.</p><p>Link of Amazon SageMaker Studio: <a href="https://studiolab.sagemaker.aws/login">https://studiolab.sagemaker.aws/login</a></p><h3><strong>Thank you for Reading !!</strong></h3><p>Link for Introduction to machine learning:</p><p><a href="https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce">https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce</a></p><p>Link for Machine Learning: Boon or Curse?</p><p><a href="https://medium.com/@sanchitsagarkar03/machine-learning-boon-or-curse-a32a7006aab">https://medium.com/@sanchitsagarkar03/machine-learning-boon-or-curse-a32a7006aab</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4066bf604bff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning: Boon or Curse?]]></title>
            <link>https://medium.com/@sanchitsagarkar03/machine-learning-boon-or-curse-a32a7006aab?source=rss-369f0c24af4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a32a7006aab</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[myths]]></category>
            <dc:creator><![CDATA[Sanchit Shashank Agarkar]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 18:06:56 GMT</pubDate>
            <atom:updated>2023-03-14T18:06:56.961Z</atom:updated>
            <content:encoded><![CDATA[<p>The rise of machine learning has been one of the most significant technological improvements in recent years. From speech recognition to self-driving cars, machine learning is changing the way we interact with technology. However, there are some concerns about the potential negative effects of machine learning. In this blog, we will explore whether machine learning is a boon or a curse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xvywr1dIjamN-VS7" /><figcaption>Machine Learning: A Boon or Curse?</figcaption></figure><p>Machine learning has many positive effects on our lives. Some of the benefits include:</p><ol><li>Increased Efficiency: Machine learning algorithms can analyze large amounts of data quickly and accurately. Businesses can save both money and time and make better decisions as an outcome of this.</li><li>Improved Healthcare: Machine learning can be used to analyze medical data and make predictions about patient outcomes. This can help doctors make more accurate diagnoses and improve patient outcomes.</li><li>Improved transportation: Machine learning can optimize traffic flow, improve route planning, and enhance public transportation systems, making transportation more efficient and reducing carbon emissions.</li><li>Better Customer Service: Machine learning algorithms can be used to analyze customer data and make personalized recommendations. This can improve customer satisfaction and increase sales.</li><li>Increased Safety: Machine learning algorithms can be used to detect fraud, prevent cyber attacks, and improve safety in self-driving cars.</li><li>Environmental Protection: Machine learning can be used to analyze environmental data and make predictions about climate change. This can help governments make better policies to protect the environment.</li><li>Enhanced scientific research: Machine learning algorithms can analyze complex scientific data, identify patterns and make predictions, helping researchers to make breakthroughs in fields such as drug discovery and climate research.</li><li>Increased efficiency in business operations: Machine learning can automate repetitive tasks, reduce errors, and optimize workflows, leading to increased productivity and cost savings.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dbx62Xzoss1XQ6_LI33vOw.png" /></figure><p>Despite the many benefits of machine learning, there are also concerns about its potential negative effects. Some of the potential negative effects include:</p><ol><li>Job Displacement: Machine learning algorithms can automate many jobs, leading to job losses for some workers and unemployment in certain industries.</li><li>Bias and discrimination: Machine learning algorithms can inherit the biases present in the data they are trained on, leading to discrimination against certain groups of people. For example, facial recognition algorithms have been shown to have higher error rates for people with darker skin tones.</li><li>Privacy: Machine learning algorithms can be used to analyze personal data, raising concerns about privacy and data security.</li><li>Dependence: As machine learning becomes more prevalent, we may become too dependent on it, leading to a loss of critical thinking and decision-making skills which could be dangerous in fields such as healthcare and finance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIIAcrL63YwR4xvQ57iykA.png" /></figure><p>Overall, machine learning has the potential to have negative impacts, and it is important to address these potential issues to ensure that the benefits of machine learning are maximized while minimizing the potential harm.</p><h4>Conclusion</h4><p>In conclusion, machine learning has both positive and negative effects. While it has the potential to improve efficiency, healthcare, customer service, safety, and environmental protection, it also raises concerns about job displacement, bias, privacy, and dependence. As machine learning becomes more prevalent in our lives, it is important to address these concerns and ensure that the benefits of machine learning are balanced with its potential negative effects. By doing so, we can harness the power of machine learning for good and create a better future for everyone.</p><p><strong>Thank you for Reading !!</strong></p><p>Link for Introduction to machine learning:</p><p><a href="https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce">https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a32a7006aab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Machine Learning]]></title>
            <link>https://medium.com/@sanchitsagarkar03/introduction-to-machine-learning-e5291029a2ce?source=rss-369f0c24af4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5291029a2ce</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sanchit Shashank Agarkar]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 17:28:20 GMT</pubDate>
            <atom:updated>2023-03-12T17:28:42.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine learning is an area that is expanding quickly and has the ability to completely change how we live and work. It is a subfield of artificial intelligence that uses various algorithms and different statistical models to enable computers to make decisions based on data. In other words, machine learning helps computers to continue improving their performance on a task by learning from experience instead of being explicitly programmed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*_BzQCwRVTo02WG6iEahwXw.png" /></figure><h4>How does machine really learns</h4><p>In machine learning, the machine (which is typically a computer) is trained on a dataset to identify patterns in data and relationships between features that can be used to make predictions or decisions on new data.</p><p>During the training process, the machine learns to recognize patterns and features in the data by iteratively adjusting the parameters of a mathematical model until it can accurately predict outcomes for the training data. The goal is to create a model that can predict the new data it hasn’t seen before.</p><p>It’s important to note that while the machine is doing the heavy lifting in terms of processing and making predictions, it still requires a human to set up the machine learning process, select appropriate models and algorithms, and interpret the results.</p><p>Types of ML Algorithms :</p><p>Three main types of machine learning are :</p><ol><li>Supervised learning</li><li>Unsupervised learning</li><li>Reinforcement learning</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhTRNUaqMnFPxXB13efRAw.png" /><figcaption>Types of Machine Learning</figcaption></figure><p><strong>Supervised learning</strong>: It is the most popular form of machine learning, It is a type of machine learning where the labelled data is used to train the algorithm. In other words, the data used for training the algorithm has input features and known output labels. The main goal of supervised learning is to create a mapping function that can correctly predict the result of the testing data.</p><p>For example, if we want to build a model to predict the price of a house based on its features, the data would include the features of the houses (e.g., size, number of rooms, location) and their corresponding prices. The model would then use this information to make predictions on new, unseen data.</p><p>It can be categorized into two types: classification and regression.</p><p>In supervised learning, Classification algorithms are used to predict the category of the input data using a categorical output variable. Examples of classification problems include email filtering, image classification, and nationality prediction.</p><p>In supervised learning, Regression algorithms are used to predict the continuous variable value, and the goal is to predict a correct integer value. Examples of regression problems include stock price prediction, temperature forecasting, and house price estimation.</p><p><strong>Unsupervised learning</strong>: When the desired output is unknown and the aim is to discover patterns or structures in the data, unsupervised learning is applied.</p><p>In this type of learning the algorithm does not require any data to train itself, unlike supervised learning.</p><p>For example, clustering, which groups similar data points together, and dimensionality reduction, which reduces the number of features in a dataset while retaining its important characteristics.</p><p><strong>Reinforcement learning: </strong>It is a kind of machine learning algorithm that consists of learning through making mistakes. An agent interacts with the environment in this sort of learning and is given or denied rewards based on its actions.</p><p>For example, Training an AI to play a game such as chess or Go. The AI receives feedback in the form of winning or losing the game and adjusts its strategy accordingly to maximize its chances of winning in the future.</p><p>Over time, the agent learns the best actions to take in a given situation to maximize its reward.</p><p><strong>Machine learning</strong> is a powerful tool that has many practical applications in industry, research, and everyday life. By using machine learning algorithms to analyze large datasets, we can gain insights and make predictions that would be difficult or impossible using traditional methods. However, it is important to use machine learning responsibly and ethically, as it has the potential to impact people’s lives in many ways.</p><p>Machine learning has many practical applications, such as:</p><ol><li>Image and speech recognition</li><li>Fraud detection and cybersecurity</li><li>Recommendation systems</li><li>Natural language processing (NLP)</li><li>Predictive maintenance</li><li>Healthcare and medicine</li><li>Financial analysis and investment predictions</li><li>Marketing</li></ol><p>In conclusion, machine learning is an exciting field that is revolutionizing the way we interact with technology. With its ability to learn from data and make accurate predictions, it has many practical applications that can benefit society in numerous ways and also It has a wide range of applications and is being used in various industries to improve efficiency and accuracy. As the field continues to grow and evolve, the potential for machine learning to impact our lives is only going to increase.</p><p>(Image Source: <a href="https://www.memecreator.org/meme/if-it-is-called-machine-learning-the-machine-should-learn-it-not-you/">Meme Creator</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5291029a2ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>