Skip to content

Commit

Permalink
updating site content
Browse files Browse the repository at this point in the history
  • Loading branch information
vermavineet-google committed Jul 19, 2024
1 parent 8221ebe commit d179703
Show file tree
Hide file tree
Showing 36 changed files with 324 additions and 59 deletions.
52 changes: 49 additions & 3 deletions 01_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,53 @@
"\n",
"What is `Machine Learning`? What is the basic level of ML?\n",
"\n",
"![maths](assets/ai.png)\n",
"Imagine the following code:\n",
"\n",
"![map](assets/map_of_ml.png)"
"```python\n",
"if x>10:\n",
" print(\"x is greater than 10\")\n",
"else:\n",
" print(\"x is less than 10\")\n",
"```\n",
"\n",
"Is this `Machine Learning`? \n",
"\n",
"> No, this is a rule based system. But re-imagine \n",
"this example as follows:\n",
"\n",
"```python \n",
"if x>y:\n",
" print(\"x is greater than 10\")\n",
"else:\n",
" print(\"x is less than 10\")\n",
"```\n",
"\n",
"where the value of `y` is adjusted but mathematical operations and \n",
"feedback rather than you explicitly setting the value as 10.\n",
"\n",
"Is this now `Machine Learning`?\n",
"\n",
"> Yes, this is a basic example of `Machine Learning`.\n",
"\n",
"First try to understand What is `Artificial Intelligence`?\n",
"\n",
"\n",
"\n",
"Think of `Artificial Intelligence`, the buzzword of the decade, as the ability to learn the art of decision making.\n",
"Whether the decision is the action to switch on the bulb based on light intensity on the sensor or the descision to \n",
"turn the car wheel in case of any object detected in front of the car or the ability to predict the next word in \n",
"the sequece of sentence, or just taking the descision to determine which object is present in the image.\n",
"\n",
"`Machine Learning` is the subset of this AI\n",
"\n",
"It is about building a mathematical set of equations which take some set of inputs and outputs a value which can be `inferred` by down stream systems as a descision.\n",
"\n",
"ML is the `if..else...end` condition that saves our efforts to come up with rules that execute certain actions.\n",
"\n",
"Consider `Artificial Intelligence`\n",
"\n",
"![maths](assets/ai.png)\n",
"\n"
]
},
{
Expand All @@ -46,7 +90,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Types of Machine Learning"
"## Types of Machine Learning\n",
"![map](assets/map_of_ml.png)"
]
},
{
Expand All @@ -56,6 +101,7 @@
"### Matrix of problems: `Supervised`/`Unsupervised`, `Regression`/`Classification`\n",
"\n",
"Examples:\n",
"\n",
"|Objective/Type Of Learning|Supervised|Unsupervised|\n",
"|:-:|:-:|:-:|\n",
"|Regression|House Price Prediction|House Price Estimation|\n",
Expand Down
2 changes: 1 addition & 1 deletion 04_supervised_learning_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Supervised Learning"
"# Supervised Learning | Regression"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 05_supervised_learning_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Supervised Learning"
"# Supervised Learning | Classification"
]
},
{
Expand Down
12 changes: 10 additions & 2 deletions 07_deep_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Artificial Neural Networks"
"### Artificial Neural Networks\n",
"\n",
"|![ANN](assets/a_simple_feed_forward_neural_network.png)|\n",
"|:-:|\n",
"|A simple ANN(Source: /~https://github.com/helblazer811/ManimML)|"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Convolutional Neural Networks"
"### Convolutional Neural Networks\n",
"\n",
"|![CNN](assets/convolutional_neural_network_with_an_image.gif)|\n",
"|:-:|\n",
"|CNN(Source: /~https://github.com/helblazer811/ManimML)|\n"
]
},
{
Expand Down
18 changes: 16 additions & 2 deletions 08_reinforcement_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,24 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python"
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Binary file modified _build/.doctrees/01_introduction.doctree
Binary file not shown.
Binary file modified _build/.doctrees/04_supervised_learning_regression.doctree
Binary file not shown.
Binary file modified _build/.doctrees/05_supervised_learning_classification.doctree
Binary file not shown.
Binary file modified _build/.doctrees/07_deep_learning.doctree
Binary file not shown.
Binary file modified _build/.doctrees/environment.pickle
Binary file not shown.
39 changes: 36 additions & 3 deletions _build/html/01_introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Introduction to Machine Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="02_defining_the_problem_statement.html">Defining the problem statement</a></li>
<li class="toctree-l1"><a class="reference internal" href="03_know_your_data.html">Know Your Data</a></li>
<li class="toctree-l1"><a class="reference internal" href="04_supervised_learning_regression.html">Supervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="05_supervised_learning_classification.html">Supervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="04_supervised_learning_regression.html">Supervised Learning | Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="05_supervised_learning_classification.html">Supervised Learning | Classification</a></li>
<li class="toctree-l1"><a class="reference internal" href="06_unsupervised_learning.html">Unsupervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="07_deep_learning.html">Deep Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="08_reinforcement_learning.html">Reinforcement Learning</a></li>
Expand Down Expand Up @@ -398,14 +398,47 @@ <h1>Introduction to Machine Learning<a class="headerlink" href="#introduction-to
<h2>Introduction to the <code class="docutils literal notranslate"><span class="pre">World</span> <span class="pre">of</span> <span class="pre">AI/ML</span></code><a class="headerlink" href="#introduction-to-the-world-of-ai-ml" title="Link to this heading">#</a></h2>
<p><code class="docutils literal notranslate"><span class="pre">Machine</span> <span class="pre">Learning</span></code> in essence is basically <code class="docutils literal notranslate"><span class="pre">Mathematics</span></code> on overdrive.</p>
<p>What is <code class="docutils literal notranslate"><span class="pre">Machine</span> <span class="pre">Learning</span></code>? What is the basic level of ML?</p>
<p>Imagine the following code:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">if</span> <span class="n">x</span><span class="o">&gt;</span><span class="mi">10</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x is greater than 10&quot;</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x is less than 10&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>Is this <code class="docutils literal notranslate"><span class="pre">Machine</span> <span class="pre">Learning</span></code>?</p>
<blockquote>
<div><p>No, this is a rule based system. But re-imagine
this example as follows:</p>
</div></blockquote>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">if</span> <span class="n">x</span><span class="o">&gt;</span><span class="n">y</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x is greater than 10&quot;</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x is less than 10&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>where the value of <code class="docutils literal notranslate"><span class="pre">y</span></code> is adjusted but mathematical operations and
feedback rather than you explicitly setting the value as 10.</p>
<p>Is this now <code class="docutils literal notranslate"><span class="pre">Machine</span> <span class="pre">Learning</span></code>?</p>
<blockquote>
<div><p>Yes, this is a basic example of <code class="docutils literal notranslate"><span class="pre">Machine</span> <span class="pre">Learning</span></code>.</p>
</div></blockquote>
<p>First try to understand What is <code class="docutils literal notranslate"><span class="pre">Artificial</span> <span class="pre">Intelligence</span></code>?</p>
<p>Think of <code class="docutils literal notranslate"><span class="pre">Artificial</span> <span class="pre">Intelligence</span></code>, the buzzword of the decade, as the ability to learn the art of decision making.
Whether the decision is the action to switch on the bulb based on light intensity on the sensor or the descision to
turn the car wheel in case of any object detected in front of the car or the ability to predict the next word in
the sequece of sentence, or just taking the descision to determine which object is present in the image.</p>
<p><code class="docutils literal notranslate"><span class="pre">Machine</span> <span class="pre">Learning</span></code> is the subset of this AI</p>
<p>It is about building a mathematical set of equations which take some set of inputs and outputs a value which can be <code class="docutils literal notranslate"><span class="pre">inferred</span></code> by down stream systems as a descision.</p>
<p>ML is the <code class="docutils literal notranslate"><span class="pre">if..else...end</span></code> condition that saves our efforts to come up with rules that execute certain actions.</p>
<p>Consider <code class="docutils literal notranslate"><span class="pre">Artificial</span> <span class="pre">Intelligence</span></code></p>
<p><img alt="maths" src="_images/ai.png" /></p>
<p><img alt="map" src="_images/map_of_ml.png" /></p>
</section>
<section id="machine-learning-and-its-applications">
<h2>Machine Learning and Its Applications<a class="headerlink" href="#machine-learning-and-its-applications" title="Link to this heading">#</a></h2>
</section>
<section id="types-of-machine-learning">
<h2>Types of Machine Learning<a class="headerlink" href="#types-of-machine-learning" title="Link to this heading">#</a></h2>
<p><img alt="map" src="_images/map_of_ml.png" /></p>
<section id="matrix-of-problems-supervised-unsupervised-regression-classification">
<h3>Matrix of problems: <code class="docutils literal notranslate"><span class="pre">Supervised</span></code>/<code class="docutils literal notranslate"><span class="pre">Unsupervised</span></code>, <code class="docutils literal notranslate"><span class="pre">Regression</span></code>/<code class="docutils literal notranslate"><span class="pre">Classification</span></code><a class="headerlink" href="#matrix-of-problems-supervised-unsupervised-regression-classification" title="Link to this heading">#</a></h3>
<p>Examples:</p>
Expand Down
16 changes: 8 additions & 8 deletions _build/html/04_supervised_learning_regression.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<title>Supervised Learning &#8212; Learning By Failure - Machine Learning</title>
<title>Supervised Learning | Regression &#8212; Learning By Failure - Machine Learning</title>



Expand Down Expand Up @@ -75,7 +75,7 @@
<link rel="author" title="About these documents" href="about.html" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Supervised Learning" href="05_supervised_learning_classification.html" />
<link rel="next" title="Supervised Learning | Classification" href="05_supervised_learning_classification.html" />
<link rel="prev" title="Know Your Data" href="03_know_your_data.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
Expand Down Expand Up @@ -195,8 +195,8 @@
<li class="toctree-l1"><a class="reference internal" href="01_introduction.html">Introduction to Machine Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="02_defining_the_problem_statement.html">Defining the problem statement</a></li>
<li class="toctree-l1"><a class="reference internal" href="03_know_your_data.html">Know Your Data</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Supervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="05_supervised_learning_classification.html">Supervised Learning</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Supervised Learning | Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="05_supervised_learning_classification.html">Supervised Learning | Classification</a></li>
<li class="toctree-l1"><a class="reference internal" href="06_unsupervised_learning.html">Unsupervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="07_deep_learning.html">Deep Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="08_reinforcement_learning.html">Reinforcement Learning</a></li>
Expand Down Expand Up @@ -354,7 +354,7 @@


<div id="jb-print-docs-body" class="onlyprint">
<h1>Supervised Learning</h1>
<h1>Supervised Learning | Regression</h1>
<!-- Table of contents -->
<div id="print-main-content">
<div id="jb-print-toc">
Expand All @@ -380,8 +380,8 @@ <h2> Contents </h2>
<div id="searchbox"></div>
<article class="bd-article">

<section class="tex2jax_ignore mathjax_ignore" id="supervised-learning">
<h1>Supervised Learning<a class="headerlink" href="#supervised-learning" title="Link to this heading">#</a></h1>
<section class="tex2jax_ignore mathjax_ignore" id="supervised-learning-regression">
<h1>Supervised Learning | Regression<a class="headerlink" href="#supervised-learning-regression" title="Link to this heading">#</a></h1>
<section id="defining-regression-problems">
<h2>Defining Regression Problems<a class="headerlink" href="#defining-regression-problems" title="Link to this heading">#</a></h2>
<table class="table">
Expand Down Expand Up @@ -455,7 +455,7 @@ <h2>Running Backtests<a class="headerlink" href="#running-backtests" title="Link
title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">Supervised Learning</p>
<p class="prev-next-title">Supervised Learning | Classification</p>
</div>
<i class="fa-solid fa-angle-right"></i>
</a>
Expand Down
16 changes: 8 additions & 8 deletions _build/html/05_supervised_learning_classification.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<title>Supervised Learning &#8212; Learning By Failure - Machine Learning</title>
<title>Supervised Learning | Classification &#8212; Learning By Failure - Machine Learning</title>



Expand Down Expand Up @@ -76,7 +76,7 @@
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Unsupervised Learning" href="06_unsupervised_learning.html" />
<link rel="prev" title="Supervised Learning" href="04_supervised_learning_regression.html" />
<link rel="prev" title="Supervised Learning | Regression" href="04_supervised_learning_regression.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
</head>
Expand Down Expand Up @@ -195,8 +195,8 @@
<li class="toctree-l1"><a class="reference internal" href="01_introduction.html">Introduction to Machine Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="02_defining_the_problem_statement.html">Defining the problem statement</a></li>
<li class="toctree-l1"><a class="reference internal" href="03_know_your_data.html">Know Your Data</a></li>
<li class="toctree-l1"><a class="reference internal" href="04_supervised_learning_regression.html">Supervised Learning</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Supervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="04_supervised_learning_regression.html">Supervised Learning | Regression</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Supervised Learning | Classification</a></li>
<li class="toctree-l1"><a class="reference internal" href="06_unsupervised_learning.html">Unsupervised Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="07_deep_learning.html">Deep Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="08_reinforcement_learning.html">Reinforcement Learning</a></li>
Expand Down Expand Up @@ -354,7 +354,7 @@


<div id="jb-print-docs-body" class="onlyprint">
<h1>Supervised Learning</h1>
<h1>Supervised Learning | Classification</h1>
<!-- Table of contents -->
<div id="print-main-content">
<div id="jb-print-toc">
Expand All @@ -380,8 +380,8 @@ <h2> Contents </h2>
<div id="searchbox"></div>
<article class="bd-article">

<section class="tex2jax_ignore mathjax_ignore" id="supervised-learning">
<h1>Supervised Learning<a class="headerlink" href="#supervised-learning" title="Link to this heading">#</a></h1>
<section class="tex2jax_ignore mathjax_ignore" id="supervised-learning-classification">
<h1>Supervised Learning | Classification<a class="headerlink" href="#supervised-learning-classification" title="Link to this heading">#</a></h1>
<section id="defining-classification-problems">
<h2>Defining Classification Problems<a class="headerlink" href="#defining-classification-problems" title="Link to this heading">#</a></h2>
</section>
Expand Down Expand Up @@ -435,7 +435,7 @@ <h2>Running Backtests<a class="headerlink" href="#running-backtests" title="Link
<i class="fa-solid fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">previous</p>
<p class="prev-next-title">Supervised Learning</p>
<p class="prev-next-title">Supervised Learning | Regression</p>
</div>
</a>
<a class="right-next"
Expand Down
Loading

0 comments on commit d179703

Please sign in to comment.