Is it possible to save an Object for use in other sketches?

edited November 2017 in How To...

I am currently working on training an AI to play a simple 1v1 game. It has a neural networks with 2 hidden layers, 21 neurons each, so the sum of every individual weight amounts to nearly half a thousand. I am using a genetic algorithm where 100 AI’s are paired up and only the victorious ones get to reproduce. My question is: once an adequately intelligent AI is born, I want to be able to easily replicate its weights in other sketches in order to have it play against players. Thing is, since its weights are in the hundreds, it would be insane to for example println the weights and have to copy them one by one. Is there a better way?

Answers

Sign In or Register to comment.