cmaclell/concept_formation

Categorizing empty instances throws a float division by zero

Closed this issue · 1 comments

t = TrestleTree()
t.ifit({'x': 1})
t.ifit({'x': 2}}
t.categorize({})

the last will throw a ZeroDivisionError exception.

Appears to be solved. I added a test case to master f4cfa05