def Test_PaR(): #test Precision_n_Recall res = np.array([0, 1, 2, 0, 1, 2, 2]) data = np.array([0, 1, 1, 0, 0, 1, 2]) PaR = Cl.Precision_n_Recall(res, data, 3, False) real_result = np.load(way + "PaR_real_res.npy") if (np.allclose(PaR, real_result)): return ("Funguje") else: return ("Nefunguje")