metamorph.ml icon indicating copy to clipboard operation
metamorph.ml copied to clipboard

add threshold and possibly has-intercept? options to fastmath/OLS model

Open behrica opened this issue 1 year ago • 4 comments

behrica avatar May 12 '24 11:05 behrica

has-intercept not yet implemented in fastmath

behrica avatar May 12 '24 11:05 behrica

@daslu Do you have used fastmath/OLS and looked at this question of "has-intercept" ? Not sure, if there is something to change here

behrica avatar Jan 27 '25 14:01 behrica

@behrica Fastmath's lm model has an :intercept? option: https://github.com/generateme/fastmath/blob/f5ffc6d/src/fastmath/ml/regression.clj#L291

  • :intercept? - should intercept term be included, default: true

Yes, it is useful. We use it in our tutorials: https://scicloj.github.io/noj/noj_book.linear_regression_intro.html#prediction-by-day-of-week https://scicloj.github.io/tablemath/tablemath_book.reference.html#examples-5

Or maybe I did not understand the question?


What do you mean by threshold?

daslu avatar Jan 27 '25 15:01 daslu

I wonder if I still need to implement something. Not sure why I created this issue.

behrica avatar Jan 27 '25 22:01 behrica