matlab - Deep learning toolbox -


i getting following error when using deeplearntoolbox. specifically, when executing file test_example_dbn.m

??? error: file: nneval.m line: 18 column: 17 unbalanced or unexpected parenthesis or bracket.  error in ==> nntrain @ 66         loss = nneval(nn, loss, train_x, train_y);  error in ==> test_example_dbn @ 38 nn = nntrain(nn, train_x, train_y, opts); 

the number of left parenthesis not equal number of right parenthesis in nneval.m line: 18.. may code clicking error message, , count number of left parentheses , right parentheses on line of code.

edit

i checked out nneval.m file github. what's matlab version? try change line 18 :

[er_train, tmp]               = nntest(nn, train_x, train_y); 

if input has 6 argument, change line 22 well:

[er_val, tmp2]             = nntest(nn, val_x, val_y); 

the error message should eliminated.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -