source: orange-bioinformatics/doc/modules/geo_gds6.py @ 913:9d28add50761

Revision 913:9d28add50761, 369 bytes checked in by blaz <blaz.zupan@…>, 5 years ago (diff)
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.