Thanks for replying, I have my own data set. Therefore, I applied this code to it and the result was an excellent, much better than Conv. Neural Networks. I want to go through the implementation again because the result is something incredible and I want to make sure I have implemented in the correct way. Thanks again for sharing the code.
I run MachineLearning.m on sample dataset bank-full.csv and got this error:
Default value is not a member of type "nntype.performance_fcn".
Error using nnetParamInfo (line 28)
Too many input arguments.
Error in patternnet>get_info (line 85)
info = nnfcnNetwork(mfilename,'Pattern Recognition Neural Network',fcnversion, ...
Error in patternnet (line 41)
if isempty(INFO), INFO = get_info; end
Error in NNfun (line 18)
net = patternnet(hiddenLayerSize);
Error in MachineLearning (line 191)
[~, net] = NNfun(XtrainNN,YtrainNN);