I'm trying to implement a genetic algorithm using roulette wheel selection, and I'm wondering - what happens if when we are trying to breed a child, the same parent is selected? Do we still do crossover since the resulting child will be the s...
I'm working with a quiz chatbot,  first it will ask user for his name, roll number and passcode, then start asking quiz questions one by one  problem is when i'm doing context out from webhook with some parameters, what i want to set is quest...
I really need help implementing a continuous tanh-sigmoid activation function in a very basic neural network. If you could give a basic example that would be great, but if you could change it in my source code I would be extremely grateful! Also, wha...
I asked a question some time ago about how to make the AI chase the food in my Agar.io clone, which I eventually figured out myself, but now I can't figure out how to make it go after the food closest to it. I tried, by creating two arrays with t...
I have a tic-tac-toe game built with JavaScript. I've written the logic for the computer AI part in a function. I'm wanting to call the function on the upper part of my code but it's not working. Does anyone have any suggestions of how to...
I'm making a bot for a project called Ogar, an Agar.io server implementation written in Node.js.  This bot has an obstacle, a green spiky cell called a virus (see illustration). I need to program this bot to avoid that obstacle, but I'm with...
Summary: deep-learning networks return undefined for output when activated  I've been working with synaptic.js to make neural-networks in the browser for a while and I've decided I want to implemented deep-learning for a project I'm worki...
I've been trying to evolve a neural network that prints values converging to one, using a genetic algorithm.  I've tried debugging the code but don't know what I've messed up.  I'm using fitness to chose the best "brains"...
I've tried to rewrite neural network found here to javascript. My javascript code looks like this.  function NeuralFactor(weight) {     var self = this;     this.weight = weight;     this.delta =  0; }  function Sigmoid(value) {     return 1 / (1...
I'm struggling to code a circular-shaped detection area for enemies aggro detection. Currently, enemies are pulled if the player x and y position collide with the enemy x and y position plus and minus its aggroDist.  Here is the current code :  i...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.