About 242,000 results
Open links in new tab
  1. python logistic regression (beginner) - Stack Overflow

    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...

  2. python - Finding coefficients for logistic regression - Stack Overflow

    May 6, 2023 · I'm working on a classification problem and need the coefficients of the logistic regression equation. I can find the coefficients in R but I need to submit the project in python. How to get the

  3. logistic regression - Roc curve and cut off point. Python - Stack Overflow

    Feb 25, 2015 · I ran a logistic regression model and made predictions of the logit values. I used this to get the points on the ROC curve: from sklearn import metrics fpr, tpr, thresholds = …

  4. matplotlib - How to plot ROC curve in Python - Stack Overflow

    I am trying to plot a ROC curve to evaluate the accuracy of a prediction model I developed in Python using logistic regression packages. I have computed the true positive rate as well as the false …

  5. Logistic regression python solvers' definitions - Stack Overflow

    Jun 10, 2021 · I am using the logistic regression function from sklearn, and was wondering what each of the solver is actually doing behind the scenes to solve the optimization problem. Can someone …

  6. python - Controlling the threshold in Logistic Regression in Scikit ...

    Feb 25, 2015 · I know that in Logistic Regression it should be possible to know what is the threshold value for a particular pair of classes. Is it possible to know what the threshold value is in each of the …

  7. python - How to find the importance of the features for a logistic ...

    82 I have a binary prediction model trained by logistic regression algorithm. I want know which features (predictors) are more important for the decision of positive or negative class. I know there is coef_ …

  8. logistic regression - calculating odds ratio in python - Stack Overflow

    Apr 4, 2020 · Checking online in here and here I see there are two ways to estimate odds ratio in python but the results are different. First way: import scipy.stats as stats import pandas as pd df=pd.DataFra...

  9. How to use weights in a logistic regression - Stack Overflow

    Jul 5, 2020 · I want to calculate (weighted) logistic regression in Python. The weights were calculated to adjust the distribution of the sample regarding the population. However, the results don´t change if I use

  10. logistic regression - How to include interaction variables in logit ...

    Feb 4, 2021 · I am working on Logistic regression model and I am using statsmodels api's logit. I am unable to figure out how to feed interaction terms to the model.