You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## flag is true
X = df[['age', 'gender']]
X = pd.get_dummies(X).values
y = df['treatment']
y = y.values
model = LogisticRegression().fit(X, y)
for column, coef in zip(['age', 'gender'], model.coef_[0]):
print(f'{column}: {coef}')
print('intercept: ', model.intercept_[0])
ここは間違いです