train small neural network with two layers
michael scheinfeild (2021). Deepnet (https://www.mathworks.com/matlabcentral/fileexchange/67406-deepnet), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Test :
x= [ 0 0 1
0 1 1
1 0 1
1 1 1];
y=[0 1 1 0]';
mydeep=Deepnet(x,y);
%% run
for i =1:2500
mydeep=mydeep.feedforward();
mydeep=mydeep.backprop();
end
mydeep.output
based on the blog
https://towardsdatascience.com/how-to-build-your-own-neural-network-from-scratch-in-python-68998a08e4f6