Skip to content

Commit

Permalink
Remove odd duplications
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Aug 16, 2022
1 parent a7f73f1 commit 7065060
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
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 udate --init --recursive
# git submodule update --init --recursive

# ... Alternatively, if you would prefer a more manual method
# Show all the available branches with a * beside your current one
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ 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: 0 additions & 3 deletions autosklearn/pipeline/components/regression/random_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ 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 7065060

Please sign in to comment.