apachecn / apachecn/sklearn-doc-zh

TSNE示例代码有问题,报错

Open
#435 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
5.2k
Forks
1.5k
Avg merge
7m
Merged PRs (30d)
1

Description

import numpy as np
from sklearn.manifold import TSNE
X = np.array([[0, 0, 0], [0, 1, 1], [1, 0, 1], [1, 1, 1]])
X_embedded = TSNE(n_components=2, learning_rate='auto', init='random').fit_transform(X)

error:TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided TSNE example using the stated NumPy and scikit-learn imports, then locate the corresponding example in the documentation. Identify why it raises the reported TypeError and update the example so it runs successfully, verifying the corrected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
documentation, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.