Scikit-learn SGD vs RiverML #1194
-
Can one replicate RiverML SGD online learning using scikit-learn SGD If so, how would one approach to formulating, to replicate similar online learning concept of RiverlML? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there @numersoz. Yes, it's definitely possible to get the exact same results with scikit-learn and River. In fact, there are several unit tests which ensure this. Check them out here. We test linear regression, logistic regression, perceptron, L1 regu, mini-batching, etc. One downside of scikit-learn's implementation is that the number of features is static. You can't add or remove features between mini-batches. But maybe that's a problem for you. |
Beta Was this translation helpful? Give feedback.
Hey there @numersoz. Yes, it's definitely possible to get the exact same results with scikit-learn and River. In fact, there are several unit tests which ensure this. Check them out here. We test linear regression, logistic regression, perceptron, L1 regu, mini-batching, etc.
One downside of scikit-learn's implementation is that the number of features is static. You can't add or remove features between mini-batches. But maybe that's a problem for you.