Coder Social home page Coder Social logo

aibird's People

Contributors

yooceii avatar

Watchers

 avatar  avatar

Forkers

ugultopu

aibird's Issues

ValueError: min() arg is an empty sequence

Steps to Reproduce

  1. Clone the repository.
  2. Edit 'limit_parameter2.txt' to have the following content:
y,1

0,4.0

2.0
  1. Run python baseline.py.

The program is exiting with the following error after a couple seconds:

Traceback (most recent call last):
  File "baseline.py", line 1260, in <module>
    structures = generate(m_height)
  File "baseline.py", line 367, in generate
    position, child.point)-child.point), position == x1, check_overlap(child, parent_node), '\n')
  File "baseline.py", line 1189, in height_limit
    return min(list(filter(lambda x: x >= point, solve(px-position, y))))
ValueError: min() arg is an empty sequence

The number of rows in X must match the length of CLUST

Steps to Reproduce

  1. Clone the repository.
  2. Run python baseline.py after cloning in the repository.

The program is exiting with the following error:

Error using silhouette (line 90)
The number of rows in X must match the length of CLUST.

Error in calculate_k (line 9)
    sil=silhouette(data,index);

Traceback (most recent call last):
  File "baseline.py", line 1235, in <module>
    structures = generate(m_height)
  File "baseline.py", line 398, in generate
    temp_leaf = prune(temp_leaf, step)
  File "baseline.py", line 473, in prune
    eng.calculate_k(nargout=0)
  File "/usr/local/lib/python3.6/site-packages/matlab/engine/matlabengine.py", line 71, in __call__
    _stderr, feval=True).result()
  File "/usr/local/lib/python3.6/site-packages/matlab/engine/futureresult.py", line 67, in result
    return self.__future.result(timeout)
  File "/usr/local/lib/python3.6/site-packages/matlab/engine/fevalfuture.py", line 82, in result
    self._result = pythonengine.getFEvalResult(self._future,self._nargout, None, out=self._out, err=self._err)
matlab.engine.MatlabExecutionError: 
  File /Applications/MATLAB_R2018a.app/toolbox/stats/stats/silhouette.m, line 90, in silhouette

  File AIBird/calculate_k.m, line 9, in calculate_k
The number of rows in X must match the length of CLUST.

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.