If you're using the web interface, please follow the quick start guide.
- Install the Bonsai CLI by following our detailed CLI installation guide.
- Setup your BRAIN's local project folder.
bonsai create <your_brain> - Run this command to install additional requirements for training your BRAIN:
pip install -r requirements.txt
- Upload Inkling and simulation files to the Bonsai server with one command.
bonsai push - Run this command to start training mode for your BRAIN.
bonsai train startIf you want to run this remotely on the Bonsai server use the--remoteoption.bonsai train start --remote - Connect the OpenAI Gym simulator for training. Use the
--headlessoption to hide the graphical output.python acrobot_simulator.py --train-brain=<your_brain> --headless - When training has hit a sufficient accuracy for prediction, after a few minutes, stop training your BRAIN.
bonsai train stop
- Run the simulator using predictions from your BRAIN. You can now see AI playing the game!
python blackjack_simulator.py --predict-brain=<your_brain> --predict-version=latest
See our Inkling Guide and Inkling Reference for help.