Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
fderyckel committed Apr 21, 2024
1 parent 533217e commit 2158c49
Show file tree
Hide file tree
Showing 239 changed files with 3,151 additions and 782 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 20 additions & 8 deletions docs/blog.html

Large diffs are not rendered by default.

1,999 changes: 1,539 additions & 460 deletions docs/blog.xml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/machine-learning-part1.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ <h1 class="title">Series: Machine Learning - Part 1</h1>

<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-categories="Supervised ML,KNN,Classification" data-listing-date-sort="1699894800000" data-listing-file-modified-sort="1713613869966" data-listing-date-modified-sort="1713546000000" data-listing-reading-time-sort="12">
<div class="quarto-post image-right" data-index="0" data-categories="Supervised ML,KNN,Classification,Confusion Matrix,F1 Measure" data-listing-date-sort="1699894800000" data-listing-file-modified-sort="1713673086977" data-listing-date-modified-sort="1713632400000" data-listing-reading-time-sort="18">
<div class="body">
<a href="./posts/machine-learning-part1/01-knn/index.html">
<h3 class="no-anchor listing-title">
KNN
KNN - K Nearest Neighbor
</h3>
<div class="listing-subtitle">

Expand All @@ -188,12 +188,12 @@ <h3 class="no-anchor listing-title">
Nov 14, 2023
</div>
<div class="listing-reading-time">
12 min
18 min
</div>
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="sklearn,tidymodel" data-listing-date-sort="1713200400000" data-listing-file-modified-sort="1713613727370" data-listing-date-modified-sort="1713546000000" data-listing-reading-time-sort="2">
<div class="quarto-post image-right" data-index="1" data-categories="sklearn,tidymodel" data-listing-date-sort="1713200400000" data-listing-file-modified-sort="1713628639893" data-listing-date-modified-sort="1713546000000" data-listing-reading-time-sort="2">
<div class="body">
<a href="./posts/machine-learning-part1/05-metrics/index.html">
<h3 class="no-anchor listing-title">
Expand Down Expand Up @@ -293,7 +293,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="5" data-categories="Kmeans,tidymodel" data-listing-date-sort="1665507600000" data-listing-file-modified-sort="1713613744038" data-listing-date-modified-sort="1665507600000" data-listing-reading-time-sort="6">
<div class="quarto-post image-right" data-index="5" data-categories="ML unsupervised,Kmeans,Tidymodel,Classification" data-listing-date-sort="1665507600000" data-listing-file-modified-sort="1713615347821" data-listing-date-modified-sort="1665507600000" data-listing-reading-time-sort="6">
<div class="body">
<a href="./posts/machine-learning-part1/07-kmeans-regime-change/index.html">
<h3 class="no-anchor listing-title">
Expand Down
757 changes: 505 additions & 252 deletions docs/posts/machine-learning-part1/01-knn/index.html

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions docs/posts/machine-learning-part1/05-metrics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,40 @@
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
</style>


Expand Down Expand Up @@ -164,6 +198,7 @@ <h2 id="toc-title">Table of contents</h2>
<li><a href="#precision" id="toc-precision" class="nav-link" data-scroll-target="#precision">Precision</a></li>
<li><a href="#recall" id="toc-recall" class="nav-link" data-scroll-target="#recall">Recall</a></li>
<li><a href="#f1-score" id="toc-f1-score" class="nav-link" data-scroll-target="#f1-score">F1 score</a></li>
<li><a href="#auc-roc-curve" id="toc-auc-roc-curve" class="nav-link" data-scroll-target="#auc-roc-curve">AUC &amp; ROC Curve</a></li>
</ul></li>
</ul>
</nav>
Expand Down Expand Up @@ -220,6 +255,13 @@ <h2 class="anchored" data-anchor-id="recall">Recall</h2>
<h2 class="anchored" data-anchor-id="f1-score">F1 score</h2>
<p>It is the <strong>harmonic mean</strong> of both precision and recall. The harmonic mean penalizes model that have very low precision or recall. Which wouldn’t be the case with arithmetic mean.</p>
<p><span class="math display">\[\frac{2 \cdot Precision \cdot Recall}{Precision + Recall}\]</span></p>
</section>
<section id="auc-roc-curve" class="level2">
<h2 class="anchored" data-anchor-id="auc-roc-curve">AUC &amp; ROC Curve</h2>
<p>need to get the prediction as a probability</p>
<div class="cell" data-hash="index_cache/html/unnamed-chunk-1_f8febe300bdf5210f7934e8f7c002c44">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(yardstick)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>


</section>
Expand Down
47 changes: 34 additions & 13 deletions docs/search.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://fderyckel.github.io/blog.html/blog.html</loc>
<lastmod>2024-04-20T11:51:42.163Z</lastmod>
<lastmod>2024-04-21T05:14:40.759Z</lastmod>
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/quant-part1.html</loc>
Expand Down Expand Up @@ -130,7 +130,7 @@
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/machine-learning-part1.html</loc>
<lastmod>2024-04-20T11:51:39.363Z</lastmod>
<lastmod>2024-04-21T05:14:38.416Z</lastmod>
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/quant-part2.html</loc>
Expand Down Expand Up @@ -218,15 +218,15 @@
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/posts/machine-learning-part1/01-knn/index.html</loc>
<lastmod>2024-04-20T11:51:46.853Z</lastmod>
<lastmod>2024-04-21T05:14:47.369Z</lastmod>
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/posts/machine-learning-part1/05-metrics/index.html</loc>
<lastmod>2024-04-20T11:48:51.603Z</lastmod>
<lastmod>2024-04-20T18:09:27.814Z</lastmod>
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/posts/machine-learning-part1/07-kmeans-regime-change/index.html</loc>
<lastmod>2024-04-20T11:49:14.252Z</lastmod>
<lastmod>2024-04-20T18:09:23.551Z</lastmod>
</url>
<url>
<loc>https://fderyckel.github.io/blog.html/posts/machine-learning-part1/09-naives-bayes-intro/index.html</loc>
Expand Down
Loading

0 comments on commit 2158c49

Please sign in to comment.