Code Monkey home page Code Monkey logo

s_dbw's Issues

Unable to Import this package

Unable to import this package,always get this error:

File "", line 1, in
ModuleNotFoundError: No module named 'S_Dbw'

Python version: 3.6.6 (Anaconda)
All dependencies are already satisfied as follows:

Requirement already satisfied: S_Dbw in /root/anaconda3/lib/python3.6/site-packages (0.4.0)
Requirement already satisfied: scipy in /root/anaconda3/lib/python3.6/site-packages (from S_Dbw) (1.0.0)

Error while running without cluster centers.

File "/usr/local/lib/python3.5/dist-packages/s_dbw/s_dbw.py", line 454, in S_Dbw
centroids = calc_nearest_points(X, labels, k, centroids, metric)
File "/usr/local/lib/python3.5/dist-packages/s_dbw/s_dbw.py", line 41, in calc_nearest_points
centroids_p.append(X[labels == i][np.argmin(dist)])
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 1172, in argmin
return _wrapfunc(a, 'argmin', axis=axis, out=out)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: attempt to get argmin of an empty sequence

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.