Skip to content

Commit fb8d18a

Browse files
author
M.Notter
committed
Debugs DL/ML blog posts
1 parent e096359 commit fb8d18a

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

_posts/2023-10-23-01_scikit_simple.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,7 @@ date: 2023-10-23 12:00:00
55
description: Getting started with machine learning using Scikit-learn's classification tools
66
---
77

8-
This post is part of a comprehensive machine learning series that takes you from basic classification to advanced neural networks. Throughout these tutorials, you'll learn:
9-
10-
1. **Getting Started with Machine Learning** (Current Post)
11-
Basic classification using Scikit-learn with the MNIST dataset
12-
([View code]({{ site.baseurl }}/assets/scripts/01_scikit_simple.py))
13-
14-
2. **Deep Learning Fundamentals**
15-
Introduction to neural networks using TensorFlow
16-
([View code]({{ site.baseurl }}/assets/scripts/02_tensorflow_simple.py))
17-
18-
3. **Advanced Machine Learning**
19-
Complex regression pipelines with Scikit-learn
20-
([View code]({{ site.baseurl }}/assets/scripts/03_scikit_advanced.py))
21-
22-
4. **Advanced Deep Learning**
23-
Sophisticated neural network architectures in TensorFlow
24-
([View code]({{ site.baseurl }}/assets/scripts/04_tensorflow_advanced.py))
25-
26-
Each tutorial builds upon concepts from previous posts while introducing new techniques and best practices. Whether you're new to machine learning or looking to expand your skills, this series provides hands-on experience with real-world datasets and modern ML tools.
8+
This post is part of a comprehensive machine learning series that takes you from basic classification to advanced neural networks. Throughout these tutorials, you'll learn machine learning fundamentals using hands-on experience with real-world datasets and modern ML tools.
279

2810
Have you ever wondered how to get started with machine learning? This series of posts will guide you through practical implementations using two of Python's most popular frameworks: Scikit-learn and TensorFlow. Whether you're a beginner looking to understand the basics or an experienced developer wanting to refresh your knowledge, we'll progress from basic classification tasks to more advanced regression problems.
2911

_posts/2023-10-23-02_tensorflow_simple.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ For image classification, we'll use a Convolutional Neural Network (CNN). CNNs a
8484

8585
There are multiple ways to define a model in TensorFlow. Let's explore two common approaches:
8686

87-
### 1. Sequential API
87+
### 2.1. Sequential API
8888
The Sequential API is the simplest way to build neural networks - layers are stacked linearly, one after another:
8989

9090
```python
@@ -116,7 +116,7 @@ model = keras.Sequential(
116116
)
117117
```
118118

119-
### 2. Layer-by-Layer Sequential API
119+
### 2.2. Layer-by-Layer Sequential API
120120
For more explicit control, we can separate each layer and activation:
121121

122122
```python

_posts/2023-10-23-03_scikit_advanced.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ So let's setup a pipeline that performs these different pre-processing routines:
178178
of categorical data to numerical data, data imputer for missing values, data scaling, potential dimensionality
179179
reduction, etc.
180180

181-
### Handling categorical data
181+
### 4.1. Handling categorical data
182182

183183
First, let's create a small pipeline that takes categorical data, fills missing values with `'missing'` and
184184
than applies one-hot encoding on these categorical features.
@@ -201,7 +201,7 @@ categorical_preprocessor = Pipeline(
201201
)
202202
```
203203

204-
### Handling numerical data
204+
### 4.2. Handling numerical data
205205

206206
To handle numerical data we will use a slightly more advanced processing pipeline (to showcase some scikit-learn
207207
feature, not because it's the best thing to do). So let's first fill missing values with e.g. the mean of the
@@ -240,7 +240,7 @@ numeric_preprocessor = Pipeline(
240240
)
241241
```
242242

243-
### Combining preprocessing pipelines
243+
### 4.3. Combining preprocessing pipelines
244244

245245
Now that we have a preprocessing pipeline for the categorical and numerical features, let's combine them into
246246
one preprocessing pipeline.
@@ -257,7 +257,7 @@ preprocessor = ColumnTransformer(
257257
)
258258
```
259259

260-
### Add regression model
260+
### 4.4. Add regression model
261261

262262
After the data is preprocessed we want to hand it over to a regression estimator. For this purpose, let's chose
263263
a ridge regression.

_posts/2023-10-23-04_tensorflow_advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ results
649649

650650
<img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/ex_plots/04_tensorflow_results_table.png" data-zoomable width=800px style="padding-top: 20px; padding-right: 20px; padding-bottom: 20px; padding-left: 20px">
651651
<div class="caption">
652-
Figure 5: Results table for the best performing model architecture, showing both loss and MAE on training and validation sets. The consistent convergence suggests stable learning without overfitting.
652+
Figure 3: Results table for the best performing model architecture, showing both loss and MAE on training and validation sets. The consistent convergence suggests stable learning without overfitting.
653653
</div>
654654

655655
From this table, you could now perform a multitude of follow-up investigations. For example, take a look at the

0 commit comments

Comments
 (0)