Cameron Davidson-Pilon
Cameron Davidson-Pilon
Hi @anyang-kevin, try `"C(gender, contr.treatment(base='female'))"`
What version of formulaic do you have? You can you use `import formulaic; print(formulaic.__version__)` to see
Also, don't put quotes around `gender`, it should be: `formula="C(gender, contr.treatment(base='female'))")`
Try upgrading formualic to 0.5.2, `pip install formulaic==0.5.2`
You'll have to use pandas to manipulate the dataframe prior to providing it to `.fit` then. Ex: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.get_dummies.html
Hi @ewulczyn 👋 I think this makes sense. Can you confirm which version of pandas you are using?
> And thoughts on moving it to static classes I'm open to this. As you know, current support for sklearn is limited because of these dynamic classes. Can you describe...
It's intention is to create an API that a) resembles and b) is compatible with scikit-learn. That is, have classes that behave like, for example, sklearn.linear_model.LinearRegression but contain a *lifelines*...
> The part that gets me a bit confused is that lifelines returns a prob value for every time T in the timeline - while most PMMLs I see for...
👍 this is useful. I never tested this with a scope, but now I really would like to track down this bug.