Skip to main content
6 votes
Accepted

How can I apply reinforcement learning to solve this asteroid game?

A closely related question and a minimal implementation written in Python. That program implements the reinforcement learning technique 'Q-Learning'. The idea is for the program to take in an ...
DrMcCleod's user avatar
  • 603
6 votes
Accepted

Is there any way to draw a neural network's connections in a nice way?

I'm the developer of Neataptic, a Javascript neural network library. I don't know if it is exactly what you're looking for, but it has a built-in graph creator using D3 and webcola. Basically, each ...
Thomas Wagenaar's user avatar
4 votes
Accepted

Why does the bias need to be a vector in a neural network?

In a simple feed-forward network, each artificial neuron has a separate bias value. This allows for greater flexibility for the output layer function than if each neuron had to use a single whole-...
Neil Slater's user avatar
  • 32.6k
2 votes

Is there any way to draw a neural network's connections in a nice way?

You might have come across the Tensorflow Playground which has a wonderful visualization of the network connections and the neuron weights. Their code is available in GitHub (here), and the code ...
Alpha's user avatar
  • 458
2 votes

Why does the bias need to be a vector in a neural network?

To emphasize (and this is not emphasized in this answer), in the case of neural networks, the biases or, more precisely, the connections (or weights) between biases and other neurons are also ...
nbro's user avatar
  • 40.9k
1 vote

MCTS: How to select children when none of them are visited?

Unexplored children If a node has any unexplored children you have to select one of them, before computing UCB values and selecting the best one. Alternatively you could return ...
KarelPeeters's user avatar
1 vote
Accepted

How do I normalise/un-normalise data when loading a model?

How do I convert this to a number between 0-1 without having access to the original car data? You save the normalisation parameters (typically an offset and a multiplier for each column), and ...
Neil Slater's user avatar
  • 32.6k
1 vote
Accepted

How to use Machine Learning with simple games?

You have implemented a simple contextual bandit solver, which is a machine learning algorithm. A few details may be different from a full implementation, but the key elements are: A choice of actions ...
Neil Slater's user avatar
  • 32.6k
1 vote

Is it possible to write an adaptive parser?

I wrote a relatively simple adaptive parser in Prolog. The parser is essentially a string rewriting system that learns new rewrite rules from its input, such as ...
Anderson Green's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible