Unverified Commit 0d42aef7 authored by Bharath Ramsundar's avatar Bharath Ramsundar Committed by GitHub
Browse files

Merge pull request #973 from kamran-haider/fix_featurizer_name_error

Fix featurizer name error
parents b1383f67 b0d993bc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -104,6 +104,14 @@ for dataset in datasets:
      if pair in CheckFeaturizer:
        featurizer = CheckFeaturizer[pair][0]
        n_features = CheckFeaturizer[pair][1]
      else:
        supported_combinations = [
            key for key in CheckFeaturizer.keys() if pair[0] == key[0]
        ]
        supported_models = [k[1] for k in supported_combinations]
        raise ValueError(
            "Model %s not supported for %s dataset. Please choose from the following:\n%s"
            % (pair[1], pair[0], "  ".join(supported_models)))

      tasks, all_dataset, transformers = load_dataset(
          dataset, featurizer, split='index')