Giter VIP home page Giter VIP logo

pysparcl's People

Contributors

tsurumeso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pysparcl's Issues

Indexing issue in _update_cs

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!

Faill to install

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,

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.