Current Events > What does fitness mean in this context?

Topic List
Page List: 1
Milkman5
05/23/18 11:26:06 PM
#1:


https://github.com/Nefaerious/Minesweeper-AI

https://github.com/Nefaerious/Minesweeper-AI/blob/master/src/MineSweeper.java

System.out.printf("%.2f%n", totalFitness / nets.size());

it prints out the fitness and I have no idea what it means
... Copied to Clipboard!
Pancake
05/23/18 11:28:13 PM
#2:


it's a measure of how much more suited it was to its environment. how much better the AI is at succeeding within parameters.

like giraffes. somewhere in irl dwarf fortress the parameter is set to fruit:way the hell up there. giraffes have fitness in that climate.
---
... Copied to Clipboard!
lincoln002
05/23/18 11:28:55 PM
#3:


Means you need to hit the gym bro and quit spending so much time on the computer.
... Copied to Clipboard!
Milkman5
05/23/18 11:31:00 PM
#4:


Pancake posted...
it's a measure of how much more suited it was to its environment. how much better the AI is at succeeding within parameters.


yeah, but what does it mean. Is it just arbitrary scoring? Like when it prints 23, what the fuck does that mean
... Copied to Clipboard!
Pancake
05/23/18 11:34:11 PM
#5:


the code uses some calculation that seems to include wins. that's all i got!

check this out:

https://www.youtube.com/watch?v=qv6UVOQ0F44" data-time="

---
... Copied to Clipboard!
Milkman5
05/23/18 11:56:25 PM
#6:


I just don't get what the numbers mean. what's the cap?
... Copied to Clipboard!
Foppe
05/24/18 1:16:53 AM
#7:


Fitness is how successful the AI is, and its goal is to try getting a higher Fitness.
Im too lazy to try figuring out how it is calculated in the Minesweeper AI, but in the Mario example above it is a combination of how fast and how far you move to the right. The AI produces genomes which is random buttom combinations. After a specific set of genomes (depending on the settings you have, I think the original is 320 or so), it takes the genomes with the highest Fitness and base the next generation genomes of those random buttom combinations. Let the AI try some weeks and it will manage to complete the level. The cap depends on how long the level is.
Or in the case of the Minesweeper AI, it most likely depends on how big the board is and how many mines it got.
---
GameFAQs isn't going to be merged in with GameSpot or any other site. We're not going to strip out the soul of the site. -CJayC
... Copied to Clipboard!
scar the 1
05/24/18 1:36:33 AM
#8:


The fitness function is probably defined specifically for that game, and it measures how well the current iteration of the AI solved the task. My guess is that it's related to how many mines were left before it clicked one. But if you want to be really sure you can always check the source code you linked.
---
Everything has an end, except for the sausage. It has two.
... Copied to Clipboard!
Topic List
Page List: 1