QBoard » Artificial Intelligence & ML » AI and ML - Conceptual » Designing Neural Networks

Designing Neural Networks

  • I am learning about Neural Networks and back-propagation. I think I understand how the network works, in terms of input, output, hidden layers, weights, bias etc However, I still don't fully understand how to design a network to fit a problem. Ie: Say I wanted a neural net to learn how to play Draughts, how would I translate the problem into a neural net design? Cheers :)
      November 2, 2021 7:41 PM IST
    0
  • There are definitely a lot of decisions to be made in designing a neural net, and there is no one right answer. However, there are a few general questions that are often helpful to think about:

    1. What are you trying to generate as an output? Draughts seems like a challenging game to play with a neural net, because there are a lot of potential moves and the ones available change from turn to turn, but presumably you would want the output to be the next move.

    2. What are your inputs? This should include anything that you think would be useful in making the decision that you want the neural net to make. In the draughts example, you'd probably need to give the neural net the locations of all pieces on the board.

    3. Recurrent or feed-forward? Generally, unless there's a really salient reason for giving it information about what it's done in the past, it's best to use feed-forward, because the enables you to train the net with back-propagation. For draughts, for instance, you'd probably want to use a feed-forward network.

    4. Do you need a hidden layer? This is a harder question to know the answer to, and might require some experimentation, unless you know a lot about the high-dimensional space that your inputs occupy. Draughts is complex enough that it seems like it would require a hidden layer, but it's hard to be sure.

    Obviously, there are a lot more decisions that can/have to be made about neural net set-up, but hopefully these will get you going.

      November 3, 2021 1:56 PM IST
    0
  • In general, there are five basics steps: (1) collecting data, (2) preprocessing data, (3) building the network, (4) train, and (5) test performance of model as shown in Fig 6. Collecting and preparing sample data is the first step in designing ANN models.
     
      November 8, 2021 2:49 PM IST
    0
  • Since you are developing AI agent for the game you should read Reinforcement Learning (Q networks) that is ideally applied for such tasks.
      November 8, 2021 5:17 PM IST
    0