tsurumeso / pysparcl Goto Github PK
View Code? Open in Web Editor NEWPython implementation of the sparse clustering methods
License: GNU General Public License v2.0
Python implementation of the sparse clustering methods
License: GNU General Public License v2.0
Hi, I noticed that in the _update_cs
function, the following line appears:
distmat = distmat[:nrowz, (nrowz + 1):(nrowz + k)]
These presumably came from transcribing from the R package 'sparcl.' However, it appears they include an off-by-one indexing error likely because R arrays are 1-indexed. Specifically, (nrowz + 1) should be just nrowz. A simpler fix would be to use scipy's cdist
function as in:
distmat = cdist(z,mus)
I hope this helps!
Hi. I got this error when tried to install your package.
running install
running bdist_egg
running egg_info
writing pysparcl.egg-info/PKG-INFO
writing dependency_links to pysparcl.egg-info/dependency_links.txt
writing top-level names to pysparcl.egg-info/top_level.txt
reading manifest file 'pysparcl.egg-info/SOURCES.txt'
writing manifest file 'pysparcl.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'pysparcl.distfun' extension
gcc -pthread -B /home/matheus.viana/anaconda3/envs/qcb/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/matheus.viana/anaconda3/envs/qcb/lib/python3.6/site-packages/numpy/core/include -I/home/matheus.viana/anaconda3/envs/qcb/include/python3.6m -c pysparcl/distfun.c -o build/temp.linux-x86_64-3.6/pysparcl/distfun.o
gcc: error: pysparcl/distfun.c: No such file or directory
Any idea on how to fix it?
Thanks,
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.