GithubHelp home page GithubHelp logo

bp's Introduction

BP

老师不好意思,由于一些奇怪的原因,下面的图片可能无法显示,如果图片无法显示,请前往:https://gitee.com/zhaoguanyi/BP

BP_NN.py是含有两个隐藏层的四层BP神经网络程序代码

随机产生以5为半径的圆内A和圆外B两类线性不可分数据

初始数据分布图:

image1

分类结果:

image2

输出接近1的表示属于A类,接近0的属于B类

学习率分别为0.1,0.5,0.9时的训练误差随迭代次数收敛情况:

image3

image4

image5

根据调节学习率参数得到的结果及查阅资料可知,通常学习率越大,收敛速度越快,但学习率过大可能导致结果不收敛,学习率小则精度较大,但学习率过小收敛速度会较慢

节点数分别为(2,3,3,1),(2,4,3,1),(2,4,5,1)时训练误差随迭代次数收敛情况:

image6

image7

image8

根据调节节点数参数得到的结果及查阅资料可知,在一定范围内节点数越多收敛效果越好,但节点数太大容易呈现出极大的随机性。

bp's People

Contributors

jojo11111 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.