Artificial Neural Network Example: Visualizing a Simple Perceptron

Artificial Neural Network Example: Visualizing a Simple Perceptron
Loading the math board and drawing, please wait…
2020-10-22 07:53
① This GeoGebra example demonstrates a simple artificial neural network with an input layer, a hidden layer, and an output layer, showing how weighted sums and activation functions produce outputs. ② Core mathematical concepts include linear functions, piecewise functions (e.g., step or sigmoid), logistic regression, weights and biases, and the basics of backpropagation. ③ Construction uses GeoGebra commands such as Segment, Point, and Textfield; objects include weights (w_1 to w_8), biases (b_1, b_2), net input (net_{h1}), and output (out_{h1}), allowing interactive adjustment of parameters to observe changes in the network's output. ④ Suitable for high school to university-level mathematics or computer science courses, this example serves as an intuitive teaching tool for understanding linear algebra, function composition, and parameter optimization in neural networks, and as an introductory AI visualization.

GeoGebra Commands & Parameters

  1. Segment(A, C) → f
  2. Segment(A, D) → g
  3. Segment(B, C) → h
  4. Segment(B, D) → i
  5. Segment(G, C) → j
  6. Segment(G, D) → k
  7. Segment(S, E) → l
  8. Segment(R, F) → p
  9. Segment(H, E) → q
  10. Segment(H, F) → r
  11. Point(g) → I
  12. Point(h) → J
  13. Point(f) → K
  14. Segment(S, F) → m
  15. Point(m) → M
  16. Point(l) → N
  17. Point(p) → O
  18. Segment(R, E) → n
  19. Point(n) → P
  20. Point(i) → L
  21. Textfield(i_1) → InputBox1
  22. Textfield(i_2) → InputBox2
  23. Textfield(o_1) → InputBox3
  24. Textfield(o_2) → InputBox4
  25. Segment(C, R) → s
  26. Segment(D, S) → t
  27. Point(s) → T
  28. Point(t) → U
  29. Segment(E, Q) → a
  30. Segment(F, V) → b
  31. Point(a) → W
  32. Point(b) → Z
  33. Segment(Q, A_1) → c
  34. Segment(V, B_1) → d
  35. Point(c) → C_1
  36. Point(d) → D_1
  37. Segment(A_1, E_1) → e
  38. Segment(B_1, E_1) → f_1
  39. Textfield(b_2) → InputBox5
  40. Textfield(b_1) → InputBox6
  41. Textfield(eta) → InputBox7

AI Drawing Prompt Reference

Draw a simple neural network diagram with input, hidden, and output layers. Show the process of weighted sums and activation functions. Key objects include weights, biases, net input, and output. Allow interactive adjustment of parameters to observe output changes. Suitable for math or computer science teaching to understand linear algebra, function composition, and parameter optimization.
The prompt above was compiled from the original drawing commands and is for reference only.