logistic-regression Questions

3

Solved

I am trying to optimize a logistic regression function in scikit-learn by using a cross-validated grid parameter search, but I can't seem to implement it. It says that Logistic Regression does no...

9

Solved

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 co...
Preponderance asked 13/9, 2019 at 13:24

5

Solved

I attempt to solve this problem 6 in this notebook. The question is to train a simple model on this data using 50, 100, 1000 and 5000 training samples by using the LogisticRegression model from skl...
Crinkumcrankum asked 24/1, 2016 at 4:13

1

I am trying to understand how the best coefficients are calculated in a logistic regression cross-validation, where the "refit" parameter is True. If I understand the docs correctly, the best coef...

4

I need to run a logistic regression on a relatively large data frame with 480.000 entries with 3 fixed effect variables. Fixed effect var A has 3233 levels, var B has 2326 levels, var C has 811 lev...
Brubaker asked 20/2, 2015 at 16:47

2

Solved

I have a data-set that contains among other variables the time-stamp of the transaction in the format 26-09-2017 15:29:32. I need to find possible correlations and predictions of the sales (l...
Semidiurnal asked 26/9, 2017 at 14:15

3

Solved

Just like we use the Normal Equation to find out the optimum theta value in Linear Regression, can/can't we use a similar formula for Logistic Regression ? If not, why ? I'd be grateful if could so...
Tallent asked 23/6, 2016 at 16:36

1

Solved

I am trying code from this page. I ran up to the part LR (tf-idf) and got the similar results After that I decided to try GridSearchCV. My questions below: 1) #lets try gridsearchcv #https://www.ka...
Homosexual asked 7/12, 2021 at 17:4

5

Solved

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 = metrics.roc_curve(Y...
Ridinger asked 25/2, 2015 at 12:28

2

I am doing multiclass/multilabel text classification. I trying to get rid of the "ConvergenceWarning". When I tuned the max_iter from default to 4000, the warning is disappeared. However, my mode...

3

Solved

I'm wondering how can I get odds ratio from a fitted logistic regression models in python statsmodels. >>> import statsmodels.api as sm >>> import numpy as np >>> X = np...
Multiplex asked 5/6, 2016 at 22:26

2

Solved

I did a logistic regression: EW <- glm(everwrk~age_p + r_maritl, data = NH11, family = "binomial") Moreover, I want to predict everwrk for each level of r_maritl. r_maritl has the followin...
Bascio asked 20/8, 2017 at 16:50

4

Solved

I am a complete beginner in machine learning and coding in python, and I have been tasked with coding logistic regression from scratch to understand what happens under the hood. So far I have coded...
Ranger asked 22/11, 2017 at 15:4

5

Solved

I'm using scikit to perform a logistic regression on spam/ham data. X_train is my training data and y_train the labels('spam' or 'ham') and I trained my LogisticRegression this way: classifier = ...

4

Solved

I trained the logistic model using the following, from breast cancer data and ONLY using one feature 'mean_area' from statsmodels.formula.api import logit logistic_model = logit('target ~ mean_are...

3

Step 0: Problem description I have a classification problem, ie I want to predict a binary target based on a collection of numerical features, using logistic regression, and after running a Princi...

3

Solved

After using sklearn.linear_model.LogisticRegression to fit a training data set, I would like to obtain the value of the cost function for the training data set and a cross validation data set. Is ...

1

How do I fit a ordinal (3 levels), logistic mixed effect model, in R? I guess it would be like a glmer except with three outcome levels. data structure patientid Viral_load Adherence audit_score vi...
Chavaree asked 19/5, 2021 at 17:0

1

Having an issue while running a logistic regression model using caret::train(). LR = caret::train(Satisfaction ~., data= log_train, method = "glm", preProcess = c("scale"), fami...
Ambiguous asked 25/10, 2020 at 1:56

3

Solved

I am currently trying to create a binary classification using Logistic regression. Currently I am in determining the feature importance. I already did the data preprocessing (One Hot Encoding and s...
Consultant asked 12/1, 2021 at 10:23

2

Solved

I need to know how to return the logistic regression coefficients in such a manner that I can generate the predicted probabilities myself. My code looks like this: lr = LogisticRegression() lr.fi...
Chapa asked 24/9, 2013 at 23:38

6

Solved

I have applied Logistic Regression on train set after splitting the data set into test and train sets, but I got the above error. I tried to work it out, and when i tried to print my response vecto...

2

Solved

I have fit a logistic regression model to my data. Imagine, I have four features: 1) which condition the participant received, 2) whether the participant had any prior knowledge/background about th...

1

Solved

I have been trying to work with the shap package. I want to determine the shap values from my logistic regression model. Contrary to the TreeExplainer, the LinearExplainer requires a so-called mask...
Electrocardiograph asked 10/3, 2021 at 8:20

3

Solved

Classification problems, such as logistic regression or multinomial logistic regression, optimize a cross-entropy loss. Normally, the cross-entropy layer follows the softmax layer, which produces p...

© 2022 - 2024 — McMap. All rights reserved.