source: orange/docs/reference/rst/code/reliability-run.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 358 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1import Orange
2table = 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], table)
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.