Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
sklearn.manifold.TSNE TypeError: ufunc 'multiply' no contenía un bucle con tipos coincidentes de firma (dtype('<U32'), dtype('<U32'))...)

sklearn.manifold.TSNE el código de ejemplo sklearn.manifold.TSNE de la documentación de sklearn, pero recibí el error descrito en el título de las preguntas.

Ya intenté actualizar mi versión de sklearn a la última (mediante !pip install -U scikit-learn ) (scikit-learn=1.0.1). Sin embargo, el problema sigue ahí.

¿Alguien sabe cómo arreglarlo?

  • pitón = 3.7.12
  • sklearn = 1.0.1

Código de ejemplo:

 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) X_embedded.shape

La línea de error ocurrió en:

 X_embedded = TSNE(n_components=2, learning_rate='auto', init='random').fit_transform(X)

Mensaje de error:

 UFuncTypeError: ufunc 'multiply' did not contain a loop with signature matching types (dtype('<U32'), dtype('<U32')) -> dtype('<U32')
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Eliminar learning_rate='auto' resolvió mi problema.

Gracias comentario de @FlaviaGiammarino!!

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!