source: orange-bioinformatics/docs/reference-html/geo_gds6.py @ 1662:427f1876f3e6

Revision 1662:427f1876f3e6, 369 bytes checked in by mitar, 2 years ago (diff)

Revamped documentation.

Line 
1import obiGEO
2import orange
3import orngTest
4import orngStat
5
6gds = obiGEO.GDS("GDS2960")
7data = gds.getdata(sample_type="disease state", transpose=True)
8print "Samples: %d, Genes: %d" % (len(data), len(data.domain.attributes))
9
10learners = [orange.LinearLearner]
11results = orngTest.crossValidation(learners, data, folds=10)
12print "AUC = %.3f" % orngStat.AUC(results)[0]
Note: See TracBrowser for help on using the repository browser.