Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 67c7984

Browse filesBrowse files
authored
MAINT make sure that x0 is 1D when passed to minimize (#23659)
1 parent 55dfde5 commit 67c7984
Copy full SHA for 67c7984

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎sklearn/neighbors/_nca.py

Copy file name to clipboardExpand all lines: sklearn/neighbors/_nca.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def fit(self, X, y):
229229
# (n_samples, n_samples)
230230

231231
# Initialize the transformation
232-
transformation = self._initialize(X, y, init)
232+
transformation = np.ravel(self._initialize(X, y, init))
233233

234234
# Create a dictionary of parameters to be passed to the optimizer
235235
disp = self.verbose - 2 if self.verbose > 1 else -1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.