<?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>Forem: Christian Darvin</title>
    <description>The latest articles on Forem by Christian Darvin (@christiandarvs).</description>
    <link>https://forem.com/christiandarvs</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%2F1452947%2F40d9cf21-d68a-4274-9dc6-2dded58d706c.jpg</url>
      <title>Forem: Christian Darvin</title>
      <link>https://forem.com/christiandarvs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/christiandarvs"/>
    <language>en</language>
    <item>
      <title>Machine Learning: Day 2</title>
      <dc:creator>Christian Darvin</dc:creator>
      <pubDate>Wed, 01 May 2024 14:29:52 +0000</pubDate>
      <link>https://forem.com/christiandarvs/machine-learning-day-2-429g</link>
      <guid>https://forem.com/christiandarvs/machine-learning-day-2-429g</guid>
      <description>&lt;h2&gt;
  
  
  Types of Machine Learning Algorithms
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Supervised Learning&lt;/li&gt;
&lt;li&gt;Unsupervised Learning&lt;/li&gt;
&lt;li&gt;Recommender Systems&lt;/li&gt;
&lt;li&gt;Reinforcement Learning&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Supervised Learning
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Refers to algorithms that learn input-to-output mappings.&lt;/li&gt;
&lt;li&gt;Give learning algorithm examples to learn from that include the "output" label for a given input X.&lt;/li&gt;
&lt;li&gt;Eventually learns to take just the input alone without the output label and gives a reasonably accurate prediction or guess of the output.&lt;/li&gt;
&lt;li&gt;Learns from being given "right answers."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples of Supervised Learning
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Input (X)&lt;/th&gt;
&lt;th&gt;Output (Y)&lt;/th&gt;
&lt;th&gt;Application&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Email&lt;/td&gt;
&lt;td&gt;Spam (0/1)&lt;/td&gt;
&lt;td&gt;Spam Filtering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audio&lt;/td&gt;
&lt;td&gt;Text Transcripts&lt;/td&gt;
&lt;td&gt;Speech Recognition&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;English&lt;/td&gt;
&lt;td&gt;Spanish, Chinese, etc&lt;/td&gt;
&lt;td&gt;Machine Translation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ad, User Info&lt;/td&gt;
&lt;td&gt;User Click (0/1)&lt;/td&gt;
&lt;td&gt;Online-Advertisments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Image, Radar Info&lt;/td&gt;
&lt;td&gt;Position of other cars&lt;/td&gt;
&lt;td&gt;Self-Driving Cars&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How does it learn? (Simplified)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Split the data by 80% for training data and 20% for test data.&lt;/li&gt;
&lt;li&gt;Train the model with examples of Input (X) and Labels (Y) using the 80% training data.&lt;/li&gt;
&lt;li&gt;Use the 20% test data or unseen data, to predict or guess the output.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;"Eventually learns to take just the input alone without the output label and gives a reasonably accurate prediction or guess of the output"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Andrew Ng&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Types of Supervised Learning Algorithm
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpgb94hkpx8i43pm0c03o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpgb94hkpx8i43pm0c03o.png" alt="Linear Regression Plot" width="800" height="616"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Regression
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;It is used to analyze the relationship between the independent variables and dependent variables.&lt;/li&gt;
&lt;li&gt;Predict a number from infinitely many possible numbers.&lt;/li&gt;
&lt;li&gt;Example: house prices (Y), size of the house (X)&lt;/li&gt;
&lt;li&gt;When you see a plot that uses linear regression, the Y always refers to the value we want to predict.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feu11krvek2oro5icfyho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feu11krvek2oro5icfyho.png" alt="Classification Plot" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Classification
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;We are trying to predict only a small number of possible outputs or categories.&lt;/li&gt;
&lt;li&gt;There are more than two possible outputs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Class/Category&lt;/strong&gt; is the term that we use for the output.&lt;/li&gt;
&lt;li&gt;Predict categories, usually non-numeric.&lt;/li&gt;
&lt;li&gt;Find the boundary line that separates 0 and 1.&lt;/li&gt;
&lt;li&gt;Breast Cancer Detection &lt;code&gt;[0: benign, 1: malignant]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Examples: Cat or Dog, Benign or Malignant&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Image References
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.researchgate.net/figure/Linear-Regression-model-sample-illustration_fig3_333457161"&gt;Linear Regression Plot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://machinelearningmastery.com/types-of-classification-in-machine-learning/"&gt;Classification Plot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>programming</category>
    </item>
    <item>
      <title>Machine Learning: Day 1</title>
      <dc:creator>Christian Darvin</dc:creator>
      <pubDate>Sat, 27 Apr 2024 13:38:32 +0000</pubDate>
      <link>https://forem.com/christiandarvs/day-1-of-studying-machine-learning-175o</link>
      <guid>https://forem.com/christiandarvs/day-1-of-studying-machine-learning-175o</guid>
      <description>&lt;h2&gt;
  
  
  What is Machine Learning?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Machine Learning is a field of study gives computers the ability to learn without being explicitly programmed.&lt;br&gt;
&lt;cite&gt;- Arthur Samuel&lt;/cite&gt; (1959)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Who is Arthur Samuel?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhcap6ng5s6h05gc5b5zb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhcap6ng5s6h05gc5b5zb.jpg" alt="An image of Arthur Samuel playing with his Checkers Program" width="474" height="345"&gt;&lt;/a&gt;&lt;br&gt;
Arthur Samuel was a Computer Scientist who popularized the term &lt;strong&gt;Machine Learning&lt;/strong&gt;. He developed a program named &lt;strong&gt;Samuel Checkers-Playing Program&lt;/strong&gt; that eventually became better than him at the game.&lt;/p&gt;

&lt;h2&gt;
  
  
  How did the Samuel Checkers-Playing Program learn?
&lt;/h2&gt;

&lt;p&gt;He programmed the computer to play hundreds or thousands of games against itself. Over time, the program learned by identifying which board positions led to wins and losses, thereby developing an understanding of good and bad moves.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applications of Machine Learning
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Recommender Systems (Netflix, YouTube, Spotify)&lt;/li&gt;
&lt;li&gt;Speech Recognition (Amazon Echo, Google Home, Siri) &lt;/li&gt;
&lt;li&gt;Spam Email Detection&lt;/li&gt;
&lt;li&gt;Healthcare (Medical Diagnosis)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>machinelearning</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
