Example repository #674
Copy link
Copy link
Open
Labels
docsIssues relating primarily to documentation or API visibility.Issues relating primarily to documentation or API visibility.
Description
In rust-ndarray/ndarray-linalg#166 @munckymagik advanced the idea of adding a new repository to rust-ndarray to host more complex standalone examples.
It could be a good place to showcase what is possible using the different pieces of the ecosystem, in a sort of cookbook format.
I love the idea and I think it could provide a lot of value. What are your thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsIssues relating primarily to documentation or API visibility.Issues relating primarily to documentation or API visibility.
Activity
max-sixty commentedon Jul 23, 2019
Yes agree! Personally I'd also find a side-by-side example of numpy / scipy v helpful, furthering the existing docs there. Even without that, I think it's a great idea.
jturner314 commentedon Jul 25, 2019
That sounds like a good idea to me. We do have a few examples in modules linked at the bottom of
ndarray_for_numpy_users, but they're pretty minimal and focus more onndarraythan the ecosystem as a whole. We should also review the files in theexamplesdirectory to see if we need to update/remove any of them.LukeMathWalker commentedon Jul 26, 2019
LukeMathWalker commentedon Aug 4, 2019
First sketch is out: https://github.com/rust-ndarray/ndarray-examples
I still need to add a CI pipeline (mirroring @termoshtt's work on
ndarray-linalg) - suggestions are welcome 👍P.S. The linear regression example is currently using a hard-coded
openblasfeature forndarray-linalg(even though the README says it's selectable). Still some work to do there to figure out how to actually make it selectable when running the example 👀LukeMathWalker commentedon Aug 5, 2019
Backend selection is now working as expected. Unfortunately, it seems we can't provide a top-level backend selection mechanism due to rust-lang/cargo#5015 - it has to be done in the
Cargo.tomlof each example. (Tracking issue for the feature request oncargo: rust-lang/cargo#4753)LukeMathWalker commentedon Sep 21, 2019
I have another PR up, with a simple implementation of K-Means clustering: rust-ndarray/ndarray-examples#2
Looking for 👀