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
代码:D = np.multiply(D, np.exp(-1 * alpha * np.multiply(trainLabelArr, Gx))) / sum(D)
书里公式中分母应该是Zm,但是代码里是 sum(D),不是很清楚。
The text was updated successfully, but these errors were encountered:
根据Zm的公式,Zm的计算方法即为sum(D)
#D是一个行向量,由wmi元素组成,然后D中元素求和为Zm,Zm规范化因子使得D是一个分布 D = np.multiply(D, np.exp(-1 * alpha * np.multiply(trainLabelArr, Gx))) Zm = sum(D) D = D / Zm
Sorry, something went wrong.
No branches or pull requests
代码:D = np.multiply(D, np.exp(-1 * alpha * np.multiply(trainLabelArr, Gx))) / sum(D)
书里公式中分母应该是Zm,但是代码里是 sum(D),不是很清楚。
The text was updated successfully, but these errors were encountered: