Skip to content

feat: modernize adaboost chapter - #17

Merged
wzyonggege merged 1 commit into
maintenance/2026-revival-logistic-regressionfrom
maintenance/2026-revival-adaboost
Aug 12, 2026
Merged

wzyonggege merged 1 commit into
maintenance/2026-revival-logistic-regressionfrom
maintenance/2026-revival-adaboost

Conversation

@wzyonggege

Copy link
Copy Markdown
Owner

No description provided.

问题描述:AdaBoost notebook 的手写阈值搜索在完美弱分类器、常量特征或粗步长时分别出现除零/未定义变量/找不到切分;100 次实验还把总和错误标作平均百分比。\n\n复现路径:执行原 AdaBoost 类的 fit;完美数据触发 ZeroDivisionError,常量或窄范围特征触发 UnboundLocalError。\n\n修复思路:保留阈值弱分类器、alpha、权重归一化和组合预测的教学算法,提取共享实现;加入有限 alpha、常量 stump、中点阈值与原网格候选,并修正可重复实验统计。\n\n验证:24 个 pytest;9 个 notebook 校验;9 个 smoke notebook;AdaBoost notebook 执行约 9.5 秒且平均准确率 95.152%;uv lock --check;git diff --check。
@wzyonggege
wzyonggege marked this pull request as ready for review August 12, 2026 06:06
@wzyonggege
wzyonggege merged commit 2f608f1 into maintenance/2026-revival-logistic-regression Aug 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant