Answers.Body: <blockquote>
  <p>How does learning the moves of chess show up in a neural network?</p>
  </blockquote>
  <p>If you have 2 neural networks that have been initialised in the same way, are trained with the exact same sequence of samples, and there is no other source of randomness, then they will be identical at the end of training.</p>
  <p>So, the answer to your question is: it depends on the learning algorithm, how you initialise the neural networks, and how you sample the data and feed it to the neural network. There's no magic!</p>
  <p>Finally, what they learn is encoded in their weights and how these weights are used to produce the output (i.e. the architecture). It's not easy to explain intuitively what the neural networks are exactly doing to produce the output (so they are sometimes called <em>black box models</em>), but there are <a href="https://ai.stackexchange.com/q/12870/2444">explainable AI techniques</a> that can be used for this purpose.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-14T15:16:57.633Z
Answers.Text: would it be possible to look at the network and identify, e.g., this is where the knight move is encoded? how long before the way the knight moves is stored accurately?
Answers.UserDisplayName: releseabe
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-14T19:30:20.877Z
Answers.Text: That sort of question is an open area of research in general, though as @nbro mentioned there are techniques for generating explanations (with varying degrees of accuracy), along with alternative interpretable models that may or may not have the same power as blackbox models.
Answers.UserDisplayName: bob
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-14T11:07:52.003Z
Answers.LastActivityDate: 2022-05-14T11:07:52.003Z
Answers.UserDisplayName: nbro
Body: <p>Is learning the moves a special case or just the same sort of thing that happens as the AI learns strategy? If you take two different neural networks and teach them each how the pieces move, what checkmate is, etc. will the two networks look identical or is there a random element that means that two networks with the exact same number of nodes, running on the same processors, etc. will not look identical even though they both know exactly the same things?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-14T21:02:20.533Z
Comments.Text: Perhaps part of your confusion: you generally don't teach the neural networks how the pieces move and what checkmate is. You just teach them directly how to suggest good moves, and an external program is used to ignore illegal move suggestions and pick the best legal move from the net's suggestions.
Comments.UserDisplayName: Daniel Wagner
Tags: <neural-networks><machine-learning><chess>
Title: How does learning the moves of chess show up in a neural network?
UserDisplayName: releseabe
ThreadText: # How does learning the moves of chess show up in a neural network?
  
  (Asked by: username_0 on 2022-05-14)
  
  Is learning the moves a special case or just the same sort of thing that happens as the AI learns strategy? If you take two different neural networks and teach them each how the pieces move, what checkmate is, etc. will the two networks look identical or is there a random element that means that two networks with the exact same number of nodes, running on the same processors, etc. will not look identical even though they both know exactly the same things?
  
  **Tags:** neural-networks, machine-learning, chess
  
  > **Comments:**
  > **username_1**: Perhaps part of your confusion: you generally don't teach the neural networks how the pieces move and what checkmate is. You just teach them directly how to suggest good moves, and an external program is used to ignore illegal move suggestions and pick the best legal move from the net's suggestions.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-05-14. Score: 2
  
  > How does learning the moves of chess show up in a neural network?
  
  If you have 2 neural networks that have been initialised in the same way, are trained with the exact same sequence of samples, and there is no other source of randomness, then they will be identical at the end of training.
  
  So, the answer to your question is: it depends on the learning algorithm, how you initialise the neural networks, and how you sample the data and feed it to the neural network. There's no magic!
  
  Finally, what they learn is encoded in their weights and how these weights are used to produce the output (i.e. the architecture). It's not easy to explain intuitively what the neural networks are exactly doing to produce the output (so they are sometimes called *black box models*), but there are [explainable AI techniques](https://ai.stackexchange.com/q/12870/2444) that can be used for this purpose.
  
  > **Comments:**
  > **username_0**: would it be possible to look at the network and identify, e.g., this is where the knight move is encoded? how long before the way the knight moves is stored accurately?  
  > **username_3**: That sort of question is an open area of research in general, though as @username_2 mentioned there are techniques for generating explanations (with varying degrees of accuracy), along with alternative interpretable models that may or may not have the same power as blackbox models.  
  
  ---
  
  