Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Stochastic Gradient Descent

Step 0: Get Iris data

There are 3 categories: <StringArray>
['Iris-setosa', 'Iris-versicolor', 'Iris-virginica']
Length: 3, dtype: str
Loading...
Fitting a dataset with X: (100, 2) and y: (100,)
<Figure size 960x720 with 1 Axes>
There are 50 examples of Iris-versicolor

Step 1: Define base Adaline class with Gradient Descent

<Figure size 960x720 with 1 Axes>

Adaline with SGD

<Figure size 960x720 with 1 Axes>
<Figure size 960x720 with 6 Axes>

Minibatch SGD Adaline definition

<Figure size 960x720 with 1 Axes>
<Figure size 960x720 with 6 Axes>
<Figure size 300x800 with 3 Axes>