RAMResults#

class RAMResults[source]#

内存中的结果。

方法

check_fitted_strategy_exists(strategy, ...)

检查拟合策略是否存在。

check_predictions_exist(strategy, ...)

检查预测结果是否存在。

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_name字符串

拟合策略的名称

dataset_name: 字符串

拟合策略所使用的数据集名称

y_truenumpy 数组

包含真实标签的数组

y_prednumpy 数组

预测标签的数组

y_probanumpy 数组

与预测值相关的概率数组

indexnumpy 数组

y_true 数据点的数据集索引

fit_estimator_start_timepandas 时间戳 (默认=None)

估计器开始拟合时的时间戳

fit_estimator_end_timepandas 时间戳 (默认=None)

估计器结束拟合时的时间戳

predict_estimator_begin_timepandas 时间戳 (默认=None)

估计器开始进行预测时的时间戳

predict_estimator_end_timepandas 时间戳 (默认=None)

估计器完成进行预测时的时间戳

load_predictions(cv_fold, train_or_test)[source]#

迭代加载所有数据集和策略的预测结果。

check_predictions_exist(strategy, dataset_name, cv_fold, train_or_test)[source]#

检查预测结果是否存在。

save_fitted_strategy(strategy, dataset_name, cv_fold)[source]#

保存拟合策略。

load_fitted_strategy(strategy_name, dataset_name, cv_fold)[source]#

加载拟合策略。

check_fitted_strategy_exists(strategy, dataset_name, cv_fold)[source]#

检查拟合策略是否存在。

save()[source]#

保存自身。

为了接口一致性而存在的方法。