Make the filter_outlier method public#382
Make the filter_outlier method public#382L-M-Sherlock merged 1 commit intoopen-spaced-repetition:mainfrom
filter_outlier method public#382Conversation
Summary of ChangesHello @ishiko732, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request exposes the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly makes the filter_outlier function public, which is necessary for its use in tests as described. The changes in src/dataset.rs and src/lib.rs are appropriate for this purpose.
While reviewing, I noticed a potential bug in the prepare_training_data function within src/dataset.rs (line 264), which is outside the scope of this PR's changes. It appears to pass the entire items vector to filter_outlier instead of the trainset derived from partitioning. This could lead to incorrect outlier filtering. This is what it looks like:
(dataset_for_initialization, trainset) = filter_outlier(dataset_for_initialization, items);It should probably be:
(dataset_for_initialization, trainset) = filter_outlier(dataset_for_initialization, trainset);This is demonstrated by the correct usage in test_filter_outlier. This could be addressed in a follow-up pull request.
Overall, the changes in this PR are approved.
The tests for
evaluateandevaluate_with_time_series_splitsrequirefilter_outlierto be applied to the training set, but this method is currently internal and not publicly accessible.