source: orange/docs/reference/rst/code/reliability-run.py @ 9823:7f9c3f3c6474

Revision 9823:7f9c3f3c6474, 362 bytes checked in by lanumek, 2 years ago (diff)

Changed names of data sets (table replaced with data or name of the data set).

Line 
1import Orange
2housing = Orange.data.Table("housing.tab")
3
4knn = Orange.classification.knn.kNNLearner()
5reliability = Orange.evaluation.reliability.Learner(knn)
6
7results = Orange.evaluation.testing.cross_validation([reliability], housing)
8
9for estimate in results.results[0].probabilities[0].reliability_estimate:
10    print estimate.method_name, estimate.estimate
Note: See TracBrowser for help on using the repository browser.