patsy Questions

2

I'm working on an application that is a "predictive-model-as-a-service", structured as follows: train a model offline periodically upload model parameters to a "prediction server" the prediction ...
Desirous asked 30/4, 2016 at 18:51

3

Solved

I want to evaluate the residuals: (y-hat y). I know how to do that: df = pd.read_csv('myFile', delim_whitespace = True, header = None) df.columns = ['column1', 'column2'] y, X = ps.dmatrices('col...
Varian asked 15/2, 2016 at 19:2

1

I'm working with statsmodels using R-style formulas with the Patsy package and receiving an error I can't make heads or tails of, any tips or tricks would be greatly appreciated. PatsyError: Nu...
Lovash asked 7/11, 2019 at 0:29

2

Logistic regression model using statesmodels: log_reg = st.logit(formula = 'label ~ pregnant + glucose + bp + insulin + bmi + pedigree + age', data=pima).fit() is there any short way of writing ...
Feodor asked 20/2, 2016 at 2:38

2

I am trying to use Patsy (with sklearn, pandas) for creating a simple regression model. The R style formula creation is a major draw. My data contains a field called 'ship_city' which can have any...
Canary asked 2/12, 2015 at 6:2

1

Solved

Patsy's power doesn't allow for negative integers, so, if we have some series data X, patsy.dmatrices('X + X**(-1)', X) returns an error. How would I add the reciprocal of X to such a patsy form...
Carlotacarlotta asked 9/9, 2015 at 15:56

1

Solved

I'm following this first example in statsmodels tutorial: http://statsmodels.sourceforge.net/devel/ How do I specify not to use constant term for linear fit in ols? # Fit regression model (using...
Beanfeast asked 4/4, 2016 at 18:13

1

Solved

I'm working on teaching myself a bit of logistic regression using python. I'm trying to apply the lessons in the walkthrough here to the small dataset in the wikipedia entryhere. Something doesn't...
1

© 2022 - 2024 — McMap. All rights reserved.