import tensorflow as tf

    acc_train = [] #store train accuracy for each epoch
    acc_test  = [] #store test accuracy for each epoch

    if actL == 'sigmoid': #accuracy score for binary class classification

        Yp = tf.greater(an , 0.5)
        accuracy = tf.reduce_mean(tf.cast(tf.equal(Yp, tf.equal(Y,1.0)), "float"))

    elif actL == 'esp' or actL == 'relu': #r2 score

