-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discriminability y
should allow arbitrary type or make docs more clear
#140
Comments
@sampan501 Hi, I can modify this if it is still open. Let me know if you want that :) |
Sure you can! |
Can provide me with a sample reference on how I should edit the documentation of this particular issue? I highly appreciate that. |
To approach I would try two things. First I would try remove the casting to floats, which I believe is done here: Line 29 in 135cfcd
If you are editing the documentation, you will need to edit lines like this: hyppo/hyppo/discrim/discrim_one_samp.py Line 59 in 135cfcd
hyppo . So you would say ndarray of floats or something like that
|
I edited the documentations. Please let me know if everything is alright. |
There isn't really a specific unit test. However there should be a netlify deploy preview and the site should render the documentation correctly. The log in netlify should be without any errors |
@sampan501 The netlify link is the same as the one that the bot provided after the initial commit? Should I check that? |
Should be the same one, also should be a "deploy-preview" in the checks section |
Did removing the cast to float not work? I felt that when passing in an array of labels, the labels are often integers or strings but rarely floats, does that make sense? |
So changing the text in the documentation is more of a temporary fix. I opened #246 to investigate whether not casting to float changes the test statistic and p-value calculations |
Is your feature request related to a problem? Please describe.
Currently, the
y
argument toDiscriminability.test(x, y)
will raise an error if a vector of strings is passed. The error is just that a string array cannot be cast to float.The docs currently just say
nd.array
and don't clarify what type of values are accepted. (See here)Describe the solution you'd like
I don't see why the
y
argument needs to be cast to float (here), but maybe I'm missing something? From a quick look at the code I don't think anything would break if you just didn't cast this array. Especially since most of the time, these will be ints, i'd imagine.Describe alternatives you've considered
If you disagree or I'm wrong, the docs should at least be clarified as to what types are accepted, and a check for that data type in the array seems reasonable.
The text was updated successfully, but these errors were encountered: