Skip to content

Commit cdcc372

Browse files
authored
FIX correct shape assignment for 3D data (#76)
1 parent 410cd6e commit cdcc372

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sklearn/tree/_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _fit(
292292
)
293293

294294
# Determine output settings
295-
n_samples, self.n_features_in_ = X.shape
295+
n_samples, self.n_features_in_ = X.shape[0], X.shape[1]
296296

297297
# Do preprocessing if 'y' is passed
298298
is_classification = False

0 commit comments

Comments
 (0)