Skip to content

Commit

Permalink
Revert "Remove odd duplications"
Browse files Browse the repository at this point in the history
This reverts commit 7065060.
  • Loading branch information
eddiebergman committed Aug 18, 2022
1 parent 75d492e commit 59ef9a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -46,7 +46,7 @@ Following that we'll tell you about how you can test your changes locally and th
# If you missed the --recurse-submodules arg during clone or need to install the
# submodule manually, then execute the following line:
#
# git submodule update --init --recursive
# git submodule udate --init --recursive

# ... Alternatively, if you would prefer a more manual method
# Show all the available branches with a * beside your current one
Expand Down
Expand Up @@ -130,6 +130,9 @@ def iterative_fit(self, X, y, n_iter=2, refit=False):
if y.ndim == 2 and y.shape[1] == 1:
y = y.flatten()

if y.ndim == 2 and y.shape[1] == 1:
y = y.flatten()

self.estimator.fit(X, y)

if (
Expand Down
3 changes: 3 additions & 0 deletions autosklearn/pipeline/components/regression/random_forest.py
Expand Up @@ -107,6 +107,9 @@ def iterative_fit(self, X, y, n_iter=1, refit=False):
if y.ndim == 2 and y.shape[1] == 1:
y = y.flatten()

if y.ndim == 2 and y.shape[1] == 1:
y = y.flatten()

self.estimator.fit(X, y)
return self

Expand Down

0 comments on commit 59ef9a3

Please sign in to comment.