cnellington / Contextualized

An SKLearn-style toolbox for estimating and analyzing models, distributions, and functions with context-specific parameters.
http://contextualized.ml/
GNU General Public License v3.0
61 stars 7 forks source link

Base Predictors #89

Open cnellington opened 2 years ago

cnellington commented 2 years ago

Allow users to specify a base predictor that predicts population, cluster, or cohort models, so that contextualized models only learn context-specific effects not represented in the base predictor.

Base predictor interface for regression and easy:

BasePredictor:
  predict_params(self, C): returns a numpy array of parameters matching the output shape of _params_reshape

Base predictions and context-specific predictions should be summed in ContextualizedRegressionBase.forward

Resolve #87 before addressing this issue for dags

blengerich commented 1 year ago

87 is closed now; has this issue also been finished?

blengerich commented 1 year ago

@cnellington Should we close this issue?

cnellington commented 1 year ago

Not yet, it seems like we never finished implementing this for the dags.