Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mcb00 committed Oct 17, 2023
1 parent 7cfddca commit 7a9aa72
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
90d9853d
f75ed083
14 changes: 7 additions & 7 deletions 8020-pandas-tutorial/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/8020-pandas-tutorial/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/8020-pandas-tutorial/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
5 changes: 5 additions & 0 deletions archive-python.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,11 @@ font-style: inherit;">;</span></span></code></pre></div>
</div>
</div>
</section>
<section id="a-note-on-data-transformation-robustness" class="level3">
<h3 class="anchored" data-anchor-id="a-note-on-data-transformation-robustness">A note on data transformation robustness</h3>
<p>Before we jump into training models, let’s talk about how our approach to data transformation might differ between initial modeling explorations and building robust production-ready ML applications. When faced with a new modeling problem, our priority is usually to get a prototype model working ASAP. Often it’s fastest and easiest to apply transformations to the entire dataset before splitting it into training and validation subsets and commencing model iterations. That’s the approach we’re taking here.</p>
<p>As we move beyond proof of concept toward a production-ready ML application, we would want to start thinking carefully about robustness in our data transformations. Considerations might include issues like how we handle prediction with new values of categorical variables which were not present in training or how to prevent leakage in transformations that compute statistics over the entire dataset. We can benefit from using tools like scikit-learn’s <a href="https://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html"><code>Pipeline</code></a> to chain transformations together and prevent leaking information from the training data into the validation data. We’ll save the details of robust data transformation for another post.</p>
</section>
</section>
<section id="train-and-evaluate-the-xgboost-regression-model" class="level2">
<h2 class="anchored" data-anchor-id="train-and-evaluate-the-xgboost-regression-model">Train and Evaluate the XGBoost regression model</h2>
Expand Down
2 changes: 1 addition & 1 deletion archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="python,tutorial,gradient boosting,xgboost" data-listing-date-sort="1694988000000" data-listing-file-modified-sort="1695040921943" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="12">
<div class="quarto-post image-right" data-index="1" data-categories="python,tutorial,gradient boosting,xgboost" data-listing-date-sort="1694988000000" data-listing-file-modified-sort="1697546508509" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="13">
<div class="body">
<a href="./posts/xgboost-for-regression-in-python/index.html">
<h3 class="no-anchor listing-title">
Expand Down
5 changes: 5 additions & 0 deletions archive.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,11 @@ font-style: inherit;">;</span></span></code></pre></div>
</div>
</div>
</section>
<section id="a-note-on-data-transformation-robustness" class="level3">
<h3 class="anchored" data-anchor-id="a-note-on-data-transformation-robustness">A note on data transformation robustness</h3>
<p>Before we jump into training models, let’s talk about how our approach to data transformation might differ between initial modeling explorations and building robust production-ready ML applications. When faced with a new modeling problem, our priority is usually to get a prototype model working ASAP. Often it’s fastest and easiest to apply transformations to the entire dataset before splitting it into training and validation subsets and commencing model iterations. That’s the approach we’re taking here.</p>
<p>As we move beyond proof of concept toward a production-ready ML application, we would want to start thinking carefully about robustness in our data transformations. Considerations might include issues like how we handle prediction with new values of categorical variables which were not present in training or how to prevent leakage in transformations that compute statistics over the entire dataset. We can benefit from using tools like scikit-learn’s <a href="https://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html"><code>Pipeline</code></a> to chain transformations together and prevent leaking information from the training data into the validation data. We’ll save the details of robust data transformation for another post.</p>
</section>
</section>
<section id="train-and-evaluate-the-xgboost-regression-model" class="level2">
<h2 class="anchored" data-anchor-id="train-and-evaluate-the-xgboost-regression-model">Train and Evaluate the XGBoost regression model</h2>
Expand Down
14 changes: 7 additions & 7 deletions consider-the-decision-tree/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/consider-the-decision-tree/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/consider-the-decision-tree/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
14 changes: 7 additions & 7 deletions decision-tree-from-scratch/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/decision-tree-from-scratch/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/decision-tree-from-scratch/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
14 changes: 7 additions & 7 deletions get-down-with-gradient-descent/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/get-down-with-gradient-descent/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/get-down-with-gradient-descent/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
14 changes: 7 additions & 7 deletions gradient-boosting-machine-from-scratch/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/gradient-boosting-machine-from-scratch/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/gradient-boosting-machine-from-scratch/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
14 changes: 7 additions & 7 deletions gradient-boosting-machine-with-any-loss-function/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/gradient-boosting-machine-with-any-loss-function/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/gradient-boosting-machine-with-any-loss-function/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
2 changes: 1 addition & 1 deletion gradient-boosting-series.html
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="8" data-categories="python,tutorial,gradient boosting,xgboost" data-listing-date-sort="1694988000000" data-listing-file-modified-sort="1695040921943" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="12">
<div class="quarto-post image-right" data-index="8" data-categories="python,tutorial,gradient boosting,xgboost" data-listing-date-sort="1694988000000" data-listing-file-modified-sort="1697546508509" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="13">
<div class="thumbnail">
<p><a href="./posts/xgboost-for-regression-in-python/index.html"> <img src="./posts/xgboost-for-regression-in-python/kigali-branches.jpg" class="thumbnail-image" alt="branches reach into the Kigali sky"> </a></p>
</div>
Expand Down
14 changes: 7 additions & 7 deletions hello-pyspark/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/hello-pyspark/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/hello-pyspark/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
14 changes: 7 additions & 7 deletions how-gradient-boosting-does-gradient-descent/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/how-gradient-boosting-does-gradient-descent/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/how-gradient-boosting-does-gradient-descent/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
14 changes: 7 additions & 7 deletions how-to-understand-xgboost/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../posts/xgboost-explained/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
<script
async
defer
src="https://umami.randomrealizations.com/script.js"
data-domains="randomrealizations.com"
data-website-id="17844d61-f224-45c0-aa5f-2935c14dd5ac"
></script>
<script type="text/javascript">
var redirects = {"":"../posts/xgboost-explained/"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="python,tutorial,gradient boosting,xgboost" data-listing-date-sort="1694988000000" data-listing-file-modified-sort="1695040921943" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="12">
<div class="quarto-post image-right" data-index="1" data-categories="python,tutorial,gradient boosting,xgboost" data-listing-date-sort="1694988000000" data-listing-file-modified-sort="1697546508509" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="13">
<div class="thumbnail">
<p><a href="./posts/xgboost-for-regression-in-python/index.html"> <img src="./posts/xgboost-for-regression-in-python/kigali-branches.jpg" class="thumbnail-image" alt="branches reach into the Kigali sky"> </a></p>
</div>
Expand Down
6 changes: 6 additions & 0 deletions posts/xgboost-for-regression-in-python/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ <h2 id="toc-title">On this page</h2>
<li><a href="#encode-string-features" id="toc-encode-string-features" class="nav-link" data-scroll-target="#encode-string-features">Encode string features</a></li>
<li><a href="#encode-date-and-timestamp-features" id="toc-encode-date-and-timestamp-features" class="nav-link" data-scroll-target="#encode-date-and-timestamp-features">Encode date and timestamp features</a></li>
<li><a href="#transform-the-target-if-necessary" id="toc-transform-the-target-if-necessary" class="nav-link" data-scroll-target="#transform-the-target-if-necessary">Transform the target if necessary</a></li>
<li><a href="#a-note-on-data-transformation-robustness" id="toc-a-note-on-data-transformation-robustness" class="nav-link" data-scroll-target="#a-note-on-data-transformation-robustness">A note on data transformation robustness</a></li>
</ul></li>
<li><a href="#train-and-evaluate-the-xgboost-regression-model" id="toc-train-and-evaluate-the-xgboost-regression-model" class="nav-link" data-scroll-target="#train-and-evaluate-the-xgboost-regression-model">Train and Evaluate the XGBoost regression model</a>
<ul class="collapse">
Expand Down Expand Up @@ -433,6 +434,11 @@ <h3 class="anchored" data-anchor-id="transform-the-target-if-necessary">Transfor
</div>
</div>
</section>
<section id="a-note-on-data-transformation-robustness" class="level3">
<h3 class="anchored" data-anchor-id="a-note-on-data-transformation-robustness">A note on data transformation robustness</h3>
<p>Before we jump into training models, let’s talk about how our approach to data transformation might differ between initial modeling explorations and building robust production-ready ML applications. When faced with a new modeling problem, our priority is usually to get a prototype model working ASAP. Often it’s fastest and easiest to apply transformations to the entire dataset before splitting it into training and validation subsets and commencing model iterations. That’s the approach we’re taking here.</p>
<p>As we move beyond proof of concept toward a production-ready ML application, we would want to start thinking carefully about robustness in our data transformations. Considerations might include issues like how we handle prediction with new values of categorical variables which were not present in training or how to prevent leakage in transformations that compute statistics over the entire dataset. We can benefit from using tools like scikit-learn’s <a href="https://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html"><code>Pipeline</code></a> to chain transformations together and prevent leaking information from the training data into the validation data. We’ll save the details of robust data transformation for another post.</p>
</section>
</section>
<section id="train-and-evaluate-the-xgboost-regression-model" class="level2">
<h2 class="anchored" data-anchor-id="train-and-evaluate-the-xgboost-regression-model">Train and Evaluate the XGBoost regression model</h2>
Expand Down
Loading

0 comments on commit 7a9aa72

Please sign in to comment.