Skip to content

Error in CNN #178

@flankercommando

Description

@flankercommando

I‘ve met an error in running 'test_example_CNN' with my own trainning data
the code is as below:
%%
error in using cnnsetup (line 30)
Layer 3 size must be integer. Actual: -1 4623.5

error with test_example_CNN (line 36)
cnn = cnnsetup(cnn, train_x, train_y);
%%

The structure of original data is:
train_x: 282860000 double
train_y: 1060000 double
test_x: 28
2810000 double
test_y: 10
10000 double

While my own data structure is:
train_x: 29251 double
train_y: 1
9251 double
test_x: 21631 double
test_y: 1
1631 double

So what should I do now? Should I modify my data or the code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions