Initial commit: BTC 1h prediction model (53.10% accuracy)
🎯 项目成果: - 准确率: 53.10% (2026年测试集) - 任务类型: 二分类 (预测涨/跌) - 特征: OHLCV + RSI + MACD (9个特征) - 训练数据: 2020-2025年BTC小时数据 (52,351序列) - 测试数据: 2026年1-29日 (484序列) 📊 性能指标: - 精确率: 51.79% - 召回率: 49.36% - F1分数: 0.5054 - 预测分布: 非常平衡 (偏差仅-11个) 🔬 实验历史: - 尝试了5种方案 (回归/分类, 不同数据划分) - 分类任务优于回归任务 (53.10% vs 49.5%) - 全量训练避免了过拟合问题 📦 主要模型文件: - models/checkpoints/dlinear_classification_2026/ - best_model.pt (最佳模型) - preprocessor.pkl (预处理器) - test_2026_results.json (测试结果) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
commit
9bbdc8d42b
82 files changed
+8742
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"mse": 5.495949517353438e-05,
|
||||
"rmse": 0.007413467149285439,
|
||||
"mae": 0.004826944321393967,
|
||||
"mape": 930.6216430664062,
|
||||
"directional_accuracy": 0.4907678594167834,
|
||||
"backtest_total_return": -0.9745769500732422,
|
||||
"backtest_final_capital": 254.23023986816406,
|
||||
"backtest_sharpe_ratio": -0.26884937315369317,
|
||||
"backtest_max_drawdown": -0.978744387626648,
|
||||
"backtest_win_rate": 0.47166687889978354,
|
||||
"backtest_num_trades": 3251
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"price_mae": 4283.3626861511675,
|
||||
"price_rmse": 4735.107859758518,
|
||||
"price_mape": 3.928560493143656,
|
||||
"direction_accuracy": 0.49637127578304047,
|
||||
"true_positives": 258,
|
||||
"true_negatives": 2341,
|
||||
"false_positives": 255,
|
||||
"false_negatives": 2382
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"accuracy": 0.5,
|
||||
"precision": 0.0,
|
||||
"recall": 0.0,
|
||||
"f1": 0.0,
|
||||
"true_negatives": 642,
|
||||
"false_positives": 0,
|
||||
"false_negatives": 642,
|
||||
"true_positives": 0,
|
||||
"specificity": 1.0,
|
||||
"mean_confidence": 0.0068817585706710815,
|
||||
"backtest_total_return": -1.0,
|
||||
"backtest_final_capital": 0.0,
|
||||
"backtest_sharpe_ratio": -9.643650760992955,
|
||||
"backtest_max_drawdown": NaN,
|
||||
"backtest_win_rate": 0.0,
|
||||
"backtest_num_trades": 0
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"accuracy": 0.5070093457943925,
|
||||
"precision": 0.5053254437869823,
|
||||
"recall": 0.6651090342679128,
|
||||
"f1": 0.574310692669805,
|
||||
"true_negatives": 224,
|
||||
"false_positives": 418,
|
||||
"false_negatives": 215,
|
||||
"true_positives": 427,
|
||||
"specificity": 0.34890965732087226,
|
||||
"mean_confidence": 0.5017203688621521,
|
||||
"backtest_total_return": -1.0,
|
||||
"backtest_final_capital": -0.0,
|
||||
"backtest_sharpe_ratio": 2.314261942010565,
|
||||
"backtest_max_drawdown": -1.0,
|
||||
"backtest_win_rate": 0.3325545171339564,
|
||||
"backtest_num_trades": 136
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"accuracy": 0.49764421240290335,
|
||||
"precision": 0.502192108409725,
|
||||
"recall": 0.3185035389282103,
|
||||
"f1": 0.38979118329466356,
|
||||
"true_negatives": 2648,
|
||||
"false_positives": 1249,
|
||||
"false_negatives": 2696,
|
||||
"true_positives": 1260,
|
||||
"specificity": 0.6794970490120605,
|
||||
"mean_confidence": 0.49758902192115784,
|
||||
"backtest_total_return": -1.0,
|
||||
"backtest_final_capital": -0.0,
|
||||
"backtest_sharpe_ratio": -2.5728736046923655,
|
||||
"backtest_max_drawdown": NaN,
|
||||
"backtest_win_rate": 0.16044823634279892,
|
||||
"backtest_num_trades": 782
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"mse": 2.142045195796527e-05,
|
||||
"rmse": 0.004628223412710893,
|
||||
"mae": 0.0030602782499045134,
|
||||
"mape": 131.8273162841797,
|
||||
"directional_accuracy": 0.49732620320855614,
|
||||
"backtest_total_return": 0.2429506778717041,
|
||||
"backtest_final_capital": 12429.5068359375,
|
||||
"backtest_sharpe_ratio": 0.19540257211386183,
|
||||
"backtest_max_drawdown": -0.13858233392238617,
|
||||
"backtest_win_rate": 0.49732620320855614,
|
||||
"backtest_num_trades": 0
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"mse": 2.382730417593848e-05,
|
||||
"rmse": 0.004881321970116137,
|
||||
"mae": 0.0033776722848415375,
|
||||
"mape": 780.3690185546875,
|
||||
"directional_accuracy": 0.5066853431809499,
|
||||
"backtest_total_return": -0.1671363264322281,
|
||||
"backtest_final_capital": 8328.63671875,
|
||||
"backtest_sharpe_ratio": -0.0266775386419239,
|
||||
"backtest_max_drawdown": -0.40377509593963623,
|
||||
"backtest_win_rate": 0.48974914045587675,
|
||||
"backtest_num_trades": 1061
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"accuracy": 0.53099173553719,
|
||||
"precision": 0.5178571428571429,
|
||||
"recall": 0.49361702127659574,
|
||||
"f1_score": 0.505446623093682,
|
||||
"true_positives": 116,
|
||||
"true_negatives": 141,
|
||||
"false_positives": 108,
|
||||
"false_negatives": 119,
|
||||
"n_samples": 484
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"price_mae": 528.017854278076,
|
||||
"price_rmse": 736.6082253699151,
|
||||
"price_mape": 0.523728600511905,
|
||||
"direction_accuracy": 0.5022918258212375
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"mse": 2.1433252186398022e-05,
|
||||
"rmse": 0.004629606050885758,
|
||||
"mae": 0.00306295626796782,
|
||||
"mape": 180.17770385742188,
|
||||
"directional_accuracy": 0.4992360580595875,
|
||||
"backtest_total_return": 0.226644828915596,
|
||||
"backtest_final_capital": 12266.4482421875,
|
||||
"backtest_sharpe_ratio": 0.18486101832170032,
|
||||
"backtest_max_drawdown": -0.13858233392238617,
|
||||
"backtest_win_rate": 0.4977081741787624,
|
||||
"backtest_num_trades": 38
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user