// write the number of neurons for each layer
for (int i = 0; i < this.numberOfLayers; ++i) {
output.writeInt(this.layerSizeArray[i]);
}
for (int i = 0; i < numberOfLayers - 1; ++i) {
MatrixWritable matrixWritable = new MatrixWritable(this.weightMatrice[i]);
matrixWritable.write(output);
}
}