source: orange/Orange/testing/regression/tests_20/modules_logreg2.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 384 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.