Neural Networks framework

My question is when creating neural networks, how the machine decides and work out in finding what is the best cell to use? and how does it finally come up with a answer?

It doesn’t. Each cell’s behavior is determined by its random initial weights. From that starting point, each unit learns whatever weights will help minimize the cost.

Oh, thank you :pray: