Git Product home page Git Product logo

Comments (15)

bli25wisc avatar bli25wisc commented on May 31, 2024 3

@DmitryUlyanov, I have encountered this warning message as well. And as @dietmar said, TSNE finished normally. Could you let me know if this message actually affect the TSNE results?

Thanks!

from multicore-tsne.

madkoppa avatar madkoppa commented on May 31, 2024

I checked out an earlier version, the commit with the merge of pull request #31 and it works fine. So somewhere in between then and now this error has arisen. It is usually happens between 200-1000 iterations if that helps at all.

EDIT: Also the number of cores does not affect this bug, it still happens even with 1.

from multicore-tsne.

DmitryUlyanov avatar DmitryUlyanov commented on May 31, 2024

I will try to handle this next week.

from multicore-tsne.

asanakoy avatar asanakoy commented on May 31, 2024

It happens to me sometimes as well. When the perplexity is high enough.

from multicore-tsne.

dietmar avatar dietmar commented on May 31, 2024

I also see this error message (thousands of times), but the TSNE computation actually seems to finish normally nevertheless.

@asanakoy can you please elaborate? Are you saying that you can successfully avoid the error by setting the perplexity parameter appropriately?

from multicore-tsne.

DmitryUlyanov avatar DmitryUlyanov commented on May 31, 2024

Hi, fixed a bug here f5c5be1#diff-f8b3cce0b3183b4e02d913d9eb933c6eR210

Can you please do git pull and check if it solved the issue?

from multicore-tsne.

asanakoy avatar asanakoy commented on May 31, 2024

@DmitryUlyanov, thank you. I will write you back when I try the update.

from multicore-tsne.

zeneofa avatar zeneofa commented on May 31, 2024

@DmitryUlyanov I have reinstalled after doing a git pull, but I still get that message. If it helps, my matrix is very sparse [sparsity = 0.012031, Dimensions are: 2292 rows, 514 columns] and the perplexity I am using is 5.

from multicore-tsne.

AlexandreLaborde avatar AlexandreLaborde commented on May 31, 2024

Hello @DmitryUlyanov,
I'm trying to use the TSNE and I get the same error!
I have a 136500x1120 (sparsity = 0.001129) dataset and I am trying to run it this settings: using 48 cores, no_dims = 2, perplexity = 30.000000, and theta = 0.500000

TSNE builds the tree no problem, and then and a random iteration the 'No, no this should not happen' happens and never goes away.

I tested generating a random matrix of the same size and it works until the end without errors and running a subsection of my data (1000x1120) causes the same problem.

Are there any updates related to this issue?

So @Fistr @DmitryUlyanov Is this a warning or an error ? Because it manages to run to the end and do all iterations but I don't know if I should trust the data.

Thanks!

from multicore-tsne.

AlexandreLaborde avatar AlexandreLaborde commented on May 31, 2024

Adding a very small amount of noise to the data seems to solve the issue.
Maybe it's just related to the amount of zeros in the dataset.

from multicore-tsne.

asanakoy avatar asanakoy commented on May 31, 2024

@DmitryUlyanov, f5c5be1#diff-f8b3cce0b3183b4e02d913d9eb933c6eR210 didn't fix it.

I believe the problem is in numerical instability when the point is being checked to lie in the bounds of the child splittree.cpp#L149- > splittree.cpp#L110.

from multicore-tsne.

jayant91089 avatar jayant91089 commented on May 31, 2024

Hi @DmitryUlyanov Just encountered this issue as well. Adding noise, as suggested by @AlexandreLaborde mat_noisy = mat + np.random.normal(loc=0,scale=0.001) didn't help in my case.

from multicore-tsne.

AlexandreLaborde avatar AlexandreLaborde commented on May 31, 2024

Hi @jayant91089, I just want to let you know that I added the noise exactly in the same way and with the same scale.
My dataset has a lot of padding made by adding zeros, do you have a lot of zeros as well?

from multicore-tsne.

rmitsch avatar rmitsch commented on May 31, 2024

Can confirm, happens to me too. If this is actually irrelevant, an option to suppress warnings instead of printing them would be nice.

from multicore-tsne.

mrgloom avatar mrgloom commented on May 31, 2024

I get same warning when cloned from latest master, when use 'MulticoreTSNE' on default settings:

    tsne = MulticoreTSNE(n_jobs=multiprocessing.cpu_count(), random_state=0)
    Xpr = tsne.fit_transform(X)

from multicore-tsne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.