We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e3001 commit e8a5e07Copy full SHA for e8a5e07
learning.py
@@ -370,7 +370,7 @@ def plurality_value(examples):
370
371
def count(attr, val, examples):
372
"Count the number of examples that have attr = val."
373
- return count(e[attr] == val for e in examples)
+ return len(e[attr] == val for e in examples) #count(e[attr] == val for e in examples)
374
375
def all_same_class(examples):
376
"Are all these examples in the same target class?"
0 commit comments