-
Notifications
You must be signed in to change notification settings - Fork 136
Add --columns parameter to knnPerfTest.py for custom output selection #466
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
base: main
Are you sure you want to change the base?
Add --columns parameter to knnPerfTest.py for custom output selection #466
Conversation
Thanks for contributing during the CoC hackathon! You have the honors of the first PR contribution :-) |
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.
This looks cool. I am concerned about relying on gradle though -- I think typical usage is to run by python3 src/main/knnPerfTest.py
. if we do that, columns will be None by default I think? Also, it would be nice to have a docstring to that --help
would tell me what the columns are that I can select. I haven't really followed the work to add a gradle runner and / or use argparse, but I think argparse generally provides docs like that
You're absolutely right about typical usage being direct Python execution Mike. The implementation works correctly for both approaches: Direct Python usage (primary): Gradle usage (optional convenience): The core functionality is in the Python script - the gradle changes just pass through the parameter for users who prefer the gradle workflow (I generally use ./gradlew). When Would you prefer I remove the gradle changes and keep only the Python implementation? |
No, I was just confused how this works at first. I must have missed some of the changes that I see now, not sure how ... |
can you show the output of |
also, it looks like there's a failing test - maybe indentation or something? |
Try |
still fails with:
Is there a way to run such tests locally? Maybe |
Fixes #465
Changes
--columns
command-line argument toknnPerfTest.py
runKnnPerfTest
task to support-Pcolumns
property