regularization / usage.md
joel-woodfield's picture
Update usage.md
82c5de9 verified

A newer version of the Gradio SDK is available: 6.11.0

Upgrade

Usage

In this visualizer, you visualize the loss and regularization of linear regression models on a given dataset.


Data

In the data tab, generate a dataset using a custom function or upload a csv file. Make sure the function depends on x1 and x2.

Regularization

Select your loss function and regularization type

Generating plots

Click Regenerate Plots to update plots with the current settings


Contour Plot

The contour plot shows the loss values and the regularization norms for the linear models on the dataset. The red path shows how the loss and regularization norm values change as the regularization strength moves from 10^{-4} to 10^4 (log scale). You can see that the path intersects where the loss and regularization contours are parallel.

Data Plot

The data plot shows the data points used to compute the loss values.

Strength Plot

The strenght plot is a line plot of regularization strength vs weight value for w1 and w2. These match the values shown on the red regularization path in the contour plot.