Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 426 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 426 Bytes

LinearRegressionVis

Visualizing 30 data points with Roassal2 and fitting them with PMLinearRegression.

model := PMLinearRegression new.
n := 30.
rand := Random new.
points := (1 to: n) collect: [ :x | x@(2 * x + (rand next * 20 - 10)) ].
points do: [ :p | 
  model add: p ].

Visualization of linear regression