HDDResults#
- class HDDResults(path)[source]#
HDD 结果。
- 属性:
path
HDD 上保存结果的路径。
方法
check_fitted_strategy_exists
(strategy_name, ...)检查拟合策略是否存在。
check_predictions_exist
(strategy_name, ...)检查预测结果是否存在。
load_fitted_strategy
(strategy_name, ...)加载已保存的(拟合)策略。
load_predictions
(cv_fold, train_or_test)加载已保存的预测结果。
save
()将结果对象保存为主文件。
save_fitted_strategy
(strategy, dataset_name, ...)保存拟合策略。
save_predictions
(strategy_name, ...[, ...])保存训练好的估计器的预测结果。
- save_predictions(strategy_name, dataset_name, y_true, y_pred, y_proba, index, cv_fold, train_or_test, fit_estimator_start_time=None, fit_estimator_end_time=None, predict_estimator_start_time=None, predict_estimator_end_time=None)[source]#
保存训练好的估计器的预测结果。
- 参数:
- strategy_namestring
拟合策略的名称
- dataset_name: string
策略拟合所使用的数据集名称
- y_truenumpy array
包含真实标签的数组
- y_prednumpy array
包含预测标签的数组
- y_probanumpy array
与预测值相关的概率数组
- indexnumpy array
y_true 数据点的数据集索引
- fit_estimator_start_timepandas timestamp (default=None)
估计器开始拟合时的时间戳
- fit_estimator_end_timepandas timestamp (default=None)
估计器拟合结束时的时间戳
- predict_estimator_start_timepandas timestamp (default=None)
估计器开始进行预测时的时间戳
- predict_estimator_end_timepandas timestamp (default=None)
估计器完成预测时的时间戳