USArmy-Corps-of-Engineers-RMC / Numerics

Numerics is a free and open-source library for .NET developed by USACE-RMC, providing a comprehensive set of methods and algorithms for numerical computations and statistical analysis.
Other
21 stars 2 forks source link

kNearestNeighbors-Need reference #33

Closed tikigonzo closed 2 months ago

tikigonzo commented 4 months ago

Test_kNN-Regression is passing the boot and predictive testing through Debug.WriteLine. Need a reference to the solution for the data to justify the passed test.

tikigonzo commented 4 months ago

var rmse is not tested for the value at all. It calls GoodnessOfFit

HadenSmith commented 4 months ago

The regression is based on a time series data set from: https://otexts.com/fpp3/least-squares.html

There is no right answer. Just outputting and visualizing with Excel. Sandbox test.

Create a new formal unit test and compare against a dataset in R or Python. Do this for k-NN regression and classification.

https://datasciencebook.ca/regression1.html

HadenSmith commented 2 months ago

I updated the test cases to be apples-to-apples with R