Answer the question
In order to leave comments, you need to log in
How to reduce neural network training error?
Good day. I am writing a bachelor's thesis on recognition using neural networks. I am using neural network toolbox. The program should recognize squares and circles Here is the code:
close all, clear all, clc;
warning off;
% Загрузка данных
load images
[R,Q] = size(images);
[S2,Q] = size(targets);
% Предобработка
[images_pp,meanA,stdA] = prestd(images);
P = images;
T = targets;
pause
% Создание сети
S1 = 25;
net = newff(minmax(P),[S1 S2],{'tansig' 'logsig'},'traingdx');
net = init(net);
% Обучение
net.performFcn = 'sse'; % Sum-Squared Error performance function
net.trainParam.goal = 1e0; % Sum-squared error goal.
net.trainParam.show = 20; % Frequency of progress displays (in epochs).
net.trainParam.epochs = 1000; % Maximum number of epochs to train.
net.trainParam.mc = 0.95; % Momentum constant.
net.trainParam.lr = 0.01;
pause
[net,tr] = train(net,P,T);
O = sim(net,P);
C = full(compet(O));
Error = sse(C-T)/(2*Q)
figure
imagesc(O)
figure
imagesc(C)
pause
Answer the question
In order to leave comments, you need to log in
Perhaps it was necessary to look not for "praser", but for "parser"?
I'll add a couple of links myself.
1 Beautiful Soup documentation (+ nice video tutorial ).
2 lxml .
scrapy is one of the most powerful and fast, but without p3 support yet.
requests + pyQuery. The first one is for pulling out pages, the second one is for convenient selection in jquery style. For simple and not demanding tasks, the optimal solution.
Of the famous ones, there is also beautifulSoup, but I have not worked with it - I won’t say anything sensible.
Read about the usual Linux wget. For some parsing tasks it is very suitable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question