feat: modernize adaboost chapter - #17
Merged
wzyonggege merged 1 commit intoAug 12, 2026
Merged
wzyonggege merged 1 commit into
wzyonggege merged 1 commit into
Conversation
问题描述: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
marked this pull request as ready for review
August 12, 2026 06:06
wzyonggege
merged commit Aug 12, 2026
2f608f1
into
maintenance/2026-revival-logistic-regression
8 checks passed
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.
No description provided.