CIS-3870 Lecture 1: PHP Neural Network Input

7 views2 pages

Document Summary

Neural network for find if red or blue are dominant color in rgb color (three neurons for holding red, green and blue values, and the fourth is bias -- usually equaling 1) ex: = new neuralnetwork(4, 4, 1); // the number of neurons in each layer of the network -- 4 input, 4 hidden and 1 output neurons. // first array is input data, and the second is the expected output value (1 means blue and 0 means red) ->addtestdata( array (0, 0, 255, 1), array (1)); ->addtestdata( array (0, 0, 192, 1), array (1)); ->addtestdata( array (208, 0, 49, 1), array (0)); ->addtestdata( array ( 228, 105, 116, 1), array (0)); ->addtestdata( array (128, 80, 255, 1), array (1)); ->addtestdata( array ( 248, 80, 68, 1), array (0)): only one output neuron because you have only two possible results.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents