(self)
| 231 | return np.array(results) |
| 232 | |
| 233 | def show(self): |
| 234 | if self._tree==None: |
| 235 | raise NotFittedError("Estimator not fitted, call `fit` first") |
| 236 | |
| 237 | #plot the tree using matplotlib |
| 238 | import treePlotter |
| 239 | treePlotter.createPlot(self._tree) |
| 240 | |
| 241 | |
| 242 | class NotFittedError(Exception): |