Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use BP network tools

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to use BP network tools, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

BP (Back Propagation) neural network was proposed by a group of scientists headed by Rumelhart and McCelland in 1986. It is a multi-layer feedforward network trained by error back propagation algorithm. It is one of the most widely used neural network models at present. BP network can learn and store a large number of input-output pattern mapping relations without revealing the mathematical equations describing this mapping relationship in advance. Its learning rule is to use the gradient descent method to constantly adjust the weights and thresholds of the network through back propagation to minimize the sum of squared errors of the network. The topology of BP neural network model includes input layer (input), hidden layer (hidden layer) and output layer (output layer).

Neural network can be used for classification, clustering, prediction and so on. The neural network needs a certain amount of historical data. Through the training of the historical data, the network can learn the hidden knowledge in the data.

% cleanup

Clear,clc

Rng ('default')

Rng (2)

%% read in data

Xlsfile='student.xls'

[data,label] = getdata (xlsfile)

%% partition data

[traind,trainl,testd,testl] = divide (data,label)

Create network

Net=feedforwardnet (3)

Net.trainFcn='trainbfg'

%% training network

Net=train (net,traind',trainl)

%% Test

Test_out=sim (net,testd')

Test_out (test_out > = 0.5) = 1

Test_out (test_out

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report