satwik77 / libnmf Goto Github PK
View Code? Open in Web Editor NEWOptimization and Regularization variants of Non-negative Matrix Factorization (NMF)
License: MIT License
Optimization and Regularization variants of Non-negative Matrix Factorization (NMF)
License: MIT License
MemoryError: Unable to allocate 696. MiB for an array with shape (9554, 9554) and data type float64
๏ผ
i use pycharm to run python code , maybe this is a memory problem about machine or IDE , BUT I want to advise , you can set a choice of the dtype = "float32" , so the users can run codes using a low machine .
BTW , my computer memory is 8GB , so i doubt it is the package prolem.
X = np.random.rand(10,11)
a = KNMF(X,rank = 4)
a.compute_factors(param = 0.5)
Traceback (most recent call last):
File "/home/esysss/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3398, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in <cell line: 1>
a.compute_factors(param = 0.5)
File "/home/esysss/.local/lib/python3.8/site-packages/libnmf/knmf.py", line 62, in compute_factors
self.update_w(A)
File "/home/esysss/.local/lib/python3.8/site-packages/libnmf/knmf.py", line 78, in update_w
AH = A.dot(self.H.T)
ValueError: shapes (10,10) and (11,4) not aligned: 10 (dim 1) != 11 (dim 0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.