Python Program Using Numpy And Tensorflow Keras Losses In Optical Fiber