docs(predictV3): 添加predictV3算法优化研究文档和前端功能实现

- 完成Phase 11: predictV3算法优化研究文档,涵盖6个优化方向的技术分析
- 实现置信度评估功能,提供历史命中率、得分分布、多维度一致性置信度指标
- 扩展回测指标体系,新增NDCG@K、MRR、命中率分布等排名质量评估指标
- 优化转移概率算法,引入二阶马尔可夫链和多属性联合转移增强预测准确性
- 设计权重训练机制,支持网格搜索和遗传算法进行数据驱动的参数优化
- 集成组合特征挖掘功能,采用关联规则和序列模式发现号码间潜在关联
- 实现完整的前端交互界面,支持预测结果显示、置信度展示和回测验证功能
- 建立性能优化策略,包括预计算缓存、批量计算和降级策略保障响应速度
This commit is contained in:
2026-05-01 23:17:24 +08:00
parent 02b3ff3a22
commit 8b2590c5b5
26 changed files with 5407 additions and 2 deletions
+163
View File
@@ -0,0 +1,163 @@
{
"version": "1.0.0",
"lastScanned": 1777648534656,
"projectRoot": "D:\\code\\php\\amlhc",
"techStack": {
"languages": [
{
"name": "JavaScript/TypeScript",
"version": null,
"confidence": "high",
"markers": [
"package.json"
]
},
{
"name": "PHP",
"version": null,
"confidence": "high",
"markers": [
"composer.json"
]
}
],
"frameworks": [],
"packageManager": "composer",
"runtime": null
},
"build": {
"buildCommand": "npm run build",
"testCommand": null,
"lintCommand": null,
"devCommand": null,
"scripts": {
"build": "grunt"
}
},
"conventions": {
"namingStyle": null,
"importStyle": null,
"testPattern": null,
"fileOrganization": null
},
"structure": {
"isMonorepo": false,
"workspaces": [],
"mainDirectories": [
"public"
],
"gitBranches": null
},
"customNotes": [],
"directoryMap": {
"addons": {
"path": "addons",
"purpose": null,
"fileCount": 1,
"lastAccessed": 1777648534596,
"keyFiles": []
},
"analysis": {
"path": "analysis",
"purpose": null,
"fileCount": 2,
"lastAccessed": 1777648534608,
"keyFiles": [
"predict_analysis.php",
"predict_analysis.py"
]
},
"application": {
"path": "application",
"purpose": null,
"fileCount": 8,
"lastAccessed": 1777648534609,
"keyFiles": [
"build.php",
"command.php",
"common.php",
"config.php",
"database.php"
]
},
"extend": {
"path": "extend",
"purpose": null,
"fileCount": 1,
"lastAccessed": 1777648534611,
"keyFiles": []
},
"public": {
"path": "public",
"purpose": "Public files",
"fileCount": 5,
"lastAccessed": 1777648534612,
"keyFiles": [
"admin.php",
"index.php",
"robots.txt",
"router.php"
]
},
"runtime": {
"path": "runtime",
"purpose": null,
"fileCount": 1,
"lastAccessed": 1777648534612,
"keyFiles": []
},
"sql": {
"path": "sql",
"purpose": null,
"fileCount": 2,
"lastAccessed": 1777648534612,
"keyFiles": [
"amlhc.sql",
"macaujc_history.sql"
]
},
"thinkphp": {
"path": "thinkphp",
"purpose": null,
"fileCount": 15,
"lastAccessed": 1777648534613,
"keyFiles": [
"base.php",
"codecov.yml",
"composer.json",
"console.php",
"CONTRIBUTING.md"
]
},
"vendor": {
"path": "vendor",
"purpose": "Third-party code",
"fileCount": 1,
"lastAccessed": 1777648534613,
"keyFiles": [
"autoload.php"
]
},
"application\\api": {
"path": "application\\api",
"purpose": "API routes",
"fileCount": 2,
"lastAccessed": 1777648534614,
"keyFiles": [
"common.php",
"config.php"
]
},
"public\\assets": {
"path": "public\\assets",
"purpose": "Static assets",
"fileCount": 1,
"lastAccessed": 1777648534615,
"keyFiles": [
"index.html"
]
}
},
"hotPaths": [],
"userDirectives": []
}
@@ -0,0 +1,8 @@
{
"session_id": "76146475-cfaa-4328-af26-aad39250b506",
"ended_at": "2026-05-01T15:15:29.199Z",
"reason": "prompt_input_exit",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
+1
View File
@@ -0,0 +1 @@
{"session_id":"a1d5e02a-7411-4199-815c-5ae711cf7291","transcript_path":"C:\\Users\\91611\\.claude\\projects\\D--code-php-amlhc\\a1d5e02a-7411-4199-815c-5ae711cf7291.jsonl","cwd":"D:\\code\\php\\amlhc","model":{"id":"qwen3.6-plus[1m]","display_name":"qwen3.6-plus[1m]"},"workspace":{"current_dir":"D:\\code\\php\\amlhc","project_dir":"D:\\code\\php\\amlhc","added_dirs":[]},"version":"2.1.126","output_style":{"name":"default"},"cost":{"total_cost_usd":0,"total_duration_ms":1008,"total_api_duration_ms":0,"total_lines_added":0,"total_lines_removed":0},"context_window":{"total_input_tokens":0,"total_output_tokens":0,"context_window_size":1000000,"current_usage":null,"used_percentage":null,"remaining_percentage":null},"exceeds_200k_tokens":false,"fast_mode":false,"effort":{"level":"high"},"thinking":{"enabled":true}}
@@ -0,0 +1,6 @@
{
"timestamp": "2026-05-01T15:08:59.373Z",
"backgroundTasks": [],
"sessionStartTimestamp": "2026-05-01T15:05:35.977Z",
"sessionId": "76146475-cfaa-4328-af26-aad39250b506"
}
@@ -0,0 +1,6 @@
{
"session_id": "a1d5e02a-7411-4199-815c-5ae711cf7291",
"started_at": "2026-05-01T15:15:34.560Z",
"cwd": "D:\\code\\php\\amlhc",
"pid": 23096
}