Code for Brain Computer Interface-aided Training References Modeling human motion using binary latent variables Generating coherent patterns of activity from chaotic neural networks Continuous learning of context-dependent processing in neural networks