Doubao dogfood - #2
Open
helloaaaaa wants to merge 1 commit into
Open
Conversation
helloaaaaa
force-pushed
the
doubao-dogfood
branch
from
March 30, 2026 09:58
8d2e324 to
7924571
Compare
Owner
Author
|
测试代码补全任务已完成!以下是测试结果摘要: 测试结果总结测试统计
各模块覆盖率模块 覆盖率 LinearRegression 65% LogisticRegression 56% NeuralNetwork 70% SVM 33% K-Means 38% PCA 33% AnomalyDetection 61% 创建的测试文件
运行测试命令注意事项
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
测试结果
1. 线性回归 (Linear Regression)
✅ 测试通过
2. 逻辑回归 (Logistic Regression)
✅ 测试通过
3. 神经网络 (Neural Network)
✅ 梯度检查通过
4. K-Means聚类
✅ 路径问题修复
5. SVM支持向量机
✅ 路径问题修复
6. 异常检测 (Anomaly Detection)
✅ 路径问题修复
7. PCA主成分分析
✅ 导入与路径问题修复
修复说明
路径修复方案 :在所有脚本开头添加:
数据文件加载时使用 os.path.join(current_dir, "filename") 构建绝对路径
1D转2D修复 :将 np.array([1650,3]) 改为 np.array([[1650,3]])
神经网络代价函数修复 :确保返回标量值而不是数组
PCA导入修复 :将 from sklearn.decomposition import pca 改为 from sklearn.decomposition import PCA
所有模块现在可以从项目根目录正常运行了!