Deep learning toolbox

I am getting the following error when using the deeplearntoolbox. specifically, When executing the file test_example_DBN.m

??? Error: File: nneval.m Line: 18 Column: 17
Unbalanced or unexpected parenthesis or bracket.

Error in ==> nntrain at 66
        loss = nneval(nn, loss, train_x, train_y);

Error in ==> test_example_DBN at 38
nn = nntrain(nn, train_x, train_y, opts);

Answers


The number of left parenthesis is not equal to the number of right parenthesis in your nneval.m Line: 18.. You may look into the code by clicking this error message, and count the number of left parentheses and right parentheses on the line of code.

EDIT

I checked out the nneval.m file from github. What's your Matlab version? Try to change line 18 to :

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

If your input has 6 argument, change line 22 as well:

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

The error message should be eliminated.


Need Your Help

Removing duplicates based on their occurrence

excel vba duplicates countif find-occurrences

I would like to check a certain column (W) for duplicates (number of occurrences is stored in another column (AZ)) and than delete all row this way:

Uploading files in Google App Engine. How to get the file to the upload Handler Class

python google-app-engine file-upload

I have a form in google app engine where I want to upload an image and all my text at the same time. Do I have to seperate this into two seperate pages and actions?