-
Notifications
You must be signed in to change notification settings - Fork 152
Conversation
This looks like it adds a lot of really nice changes! Thank you! I need to properly review so these comments may not be valid, but there are a couple caveats with From memory And I'll review properly tomorrow morning but I hope the above doesn't invalidate anything you've done! |
For the I didn't notice about the I couldn't find a If needed I think we could as a start create an Trait that adds it to To conclude I think having some benchmarks would probably help taking a decision ... |
That zip change is awesome! I believe I remember reading the There is an open issue on rulinalg to add And yes I agree - benchmarks would help a great deal. Sadly I have no benchmarks for rusty-machine yet - only for rulinalg. With all that said, I still haven't reviewed this PR. I'll do so soon. Thanks again! |
1) * | ||
inputs.cols()], | ||
inputs); | ||
let sub_neighbours = self.region_query(inputs.select_rows(&[*data_point_idx]).data(), |
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.
I'm inclined to keep this as is until AtheMathmo/rulinalg#7 has been tackled. I'll add a comment on that ticket to note that this piece of code should be revisited once that feature lands.
Happy to hear your thoughts on it.
Having thought a little more about the Even if it is less efficient - it will be minimally so. And it will be easier to track these down (in addition to some other existing cases I imagine) when the If you could just check out the comment on the SVM inner loop multiplication I'll be happy to merge after. |
Made a PR on rulinalg for I'll update this PR if it gets merged. |
I added a few dictator-esque remarks. Nothing too heavy just personal taste and tests. The code itself looks good and will make this PR even more valuable. Thanks for all your help! |
I think you're right! Always better to follow the same coding style throughout the whole crate, it helps readability. |
I actually think we should merge this PR as-is ... and open another issue to replace I've done a quick grep, and it looks like it is used widely enough to have its own PR. |
Yep, I agree with you too! Will merge this in the next hour or so. Thanks. |
Partly closes #93
I greped
data()
to search for relevant lines.Replace with
iter_rows
andselect_rows
whenever I could.Also sometimes use
zip
iterator instead ofenumerate
. Hopefully it'll lead to less bound checks.