-
Notifications
You must be signed in to change notification settings - Fork 76
Add combined results and plot generation #219
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?
Changes from all commits
49bd845
356dc0a
24ab534
e842a63
98fa891
1886459
59276a2
2f671bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,10 @@ Raw results are converted into a pandas dataframe and the final report is made b | |
| | `--report-file` | str | report.xlsx | | Report file path. | | ||
| | `--report-type` | str | separate-tables | ('separate-tables',) | Report type ("separate-tables" is the only supported now). | | ||
| | `--compatibility-mode` | | False | | [EXPERIMENTAL] Compatibility mode drops and modifies results to make them comparable (for example, sklearn and cuML parameters). | | ||
| | `--performance-stability-metrics`</br>`-psm` | | False | | Adds performance stability metrics (`1st run time[ms]`, `1st-mean run ratio`, `median time[ms]`, `time CV`) to the report. | | ||
| | `--combined-results` | | False | | [EXPERIMENTAL] Creates `All cases` and `Summary (for plots)` sheets combining time and speedup of all algorithms with per-dtype/total GEOMEAN rows. This option can only be used for comparing scikit-learn-intelex with stock scikit-learn (use with `--compatibility-mode`). | | ||
| | `--draw-plots` | | False | | [EXPERIMENTAL] Draws Training/Inference speedup bar charts from the combined results (requires `--combined-results`). | | ||
| | `--plot-output` | str | None | | [EXPERIMENTAL] Output file path for plots (e.g. `plots.png`); if unset, plots are shown interactively. | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this require passing
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well technically no, you can provide it without draw plots it would be just ignored
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add that kind of detail in these docs. |
||
| | `--drop-columns`</br>`--drop-cols` | str | [] | | Columns to drop from report. | | ||
| | `--diff-columns`</br>`--diff-cols` | str | ['environment_name', 'library', 'format', 'device'] | | Columns to show difference between. | | ||
| | `--split-columns` | str | ['estimator', 'method', 'function'] | | Splitting columns for subreports/sheets. | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,12 @@ def transform_results_to_compatible(results: pd.DataFrame): | |
| "min_bin_size", | ||
| ], | ||
| ) | ||
| if ( | ||
| "n_jobs" in results.columns | ||
| and results["n_jobs"].isna().any() | ||
| and results["n_jobs"].notna().any() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it make more sense to drop
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we compare sklearn algorithm with sklearnex counterpart, n_jobs parameter might only be present in sklearnex but not in sklearn. In this case the measurements will not be compared and report & plots would not be generated. So the idea of this change if both not nans and nans are present we can drop this column so that reports are properly generated. If all values are na there's no need to drop the column
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feature should only be used for comparison of sklearn vs sklearnex btw |
||
| ): | ||
| results.drop(inplace=True, columns=["n_jobs"]) | ||
| if results["environment_name"].unique().size > 1: | ||
| # DBSCAN `eps` parameter drop for different CPUs | ||
| results.drop( | ||
|
|
||
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 option without
--plot-outputdoesn't appear to do anything. It doesn't show anything interactive for me, or at least not when used in an SSH session.