-
Notifications
You must be signed in to change notification settings - Fork 27
Remove obsolete configuration options #171
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
Remove obsolete configuration options #171
Conversation
Remove: fast_optim instant_plot grid_set_type move_bounds
|
Thank you @otizonaizit , the changes look good. If we get rid of Are we sure we want to remove it? In #143, the problem was that the minimum width was set in a naive way, and we have improved that. Felix' comment was that the experiment should normally cover the range of plausible stimuli, so setting it by hand is not useful. OTOH, there might be cases where it's not possible to cover the full range, and still want to infer a sigmoid on the full range? |
|
I'm not sure about stimulus_range either. I could split the PR, so that
this one only covers the obvious things and move the stimulus_range
related things on a different PR where we can have a proper discussion?
I personally don't like complicating the API and the code to cover
theoretically interesting use cases that haven't shown up in the
practical experience of anyone who has ever used the code. But you assess
if this is the case here I'd like to hear the psychophysicists in town ;)
27 Nov 2024 18:28:42 Pietro Berkes ***@***.***>:
…
Thank you @otizonaizit[https://github.com/otizonaizit] , the changes
look good. If we get rid of *stimulus_range*, I think some of the
notebooks in *demo* need to be modified.
Are we sure we want to remove it? In
#143[#143], the
problem was that the minimum width was set in a naive way, and we have
improved that. Felix' comment was that the experiment should normally
cover the range of plausible stimuli, so setting it by hand is not
useful. OTOH, there might be cases where it's not possible to cover the
full range, and still want to infer a sigmoid on the full range?
—
Reply to this email directly, view it on
GitHub[#171 (comment)],
or
unsubscribe[https://github.com/notifications/unsubscribe-auth/AACUYC67JF7EK5ZF3XANX4L2CX6MPAVCNFSM6AAAAABSTIIUGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBUGQZDIMZTHA].
You are receiving this because you were mentioned.
[Tracking
image][https://github.com/notifications/beacon/AACUYC4EK3ORPUX2ZZYJZNL2CX6MPA5CNFSM6AAAAABSTIIUGSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUVIZ5ZE.gif]
|
|
btw, talking with a heavy user of psychometric function fitting libraries, I heard that it is difficult to imagine what sense an experiment would make where you do no sample the lower or higher part of the stimulus range but then want to fit a psychometric function and use that fit to claim something about thresholds and such... |
|
alright, let's do it then |
|
There's one last thing to do: remove |
|
@guillermoaguilar : before proceeding with the removal of |
|
Yes sorry for the silence.
In the rearrangement of documentation I've already removed it. But I haven't merge that yet. Leave that to me. |
well its' not so easy: that demo was already broken by #161 : ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[7], line 1
----> 1 assert np.isclose(res.parameter_estimate['lambda'], lambda_, atol=1e-4)
AttributeError: 'Result' object has no attribute 'parameter_estimate'I think that the demos need to be checked again. I don't think it is a good idea for me to fix it in this PR, given that the thing is already broken... |
Yes, it should be an alias for _MAP. |
|
Then I guess I should merge the documentation changes and see what's broken. |
6763a71 to
822c5eb
Compare
|
Documentation is merged, and yes it's broken in all the examples that use As I wrote I think it has to be an alias, it doesn't make sense to change the docs, it makes it more obscure and complicated for the user. |
|
OK, I made |
Get rid of configuration options that are not used in the code.
This PR also removes the configuration option
stimulus_range. For a rationale, see #143The stimulus range is now only inferred from the data. Note that
width_min, i.e. the lower bound of the width prior, can still be manually set. I am not sure if we should get rid of this too...Fixes #145