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

Cleanup API / models / simulators / estimators / unittests #130

Merged
merged 37 commits into from
Mar 7, 2022

Conversation

picciama
Copy link
Collaborator

@picciama picciama commented Mar 3, 2022

Changes

  • simulators removed
  • estimators standalone without models/estimators.
  • api restructured
  • added type hints everywhere in models, estimators, utils
  • cleanup of unitests

Fixes

#115

- model classes deleted
- use model_vars directly in estimator
- model_vars contains model from models/ submodule and can access its attributes
- duplicate param_bounds together with ProcessModel class deleted as it is obsolote now
- imports cleaned and fixed
- remove dependency of input_data and model
- move everything to model_vars
- debugging state
- fixed recursion error due to __setattr__ __getattr__ logic in pickle
- refactored model_vars -> modelContainer
- detached train/estimators from models/estimators
@picciama picciama self-assigned this Mar 3, 2022
@picciama picciama linked an issue Mar 4, 2022 that may be closed by this pull request
Copy link
Collaborator

@ilan-gold ilan-gold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A first pass, looking really strong though! The API is super clean - estimator gets a model and does its thing. Model can simulate data. Great!

batchglm/models/base_glm/estimator.py Outdated Show resolved Hide resolved
batchglm/models/base_glm/model.py Show resolved Hide resolved
batchglm/models/base_glm/model.py Outdated Show resolved Hide resolved
batchglm/models/base_glm/model.py Show resolved Hide resolved
batchglm/models/base_glm/model.py Show resolved Hide resolved
batchglm/train/numpy/base_glm/estimator.py Show resolved Hide resolved
batchglm/train/numpy/base_glm/estimator.py Show resolved Hide resolved
batchglm/train/numpy/base_glm/estimator.py Outdated Show resolved Hide resolved
batchglm/train/numpy/glm_nb/estimator.py Show resolved Hide resolved
batchglm/models/glm_nb/utils.py Show resolved Hide resolved
@picciama picciama merged commit f589348 into development Mar 7, 2022
@picciama picciama deleted the mp/integrate_simulator branch March 7, 2022 16:57
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

Successfully merging this pull request may close these issues.

print(test.model) throws RecursionError
2 participants