Skip to content
New issue

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

issues in the nutshell example #41

Open
CielAl opened this issue Jun 24, 2018 · 1 comment
Open

issues in the nutshell example #41

CielAl opened this issue Jun 24, 2018 · 1 comment

Comments

@CielAl
Copy link

CielAl commented Jun 24, 2018

Hi,

I am new to autonn and looking into the demo, and there might be a problem in the example.
By modifying the definition of prediction to :
prediction = w * x' + b ;
instead of

prediction = w * x + b ;

( and change the def of w to w = Param('value', randn(100,1)) ;)

I will be able to run the demo (but then this w*x' produces a square matrix and is nonsense), otherwise, the exception in sum_der (line 229) always occurs.

For the original definition of x and w, the x_sz of line 220 in autonn_der.m is vector [1,1] with only two input arguments, and thus the line 224 would be
dim = find([1,1, 2] ~= 1, 1) ; // which returns 3

Then in line 229,
x_sz(dim) becomes x_sz(3) and it exceeds the max dimension of x_sz.

  • The current version of matconvnet is 1.0 -beta 24, while the version of matlab is R2016b.
@CielAl CielAl changed the title net shell example nut shell example Jun 24, 2018
@CielAl CielAl changed the title nut shell example Possible typo in the nutshell example Jun 24, 2018
@CielAl CielAl changed the title Possible typo in the nutshell example Possible issue in the nutshell example Jun 24, 2018
@CielAl CielAl changed the title Possible issue in the nutshell example issues in the nutshell example Jun 24, 2018
@CielAl
Copy link
Author

CielAl commented Jun 24, 2018

PS, for the case:
'{x, rand(100, 2), y, [0.5;0.5]}', it will work.

I assume that is when there are two points in the input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant