You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When looking at the summary output from the LearnerRanker() it would be great to have an alternative to the print(ranker.summary_report(5)) which prints the top 5 models for example.
An option to allow further summaries generated by the user could be to output a Pandas DataFrame. This would allow flexibility for subsequent uses, for example, outputting to csv's for reports or creating summary figures of performance. The ability to store a DF would also allow users to combine with similar DFs from future runs if updating models to see the changes, etc.
Describe the solution you'd like
One option could be to add an option to export the ranker.summary_report(5) to a Pandas DataFrame with something like rank_summary = ranker.summary_report(as_dataframe=True). Which I would then expect to produce something along the lines of the following as a Pandas DataFrame.
Rank
Learner
Ranking_score
Mean_score
SD_score
Tuned_parameters
N_folds
Socring_metric
1
LGBMClassifierDF
0.656
0.680
0.0122
classifier__n_estimators=400
10
roc_auc
2
LGBMClassifierDF
0.655
0.677
0.0111
classifier__n_estimators=500
10
roc_auc
3
RandomForestClassifierDF
0.650
0.695
0.0224
classifier__n_estimators=200
10
roc_auc
4
RandomForestClassifierDF
0.647
0.696
0.0244
classifier__n_estimators=300
10
roc_auc
5
RandomForestClassifierDF
0.646
0.697
0.0255
classifier__n_estimators=400
10
roc_auc
Describe alternatives you've considered
Have not considered alternatives.
The text was updated successfully, but these errors were encountered:
We might even choose to ditch the text format for summary reports - they are hard to read anyway given the long lines. And you can always print a data frame to stdout.
Is your feature request related to a problem? Please describe.
When looking at the summary output from the
LearnerRanker()
it would be great to have an alternative to theprint(ranker.summary_report(5))
which prints the top 5 models for example.An option to allow further summaries generated by the user could be to output a Pandas DataFrame. This would allow flexibility for subsequent uses, for example, outputting to csv's for reports or creating summary figures of performance. The ability to store a DF would also allow users to combine with similar DFs from future runs if updating models to see the changes, etc.
Describe the solution you'd like
One option could be to add an option to export the
ranker.summary_report(5)
to a Pandas DataFrame with something likerank_summary = ranker.summary_report(as_dataframe=True)
. Which I would then expect to produce something along the lines of the following as a Pandas DataFrame.Describe alternatives you've considered
Have not considered alternatives.
The text was updated successfully, but these errors were encountered: