Closed RokIvansek closed 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.
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.