Decoding Optical Data With Machine Learning Algorithms Examples