(self, X, y)
| 37 | self.trees = [] |
| 38 | |
| 39 | def fit(self, X, y): |
| 40 | self._setup_input(X, y) |
| 41 | if self.max_features is None: |
| 42 | self.max_features = int(np.sqrt(X.shape[1])) |
| 43 | else: |
| 44 | assert X.shape[1] > self.max_features |
| 45 | self._train() |
| 46 | |
| 47 | def _train(self): |
| 48 | for tree in self.trees: |
nothing calls this directly
no test coverage detected