Skip to content

LinearRegressionModel

Barry Stahl edited this page Jan 13, 2025 · 2 revisions

Crafting AI - Linear Regression Model

This c# solution demonstrates the train/test/predict cycle for the simplest possible AI model, a linear regression with 1 input, and 1 output neuron. This combination of a single weighted input (M) and a single bias (B) on the output results in the equation Y = mX + B, the linear equation that is the foundation of all neural networks.

Linear Regression Model

Since this is a simple linear regression, there is no need for an activation function in this example.