Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from .sccs import NeuralSCCS
- from .log_linear_hawkes import LogLinearHawkes, StochasticLogAdditiveHawkes
- __all__ = ["NeuralSCCS", "LogLinearHawkes", "StochasticLogLinearHawkes"]
- def get_model(model, **kwargs):
- if model == 'N-SCCS':
- model = NeuralSCCS(**kwargs)
- elif model == 'MSCCS':
- kwargs["mlp_config"] = {"n_output": kwargs["n_outcomes"]}
- model = NeuralSCCS(**kwargs)
- elif model == "LLH":
- model = LogLinearHawkes(**kwargs)
- elif model == "SLLH":
- model = StochasticLogAdditiveHawkes(include_ddi=False, **kwargs)
- elif model == "SLA^2H":
- model = StochasticLogAdditiveHawkes(include_ddi=True, **kwargs)
- else:
- raise NotImplementedError()
- return model
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement