Questions tagged [javascript]

For questions about implementation of AI/Ml programs in the javascript programming language.

Javascript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

8 questions
5
votes
1 answer

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

Introduction An attractive asteroid game was described in the paper Learning Policies for Embodied Virtual Agents through Demonstration (2017, Jonathan Dinerstein et al.): In our first experiment, the virtual agent is a spaceship pilot, The pilot's…
GIA
  • 568
  • 6
  • 22
5
votes
3 answers

Is it possible to write an adaptive parser?

I am working on a js library which focuses on error handling. A part of the lib is a stack parser which I'd like to work in most of the environments. The hard part that there is no standard way to represent the stack, so every environment has its…
5
votes
2 answers

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

I've been working with neural networks and artificial intelligence for a while. What I'm trying to do right now is, from a genotype I have (a sum of sensors, neurons and actuators) draw how the neural network is (with recurrent/recursive connections…
MiGu3X
  • 53
  • 3
4
votes
2 answers

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

I am learning to use tensorflow.js. I am also using the tfvis library to print information about the neural net to the web browser. When I create a create a dense neural net with a layer with 5 neurons and another layer with 2 neurons, each layer…
2
votes
1 answer

How to use Machine Learning with simple games?

I built a simple HTML game. In this game the goal is to click when the blue ball is above the red ball. If you hit, you get 1 point, if you miss, you lose 1 point. With each hit, the blue ball moves faster. You can test the game here. Without using…
GIA
  • 568
  • 6
  • 22
1
vote
1 answer

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

I am following this TensorFlow JS tutorial where you load car data. The data looks like this: [{x:100, y:20}, {x:80, y:33}] X is the horsepower of a car, Y is the expected miles per gallon usage. After creating the model I save it locally…
Kokodoko
  • 167
  • 1
  • 7
0
votes
1 answer

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

I am trying to implement MCTS for a custom word game I am working on. I feel like I have got all the pieces of code needed, but the algorithm seems to always return the first available move (first child of provided root note). I feel like this has…
-1
votes
2 answers

How do I generate video classification labels using video descriptions/titles?

I've been scanning the internet for ways to generate baseball-based labels for youtube baseball videos using text collected from a YT video's description, title, and top 50 titles, but so far, I have been unable to find a Natural Language Processing…