source: orange/orange/doc/modules/logreg2.py @ 7652:677f449144fd

Revision 7652:677f449144fd, 384 bytes checked in by ales_erjavec <ales.erjavec@…>, 3 years ago (diff)
Line 
1# Description: Demonstrates the use of logistic regression
2# Category:    classification, logistic regression
3# Classes:     LogRegLearner
4# Uses:        adult_sample.tab
5
6import orange, orngLR
7
8data = orange.ExampleTable("../datasets/adult_sample.tab")
9lr = orngLR.LogRegLearner(data, removeSingular = 1)
10
11for ex in data[:5]:
12    print ex.getclass(), lr(ex)
13   
14orngLR.printOUT(lr) 
Note: See TracBrowser for help on using the repository browser.