2014-03-27 5:29 GMT+01:00 Anitha Gollamudi <[email protected]>:
> The type of  'f_obs' before and after the call to np.asarray is csr
> matrix and array as noted much below. Now what is len(f_obs) supposed
> to be? When I tried to mimic these operations in pdb, I got
> "TypeError('len() of unsized object',)"

f_obs should not be CSR. It should be an array, like f_exp. This
function is a drop-in replacement from scipy.stats.chisquare, q.v. for
documentation.

> I am confused as what 'k' is supposed to be. Should it be the number
> of rows of f_obs?

Yes, i.e. the number of classes. The code was taken from SciPy, hence
the variable names.

------------------------------------------------------------------------------
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to