Changeset 9143:76d3d7679efd in orange
 Timestamp:
 10/29/11 19:18:30 (2 years ago)
 Branch:
 default
 Convert:
 1664ba779a290ec1d4e776494bebb8bdaeba30fe
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

orange/Orange/evaluation/reliability.py
r9131 r9143 492 492 493 493 # Calculate the bagging variance 494 bagged_values = [c(example, Orange.core.GetValue).value for c in self.classifiers ]494 bagged_values = [c(example, Orange.core.GetValue).value for c in self.classifiers if c is not None] 495 495 496 496 k = sum(bagged_values) / len(bagged_values) … … 570 570 571 571 LCV = LCVer / LCVdi if LCVdi != 0 else 0 572 572 if math.isnan(LCV): 573 LCV = 0.0 573 574 return [ Estimate(LCV, ABSOLUTE, LCV_ABSOLUTE) ] 574 575 … … 682 683 new_examples = examples.translate(new_domain) 683 684 684 X, _, _ = examples.to_numpy()685 X, _, _ = new_examples.to_numpy() 685 686 example_avg = numpy.average(X, 0) 686 687
Note: See TracChangeset
for help on using the changeset viewer.