;; Dribble of # started 2006-04-05 11:47:01 # [2]> (load "perceptron") ;; Loading file /home/nilufer/postscript-classes/for-cs4811/2006-04-brain-quotes/perceptron.lisp ... ;; Loaded file /home/nilufer/postscript-classes/for-cs4811/2006-04-brain-quotes/perceptron.lisp T [3]> (train-it) Iteration limit is 999 Learning constant is 0.5 Initial weights vector is (0 0 0) DOING ITERATION 1 Doing example (-1 1.0 1.0 1) Sum is 0. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-0.5 0.5 0.5) Y intercept is -1.0, X intercept is -1.0 Doing example (-1 9.4 6.4 0) Sum is 8.4. Output is 1, desired output is 0 The output should have been 0. Subtract half of the weights from the inputs. New weights is (0.0 -4.2 -2.7) Y intercept is 0.0, X intercept is 0.0 Doing example (-1 2.5 2.1 1) Sum is -16.17. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-0.5 -2.9499998 -1.6500001) Y intercept is 0.30303028, X intercept is 0.16949153 Doing example (-1 8.0 7.7 0) Sum is -35.805. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 0.5 2.2 1) Sum is -4.6050005. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-1.0 -2.6999998 -0.5500001) Y intercept is 1.8181816, X intercept is 0.3703704 Doing example (-1 7.9 8.4 0) Sum is -24.949999. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 7.0 7.0 0) Sum is -21.749998. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.8 0.8 1) Sum is -6.9999995. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-1.5 -1.2999998 -0.15000007) Y intercept is 9.999995, X intercept is 1.1538463 Doing example (-1 1.2 3.0 1) Sum is -0.51. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-2.0 -0.6999998 1.3499999) Y intercept is -1.4814816, X intercept is 2.8571436 Doing example (-1 7.8 6.1 0) Sum is 4.775001. Output is 1, desired output is 0 The output should have been 0. Subtract half of the weights from the inputs. New weights is (-1.5 -4.6 -1.7) Y intercept is 0.8823529, X intercept is 0.32608697 DOING ITERATION 2 Doing example (-1 1.0 1.0 1) Sum is -4.8. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-2.0 -4.1 -1.2) Y intercept is 1.6666666, X intercept is 0.4878049 Doing example (-1 9.4 6.4 0) Sum is -44.219997. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.5 2.1 1) Sum is -10.77. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-2.5 -2.85 -0.1500001) Y intercept is 16.666656, X intercept is 0.87719303 Doing example (-1 8.0 7.7 0) Sum is -21.455. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 0.5 2.2 1) Sum is 0.7449998. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.9 8.4 0) Sum is -21.275. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 7.0 7.0 0) Sum is -18.5. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.8 0.8 1) Sum is -5.5999994. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-3.0 -1.4499999 0.24999991) Y intercept is -12.000005, X intercept is 2.0689657 Doing example (-1 1.2 3.0 1) Sum is 2.0099998. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.8 6.1 0) Sum is -6.785. Output is 0, desired output is 0 Results equal, do nothing. DOING ITERATION 3 Doing example (-1 1.0 1.0 1) Sum is 1.8. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 9.4 6.4 0) Sum is -9.03. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.5 2.1 1) Sum is -0.099999964. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-3.5 -0.19999993 1.2999998) Y intercept is -2.692308, X intercept is 17.500006 Doing example (-1 8.0 7.7 0) Sum is 11.909999. Output is 1, desired output is 0 The output should have been 0. Subtract half of the weights from the inputs. New weights is (-3.0 -4.2 -2.5500002) Y intercept is 1.1764705, X intercept is 0.71428573 Doing example (-1 0.5 2.2 1) Sum is -4.7100005. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-3.5 -3.9499998 -1.4500002) Y intercept is 2.4137928, X intercept is 0.886076 Doing example (-1 7.9 8.4 0) Sum is -39.885. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 7.0 7.0 0) Sum is -34.3. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.8 0.8 1) Sum is -8.719999. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-4.0 -2.5499997 -1.0500002) Y intercept is 3.809523, X intercept is 1.5686276 Doing example (-1 1.2 3.0 1) Sum is -2.2100003. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-4.5 -1.9499997 0.4499998) Y intercept is -10.000004, X intercept is 2.3076928 Doing example (-1 7.8 6.1 0) Sum is -7.964999. Output is 0, desired output is 0 Results equal, do nothing. DOING ITERATION 4 Doing example (-1 1.0 1.0 1) Sum is 3.0. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 9.4 6.4 0) Sum is -10.949997. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.5 2.1 1) Sum is 0.5700005. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 8.0 7.7 0) Sum is -7.6349993. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 0.5 2.2 1) Sum is 4.515. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.9 8.4 0) Sum is -7.1249995. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 7.0 7.0 0) Sum is -5.999999. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.8 0.8 1) Sum is -0.5999992. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-5.0 -0.5499997 0.8499998) Y intercept is -5.8823543, X intercept is 9.090914 Doing example (-1 1.2 3.0 1) Sum is 6.8899994. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.8 6.1 0) Sum is 5.8950005. Output is 1, desired output is 0 The output should have been 0. Subtract half of the weights from the inputs. New weights is (-4.5 -4.45 -2.2000003) Y intercept is 2.0454543, X intercept is 1.011236 DOING ITERATION 5 Doing example (-1 1.0 1.0 1) Sum is -2.15. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-5.0 -3.9499998 -1.7000003) Y intercept is 2.941176, X intercept is 1.2658229 Doing example (-1 9.4 6.4 0) Sum is -43.01. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.5 2.1 1) Sum is -8.445001. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-5.5 -2.6999998 -0.65000033) Y intercept is 8.4615345, X intercept is 2.0370371 Doing example (-1 8.0 7.7 0) Sum is -21.105001. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 0.5 2.2 1) Sum is 2.7199993. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.9 8.4 0) Sum is -21.29. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 7.0 7.0 0) Sum is -17.95. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.8 0.8 1) Sum is -2.5799997. Output is 0, desired output is 1 The output should have been 1. Add half of the weights to the inputs. New weights is (-6.0 -1.2999998 -0.25000033) Y intercept is 23.99997, X intercept is 4.615385 Doing example (-1 1.2 3.0 1) Sum is 3.689999. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.8 6.1 0) Sum is -5.6650014. Output is 0, desired output is 0 Results equal, do nothing. DOING ITERATION 6 Doing example (-1 1.0 1.0 1) Sum is 4.45. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 9.4 6.4 0) Sum is -7.8200006. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.5 2.1 1) Sum is 2.225. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 8.0 7.7 0) Sum is -6.3250012. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 0.5 2.2 1) Sum is 4.799999. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.9 8.4 0) Sum is -6.3700013. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 7.0 7.0 0) Sum is -4.850001. Output is 0, desired output is 0 Results equal, do nothing. Doing example (-1 2.8 0.8 1) Sum is 2.1600003. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 1.2 3.0 1) Sum is 3.689999. Output is 1, desired output is 1 Results equal, do nothing. Doing example (-1 7.8 6.1 0) Sum is -5.6650014. Output is 0, desired output is 0 Results equal, do nothing. Converged after 5 iterations. NIL [4]> (dribble) ;; Dribble of # finished 2006-04-05 11:47:23