}
public void test_HowToRunSingleLearningAlgorithmOnNervousSystem() throws IOException {
Neocortex neocortex = this.partialNervousSystem.getCNS().getBrain().getCerebrum().getCerebralCortex().getNeocortex();
ImageViewer imageViewer = new ImageViewer("imageOfHumanFace1000x1000pixels.bmp",
this.partialNervousSystem.getPNS().getSNS().getRetina());
final int NUMBER_OF_TIMES_TO_RUN_LEARNING_ALGORITHM = 1000;
for (int i = 0; i < NUMBER_OF_TIMES_TO_RUN_LEARNING_ALGORITHM; i++) {
neocortex.runSingleLearningAlgorithmOneTimeStep();
Layer5Region layer5Region = (Layer5Region) neocortex.getRegion("M");
Point3D nextRetinaPosition = layer5Region
.getMotorOutput(imageViewer.getBoxRetinaIsStuckIn());
imageViewer.saccadeRetinaToNewPositionAndGetWhatItSees(nextRetinaPosition);
}
// save partialNervousSystemObject object in JSON format
String partialNervousSystemObject = this.gson
.toJson(this.partialNervousSystem);