Coder Social home page Coder Social logo

Comments (8)

linqiaozhi avatar linqiaozhi commented on June 8, 2024

Hi Leland, thanks for trying out FIt-SNE! While our interpolation approach can be extended to embedding in higher dimensions (at the cost of using more interpolation points), dimensions >2 have not been implemented. In other words, the no_dims parameter can only take 1 or 2.

You are absolutely right that this is not clear in the documentation, and in the next update to the python package I will change it to give an error if any number other than 1 or 2 are passed in. Thanks for finding this...it can be confusing to people.

from fit-sne.

dkobak avatar dkobak commented on June 8, 2024

I can do it for the python wrapper that I provided. Not sure about the other python interface.

from fit-sne.

linqiaozhi avatar linqiaozhi commented on June 8, 2024

Thanks @dkobak, that would be great.

@lmcinnes, just for some context, there is a Python wrapper (fast_tsne.py) in this repository that @dkobak provided which uses the same binary as the R and MATLAB wrappers. The PyPI implementation you are using does not yet implement the most recent commits to this repo (including the preliminary results of our multithreading), as I plan to update the PyPI package once we finish the multithreading in a week or so.

from fit-sne.

lmcinnes avatar lmcinnes commented on June 8, 2024

from fit-sne.

linqiaozhi avatar linqiaozhi commented on June 8, 2024

Our approach is O(N), but the constant scales exponentially in embedding dimension. For 3-dimensional, there are Fast Multipole Methods that would work well here, but for even higher dimensions a different approach entirely would probably be required.

Most applications we are aware of for t-SNE are 2-dimensional, so we did not try 3-dimensional or higher...so I'm afraid I don't have any actual benchmarks I could share.

from fit-sne.

dkobak avatar dkobak commented on June 8, 2024

@linqiaozhi I thought, maybe it's easier to add a check to the C++ code and let it exit with an error if no_dims>2 for the FFT method. Can Barnes-Hut handle any no_dims?

from fit-sne.

lmcinnes avatar lmcinnes commented on June 8, 2024

from fit-sne.

linqiaozhi avatar linqiaozhi commented on June 8, 2024

@dkobak I agree, adding a check to the C++ code would be best. And yes, BH can handle any no_dims.

@lmcinnes Thanks again for letting us know about this issue!

from fit-sne.

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.