1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 06:46:56 +08:00

remove unneeded code from workflow_by_code.ipynb && fix analysis_model_performance (#740)

This commit is contained in:
Pengrong Zhu
2021-12-11 13:23:00 +08:00
committed by GitHub
parent 7cb1f7cee0
commit c10c349b20
2 changed files with 1 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ def _group_return(pred_label: pd.DataFrame = None, reverse: bool = False, N: int
).figure
t_df = t_df.loc[:, ["long-short", "long-average"]]
_bin_size = ((t_df.max() - t_df.min()) / 20).min()
_bin_size = float(((t_df.max() - t_df.min()) / 20).min())
group_hist_figure = SubplotsGraph(
t_df,
kind_map=dict(kind="DistplotGraph", kwargs=dict(bin_size=_bin_size)),