Orange Data Mining and Logistic Regression

0 votes
For logistic regression in R can I get the list of significant factors and other details as we get in R ? In R when we run glm function we get all the details like coefficient and whether the independent variable is significant or not. Can we do similar thing in Orange?
Mar 5 in Machine Learning by Nandini
• 5,480 points
204 views

1 answer to this question.

0 votes

A statistical classification method that fits data to a logistic function is known as logistic regression. Orange adds features to the approach such as stepwise variable selection and handling of constant variables and singularities.
The code below will help you understand a few things:

import Orange
data = Orange.data.Table("titanic")
log_reg = Orange.classification.logreg.LogRegLearner(data)

# compute classification accuracy

correct = 0.0
for feature in titanic:

    if log_reg(feature) == feature.getclass():

        correct += 1

print "Classification accuracy:", correct / len(data)
print Orange.classification.logreg.dump(log_reg)

Output

Classification accuracy: 0.778282598819

class attribute = survived
class values = <no, yes>

      Feature       beta  st. error     wald Z          P OR=exp(beta)

    Intercept      -1.23       0.08     -15.15      -0.00
 status=first       0.86       0.16       5.39       0.00 2.35e0
status=second      -0.16       0.18      -0.91       0.36 8.51e-1
 status=third      -0.92       0.15      -6.12       0.00 3.98e-1
    age=child       1.06       0.25       4.30       0.00 2.89e0
   sex=female       2.42       0.14      17.04       0.00 1.12e1

This is taken from the orange 2.7 documentation. Hope this helps to answer your question.

answered Mar 15 by Dev
• 6,000 points

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Assumptions of Naïve Bayes and Logistic Regression

There are very few difference between Naive ...READ MORE

answered Feb 7 in Machine Learning by Nandini
• 5,480 points
57 views
0 votes
1 answer
0 votes
1 answer

Logistic Regression Example

Logistic Regression often referred to as the ...READ MORE

answered Jul 19, 2018 in Data Analytics by CodingByHeart77
• 3,720 points
654 views
0 votes
1 answer
0 votes
0 answers

How to calculate accuracy in a logistic regression model in python?

What accuracy score is considered a good ...READ MORE

Jul 30, 2019 in Python by Waseem
• 4,540 points
1,316 views
0 votes
1 answer

Can we use Normal Equation for Logistic Regression ?

Well not likely,  only one discriminative method ...READ MORE

answered Feb 24 in Machine Learning by Nandini
• 5,480 points
192 views
0 votes
1 answer

DBSCAN algorithm and clustering algorithm for data mining

You can use any distance function with ...READ MORE

answered Mar 4 in Machine Learning by Dev
• 6,000 points
223 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP