⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 人智算法基本程序
💻
字号:
					    PDP ProgramWelcome to the wonderful world of the PDP C++ directory. This programdemonstrates training a neural network. It is meant to be a companionto chapter 5 of the "Artificial Intelligence" textbook.  This code waswritten by Jon Monsarrat, jgm@cs.brown.edu.Five sections describe the program:1. The problem2. Building the program3. Running the program4. The solution, and how to read the source code----------------------------------------------------------------------1. The problemThe book goes into quite some detail about the problem, but here it isin a nutshell.We have a neural net and a function to train it on. Now we need to figure out how to adjust the weights so that the function is learned.----------------------------------------------------------------------2. Building the programThe source code in this directory is complete and does not depend uponany other source code from the textbook. It only uses standardand libraries which should come any C++ compiler.You can build this program in UNIX by simply typing      makeYou may need to edit the Makefile to change the name of the compiler,if you do not have a compiler named "CC".To add a function, you will need to recompile the program. You'll alsoneed to recompile the program to supply your own neural net.----------------------------------------------------------------------3. Running the programRunning the program is very simple. Just type   pdp1 [-or] [-and] [-xor] num_attempts learning_rate        -or  use the 2 bit or  algorithm        -and use the 2 bit and algorithm        -xor use the 2 bit xor algorithm        num_attempts is the number of training attempts        learning_rate is the learning rate, try 1 or 2The program pdp2 works similarly, but for a different neural net.----------------------------------------------------------------------5. The solution, and how to read the source codeThis program is quite similar to the Lisp program. The neural netcode is stored in PDP1.C and PDP2.C. The training code is in PDP.C.There is one wrapper class, PDP, but it does not really do much.Effectively, this program is just a C program.----------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -