Python

Regressions Logistique

# -*- coding: utf-8 -*-
'''
Created on Wed Jan 16 10:23:46 2019

@author: K
https://pythonfordatascience.org/logistic-regression-python/
'''
# module imports
from patsy import dmatrices
import pandas as pd
from sklearn.linear_model import LogisticRegression
import statsmodels.discrete.discrete_model as sm

# read in the data & create matrices
df = pd.read_csv(r"C:\Users\K\Desktop\AI\Modèles\RegressionsLogistique\binary.csv", engine='python')

Pages

Subscribe to Python