You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
maxitershere should be maxiter, I think. But even if I fix that, I cannot run the XOR example with gradient descent.
I get
`setindex!` has no method matching setindex!(::ContiguousView{Float64,1,Array{Float64,1}}, ::Array{Float64,2}, ::UnitRange{Int64})
You might have used a 2d row vector where a 1d column vector was required.
Note the difference between 1d column vector [1,2,3] and 2d row vector [1 2 3].
You can convert to a column vector with the vec() function.
while loading In[8], in expression starting on line 21
in backprop! at /home/sam/.julia/v0.3/NeuralNets/src/backprop.jl:39
in backprop! at /home/sam/.julia/v0.3/NeuralNets/src/backprop.jl:35 (repeats 2 times)
in g! at /home/sam/.julia/v0.3/NeuralNets/src/train.jl:93
in fg! at /home/sam/.julia/v0.3/Optim/src/types.jl:150
in gradient_descent at /home/sam/.julia/v0.3/Optim/src/gradient_descent.jl:56
in optimize at /home/sam/.julia/v0.3/Optim/src/optimize.jl:328
in train at /home/sam/.julia/v0.3/NeuralNets/src/train.jl:97
The text was updated successfully, but these errors were encountered:
maxiters
here should bemaxiter
, I think. But even if I fix that, I cannot run the XOR example with gradient descent.I get
The text was updated successfully, but these errors were encountered: