We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不知道是否为版本问题,7.3中的39、40行代码需要改成下面这样才能运行:
# 计算正样本中,该属性每个取值的数量,并且加1,即拉普拉斯平滑 xi1_value_count = pd.value_counts(xi1).reindex(unique_value, fill_value=0) + 1 # 计算反样本中,该属性每个取值的数量,并且加1,即拉普拉斯平滑 xi0_value_count = pd.value_counts(xi0).reindex(unique_value, fill_value=0) + 1
附上我的pandas版本:2.0.3
pandas
2.0.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
不知道是否为版本问题,7.3中的39、40行代码需要改成下面这样才能运行:
附上我的
pandas
版本:2.0.3
The text was updated successfully, but these errors were encountered: