Skip to content
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

Can't instantiate abstract class with abstract methods #4

Open
sdwfrost opened this issue Sep 16, 2020 · 4 comments
Open

Can't instantiate abstract class with abstract methods #4

sdwfrost opened this issue Sep 16, 2020 · 4 comments

Comments

@sdwfrost
Copy link

Using Python 3.8.2 on Ubuntu 20.04, running the demo gives me:

Traceback (most recent call last):
  File "demo_coal_1d.py", line 63, in <module>
    demo()
  File "demo_coal_1d.py", line 43, in demo
    model = build_model(events, domain)
  File "demo_coal_1d.py", line 37, in build_model
    model = VBPP(feature, kernel, domain, q_mu, q_S, beta0=beta0, num_events=num_events)
TypeError: Can't instantiate abstract class VBPP with abstract methods maximum_log_likelihood_objective
@st--
Copy link
Owner

st-- commented Nov 9, 2020

Hi @sdwfrost, thanks for bringing this to my attention! I've now fixed this issue (and a couple others that prevented compatibility with the GPflow 2 release) in #5. Please let me know if you encounter any other issues :) (And if you'd be willing to tell me, I'd be super curious what you're planning to do with this code!)

@sdwfrost
Copy link
Author

sdwfrost commented Nov 9, 2020

Thanks! Works great now. I have a few applications in mind. One of them is to do large-scale inference of changes in effective population size from phylogenetic data (see e.g. Palacios and Minin 2013.

@st--
Copy link
Owner

st-- commented Nov 9, 2020

Ah cool, I'd be happy to chat some more if you'd like - would love to have more of my code actually used by others (and happy to help in the process). The premonition project linked on your account looks really interesting too! You could join us on the GPflow slack (invite link), my account there is stj.

@st--
Copy link
Owner

st-- commented Nov 9, 2020

(In a couple of other Cox process papers I've seen, the authors seem to not fit properly the VBPP model that they compare against. In any case there's probably a couple of things I'd do differently now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants