@@ -86,8 +86,8 @@ def transform_feature(x):
8686 # check accuracy
8787 train_acc = np .sum (inferred_train == x_train_feature .reshape (1 , - 1 )) / len (inferred_train )
8888 test_acc = np .sum (inferred_test == x_test_feature .reshape (1 , - 1 )) / len (inferred_test )
89- assert pytest .approx (0.8285 , abs = 0.3 ) == train_acc
90- assert pytest .approx (0.8888 , abs = 0.3 ) == test_acc
89+ assert pytest .approx (0.8285 , abs = 0.35 ) == train_acc
90+ assert pytest .approx (0.8888 , abs = 0.35 ) == test_acc
9191 print (model_type , train_acc , test_acc )
9292
9393 except ARTTestException as e :
@@ -184,8 +184,8 @@ def transform_feature(x):
184184 # check accuracy
185185 train_acc = np .sum (inferred_train == x_train_feature .reshape (1 , - 1 )) / len (inferred_train )
186186 test_acc = np .sum (inferred_test == x_test_feature .reshape (1 , - 1 )) / len (inferred_test )
187- assert pytest .approx (0.8285 , abs = 0.3 ) == train_acc
188- assert pytest .approx (0.8888 , abs = 0.3 ) == test_acc
187+ assert pytest .approx (0.8285 , abs = 0.35 ) == train_acc
188+ assert pytest .approx (0.8888 , abs = 0.35 ) == test_acc
189189 print (model_type , train_acc , test_acc )
190190
191191 except ARTTestException as e :
@@ -236,8 +236,8 @@ def transform_feature(x):
236236 # check accuracy
237237 train_acc = np .sum (inferred_train == x_train_feature .reshape (1 , - 1 )) / len (inferred_train )
238238 test_acc = np .sum (inferred_test == x_test_feature .reshape (1 , - 1 )) / len (inferred_test )
239- assert pytest .approx (0.8285 , abs = 0.3 ) == train_acc
240- assert pytest .approx (0.8888 , abs = 0.3 ) == test_acc
239+ assert pytest .approx (0.8285 , abs = 0.35 ) == train_acc
240+ assert pytest .approx (0.8888 , abs = 0.35 ) == test_acc
241241 print (model_type , train_acc , test_acc )
242242
243243 except ARTTestException as e :
@@ -286,8 +286,8 @@ def transform_feature(x):
286286 # check accuracy
287287 train_acc = np .sum (inferred_train == x_train_feature .reshape (1 , - 1 )) / len (inferred_train )
288288 test_acc = np .sum (inferred_test == x_test_feature .reshape (1 , - 1 )) / len (inferred_test )
289- assert pytest .approx (0.8285 , abs = 0.3 ) == train_acc
290- assert pytest .approx (0.8888 , abs = 0.3 ) == test_acc
289+ assert pytest .approx (0.8285 , abs = 0.35 ) == train_acc
290+ assert pytest .approx (0.8888 , abs = 0.35 ) == test_acc
291291 print (model_type , train_acc , test_acc )
292292
293293 except ARTTestException as e :
0 commit comments