Skip to content

Commit 6bcb677

Browse files
committed
Added a clause for when the target attribute class is capitalized. Should probably reload it so reloading the ARFF file a second time isnt necessary, but this is a quick fix to make the code work for a course currently given at TUe.
1 parent 585e09a commit 6bcb677

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

openml/datasets/dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ def _retrieve_class_labels(self):
249249
dataAttributes = dict(arffData['attributes'])
250250
if('class' in dataAttributes):
251251
return dataAttributes['class']
252+
elif('Class' in dataAttributes):
253+
return dataAttributes['Class']
252254
else:
253255
return None
254256

0 commit comments

Comments
 (0)