RokIvansek / attribute-interactions

A python implementation of attribute interactions. An Orange add-on (scripting part only).
2 stars 0 forks source link

Rewrite contingency #23

Closed RokIvansek closed 8 years ago

RokIvansek commented 8 years ago

Rewrite method contingency from Orange.statistics.util and place it in the utils module. It should make use of Orange.statistics.util.bincount like the original, but handle nans for both arrays in input (not just X) and except unique values in arrays as input parameters instead of computing them to save time.

RokIvansek commented 8 years ago

Not in the utils module but a part of the Interactions class. The method is called freq_counts and is a nice general, fast and readable method for counting samples in a 2D array of arbitrary dimensions. It makes use of the fast np.bincount method.