source: orange/Orange/doc/modules/logreg2.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 384 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.