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
https://gluon.mxnet.io/chapter02_supervised-learning/perceptron.html
Input: X, Y = getfake(50, 2, 0.3)
X, Y = getfake(50, 2, 0.3)
tmp [[ 0.41137779 1.77428079]] <NDArray 1x2 @cpu(0)>
X[i,:] [ 0. 0.] <NDArray 2 @cpu(0)>
X <NDArray 50x2 @cpu(0)>
Y [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] <NDArray 50 @cpu(0)>
Output: ValueError: operands could not be broadcast together with remapped shapes[original->remapped]: (1L, 2L) and requested shape (50L,)
ValueError: operands could not be broadcast together with remapped shapes[original->remapped]: (1L, 2L) and requested shape (50L,)
The text was updated successfully, but these errors were encountered:
I think the tmp should be modified as tmp = nd.random_normal(shape=dimensions).
tmp
tmp = nd.random_normal(shape=dimensions)
Sorry, something went wrong.
No branches or pull requests
Input:
X, Y = getfake(50, 2, 0.3)
tmp [[ 0.41137779 1.77428079]] <NDArray 1x2 @cpu(0)>
X[i,:] [ 0. 0.] <NDArray 2 @cpu(0)>
X <NDArray 50x2 @cpu(0)>
Y [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] <NDArray 50 @cpu(0)>
Output:
ValueError: operands could not be broadcast together with remapped shapes[original->remapped]: (1L, 2L) and requested shape (50L,)
The text was updated successfully, but these errors were encountered: