-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linear regression example #166
Conversation
Very nice work.
One option would be to break out a dedicated examples repo. Then we could focus on organising by use-case and not need to worry about which For example, the actix examples repo. |
That is indeed a very good idea.
It could be a proto-cookbook.
|
/// to match the training data distribution. | ||
/// | ||
/// `self` is modified in place, nothing is returned. | ||
pub fn fit<A, B>(&mut self, X: ArrayBase<A, Ix2>, y: ArrayBase<B, Ix1>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x
and y
should be refence x: &ArrayBase<A, Ix2>
Good idea :) |
Closing this PR - I have moved to the example to the new repository ( https://github.com/rust-ndarray/ndarray-examples ). |
I have started to port some very simple Python code to Rust to explore the ergonomics of what is currently available for ML and better understand the design challenges (see rust-ml/classical-ml-discussion#2 (comment)).
This is quite an easy example that brings together
ndarray-linalg
,ndarray
andndarray-stats
(which is what we were looking for in rust-ndarray/ndarray-stats#47 ) - right now I lean towards the idea of hosting it in theexamples
collection forndarray-linalg
, but I am open to suggestions.What do you think? @jturner314 @termoshtt @munckymagik
(Also, do you think it is actually a useful example to have in any of those crates?)