Giter Club home page Giter Club logo

Comments (2)

jundongl avatar jundongl commented on August 19, 2024

It happens because your matrix is too large that cannot be fit into the memory.

from scikit-feature.

tiagofrepereira2012 avatar tiagofrepereira2012 commented on August 19, 2024

Hi, I'm facing the exactly the same issue.

But the issue is weird, because the same code with the same data crashes in my Ubuntu 16.04 LTS with 64GB of RAM, but it runs in my MacOSX with 16GB of RAM.

I have everything set using conda.
The only difference is the numpy version. In the macosx I have numpy 1.11 and in the ubuntu 16.04 I have numpy 1.12.

  File "./bin/plot_tsne_one_file.py", line 19, in <module>
    sys.exit(context_experiments.script.plot_tsne_one_file.main())
  File "/home/tiago-ttt/Documents/redmine/context_experiments/context_experiments/script/plot_tsne_one_file.py", line 126, in main
    fig = plot_per_attribute(file_name, seed, perplexity, learning_rate, 200, device, "id")
  File "/home/tiago-ttt/Documents/redmine/context_experiments/context_experiments/script/plot_tsne_one_file.py", line 83, in plot_per_attribute
    projected_data = model.fit_transform(data)
  File "/home/tiago-ttt/miniconda3/envs/context_py27/lib/python2.7/site-packages/sklearn/manifold/t_sne.py", line 884, in fit_transform
    embedding = self._fit(X)
  File "/home/tiago-ttt/miniconda3/envs/context_py27/lib/python2.7/site-packages/sklearn/manifold/t_sne.py", line 730, in _fit
    squared=True)
  File "/home/tiago-ttt/miniconda3/envs/context_py27/lib/python2.7/site-packages/sklearn/metrics/pairwise.py", line 1240, in pairwise_distances
    return _parallel_pairwise(X, Y, func, n_jobs, **kwds)
  File "/home/tiago-ttt/miniconda3/envs/context_py27/lib/python2.7/site-packages/sklearn/metrics/pairwise.py", line 1083, in _parallel_pairwise
    return func(X, Y, **kwds)
  File "/home/tiago-ttt/miniconda3/envs/context_py27/lib/python2.7/site-packages/sklearn/metrics/pairwise.py", line 245, in euclidean_distances
    distances = safe_sparse_dot(X, Y.T, dense_output=True)
  File "/home/tiago-ttt/miniconda3/envs/context_py27/lib/python2.7/site-packages/sklearn/utils/extmath.py", line 189, in safe_sparse_dot
    return fast_dot(a, b)
MemoryError

from scikit-feature.

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.