as list of booleans we can then cast this list to floats and calculate the mean to get total accuracy score we are now ready to initialize session for running the graph in this session we will feed the network with our training examplesand once trainedwe feed the same graph with new test examples to determine the accuracy of the model add the following lines of code to your filemain py init tf global_variables_initializer(sess tf session(sess run(initthe essence of the training process in deep learning is to optimize the loss function here we are aiming to minimize the difference between the predicted labels of the imagesand the true labels of the images the process involves four steps which are repeated for set number of iterationspropagate values forward through the network compute the loss propagate values backward through the network update the parameters at each training stepthe parameters are adjusted slightly to try and reduce the loss for the next step as the learning progresseswe should