File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 99import argparse
1010import os
1111import pickle
12-
1312import pandas as pd
1413import torch
1514from sklearn .neighbors import LocalOutlierFactor
15+ import pytest
1616
1717try :
1818 from huggingface_hub import hf_hub_download
@@ -262,7 +262,12 @@ def reproduce_results():
262262 except AssertionError :
263263 print (f"FAIL Score = { score :.4f} outside expected range { EXPECTED_SCORE } " )
264264
265-
265+ @pytest .mark .parametrize (
266+ "dataset_name, model_type, backend" ,
267+ [
268+ ("genre_adult" , "mlp" , "pytorch" ),
269+ ],
270+ )
266271def test_compatibility (dataset_name , model_type , backend ):
267272 """Test GenRe compatibility with repo's DataCatalog and ModelCatalog"""
268273 dataset = DataCatalog (dataset_name , model_type = model_type , train_split = 0.8 )
You can’t perform that action at this time.
0 commit comments