-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
allow pymc3.Data() to support both int and float input data #3816
Conversation
…nput data (previously all input data was coerced to float) WIP for pymc-devs#3813
Codecov Report
@@ Coverage Diff @@
## master #3816 +/- ##
==========================================
- Coverage 90.78% 90.76% -0.02%
==========================================
Files 133 133
Lines 20560 20570 +10
==========================================
+ Hits 18665 18671 +6
- Misses 1895 1899 +4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hottwaj -- looks like a great start!
Just a thought a first glance: I tend to think that np.int8 and np.int16 should be accepted (or at least cast to np.int32). Otherwise, in the current implementation these will raise a ValueError('Unsupported type')
, while in fact they are types we want to support. Makes sense?
And I'm sure @rpgoldman will have valuable feedback!
We should add tests to |
Thanks guys, will make those changes when I have time over the next few days. |
Hey @hottwaj and @rpgoldman ! Do you know where we are on this? Not trying to be pushy, just being curious -- 😄 |
Hi sorry I'm on holiday this week and will be a bit more pushed for time
for next couple of weeks once I'm back at work. Best assume it might be a
few more weeks before I can finish off. Hope that's OK, thanks!
…On Thu, 12 Mar 2020, 19:34 Alexandre ANDORRA, ***@***.***> wrote:
Hey @hottwaj <https://github.com/hottwaj> and @rpgoldman
<https://github.com/rpgoldman> ! Do you know where we are on this? Not
trying to be pushy, just being curious -- 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3816 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABK6JBNGSVGMQUYLN7VAKQLRHETLRANCNFSM4K4BZMNA>
.
|
Hi @hottwaj ! Do you think you'll be able to find some time to finish up this PR? Or do you need me to take over? |
Hi Alex, sorry for not making any further progress... Between work and childcare things have been difficult since the UK went into lockdown! I am still a bit too busy to set aside time for this in the short term, feel free to take over and I hope the little I did was useful... If you end up parking it for a bit longer let me know and I can hopefully revisit in another couple of weeks. Thanks! |
I completely understand @hottwaj, the last couple of weeks have indeed been difficult. I'll take this PR over then, and try to push it through for 3.9 😉 |
Great thanks, and hopefully I said this before but thanks for your work on this awesome tool! |
Closing in favor of #3925 |
Previously all input data was coerced to float when passed to pymc3.Data()
Attached changes implement this behaviour:
WIP for #3813