cb69f51776fe6c75b4349b2ee2f8c0762a5751bf,numerox/report.py,Report,performance_df,#Report#Any#Any#Any#,69
Before Change
sharpe = (np.log(2) - pivot).mean(axis=0) / pivot.std(axis=0)
// mean metrics across eras
metrics = metrics.groupby("model").mean()
// insert consistency and sharpe
metrics.insert(metrics.shape[1], "sharpe", sharpe)
metrics.insert(metrics.shape[1], "consis", consistency)
return metrics, info
After Change
print(df.to_string(index=True))
def performance_df(self, data, era_as_str=True, region_as_str=True):
cols = ["logloss", "auc", "acc", "ystd", "sharpe", "consis"]
metrics, info = metrics_per_model(data,
self,
columns=cols,
era_as_str=era_as_str,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: kwgoodman/numerox
Commit Name: cb69f51776fe6c75b4349b2ee2f8c0762a5751bf
Time: 2017-12-19
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name: Report
Method Name: performance_df
Project Name: has2k1/plotnine
Commit Name: 95c2a29c7f1992f78d11acfe9cdfee83a7516af2
Time: 2016-03-16
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_polygon.py
Class Name: geom_polygon
Method Name: draw_group
Project Name: has2k1/plotnine
Commit Name: 190065554d8905884dff948e4bb655d431d7eec3
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat.py
Class Name: stat
Method Name: _calculate_groups