Comments (4)
Its hard to say exactly without seeing your exact code and data formats. However, it seems like the dimensionality of your label matrix (Y) could be incorrect. Check the shape of Y and try permuting it so that it matches that of the final output layer.
from cortexsys.
Thanks for your help, it solves the problem.
from cortexsys.
@joncox123 by the way, where can I find '~/mnist_full.mat' in order to run your example?
from cortexsys.
@joncox123 , if I want to design a network only has one hidden layer (including one Fully_connected layer + ReLU), and the output layer is only Fully_connected layer, is the following design right??
layers.af{1} = [];
layers.sz{1} = [input_size 1 1];
layers.typ{1} = defs.TYPES.INPUT; (input layer)
layers.af{end+1} = ReLU(defs, defs.COSTS.SQUARED_ERROR);
layers.sz{end+1} = [input_size 1 1];
layers.typ{end+1} = defs.TYPES.FULLY_CONNECTED; (hidden layer 1)
layers.af{end+1} = ReLU(defs, defs.COSTS.SQUARED_ERROR); (**for this line, if I use [], there will be error??** )
layers.sz{end+1} = [output_size 1 1];
layers.typ{end+1} = defs.TYPES.FULLY_CONNECTED; (**output layer, how to set it only has fully connected layer??**)
X = varObj(X,defs, defs.TYPES.INPUT);
Y = varObj(Y,defs, defs.TYPES.OUTPUT);
Thanks.
from cortexsys.
Related Issues (18)
- Learning Rate for Gradientdescent HOT 1
- Slow LSTM testing
- Stacking of layers
- Problem with convolutional layers when using 1-dimensional data
- MMX Compile Error - MinGW-w64 v. 1.8 - MATLAB 2017a HOT 1
- Cortexsys-master/octave_wrappers/gather.m seems broken and incomplete HOT 1
- where is mnist_full.mat?
- Empty function: gather.m
- where is mnist_full.mat?
- Update a trained auto-encoder model with new data HOT 1
- Supporting matfile function for very big data
- LSTM different input and output lengths HOT 4
- Providing cross-validation sets for LSTM HOT 4
- Error while training LSTM HOT 2
- Disable gpu support ? HOT 2
- Input Of LSTM networks? HOT 1
- LSTM Querrry....?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cortexsys.