Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. from .sccs import NeuralSCCS
  2. from .log_linear_hawkes import LogLinearHawkes, StochasticLogAdditiveHawkes
  3.  
  4. __all__ = ["NeuralSCCS", "LogLinearHawkes", "StochasticLogLinearHawkes"]
  5.  
  6.  
  7. def get_model(model, **kwargs):
  8.  
  9. if model == 'N-SCCS':
  10. model = NeuralSCCS(**kwargs)
  11. elif model == 'MSCCS':
  12. kwargs["mlp_config"] = {"n_output": kwargs["n_outcomes"]}
  13. model = NeuralSCCS(**kwargs)
  14. elif model == "LLH":
  15. model = LogLinearHawkes(**kwargs)
  16. elif model == "SLLH":
  17. model = StochasticLogAdditiveHawkes(include_ddi=False, **kwargs)
  18. elif model == "SLA^2H":
  19. model = StochasticLogAdditiveHawkes(include_ddi=True, **kwargs)
  20. else:
  21. raise NotImplementedError()
  22.  
  23. return model
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement