Skip to content
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

Closed
wants to merge 14 commits into from
Closed

Conversation

LukeMathWalker
Copy link
Member

@LukeMathWalker LukeMathWalker commented Jul 17, 2019

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 and ndarray-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 the examples collection for ndarray-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?)

@LukeMathWalker LukeMathWalker added the examples Either standalone in /examples or embedded in the docs label Jul 17, 2019
@munckymagik
Copy link

Very nice work.

right now I lean towards the idea of hosting it in the examples collection for ndarray-linalg, but I am open to suggestions

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 ndarray-* crates are blended in the solution.

For example, the actix examples repo.

@LukeMathWalker
Copy link
Member Author

LukeMathWalker commented Jul 20, 2019 via email

/// 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>)
Copy link
Member

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>

@termoshtt
Copy link
Member

One option would be to break out a dedicated examples repo.

Good idea :)

@LukeMathWalker
Copy link
Member Author

Closing this PR - I have moved to the example to the new repository ( https://github.com/rust-ndarray/ndarray-examples ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Either standalone in /examples or embedded in the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants