How to design a single layer perceptron with MATLAB built-in functions/nets/Apps?
7 views (last 30 days)
Suppose I have 1000 images of 512 pixels each. I want to design a single layer perceptron and to track the accuracy of the validation/test and the train datasets, but I don't know where to start? Is there a MATLAB built-in function where I could do it? Or how do I write it in code?
% % Data Splitting
[setTrain, setTest] = partition(Images, [0.8, 0.2], 'randomized');
%% Defining the perceptron
error_train = 1 ;
error_test = 1;