Code Monkey home page Code Monkey logo

trajectoryclustering's People

Contributors

bednarikjan 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  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  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  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  avatar

trajectoryclustering's Issues

run error

Running under Windows environment appears errors
ImportError: cannot import name 'scipy' from 'scipy.io.matlab.mio5_utils'
how can i solve the problem?

Directly clustering of trajectories in python list

Thank you for this wonderful work!

I plan to cluster trajectories with my own data. However, the following test fails

if __name__ == "__main__":
trajs = [[(0.0, 0.0), (1.0, 1.0), (2.0, 2.0), (3.0, 3.0)],
[(0.5, 0.5), (1.5, 1.5), (2.5, 2.5), (3.5, 3.5)],
[(12.0, -5.0), (10.0, -2.5), (8.0, 0.0), (6.0, 2.5)],
[(14.0, -7.0), (12.0, -4.5), (10.0, -2.0), (8.0, 0.5)]]
clust = Clustering()
res = clust.clusterAgglomerartive(trajs, 2)
print(res)

Traceback (most recent call last):
  File "clustering.py", line 268, in <module>
    res = clust.clusterAgglomerartive(trajs, 2)
  File "clustering.py", line 131, in clusterAgglomerartive
    self.createDistanceMatrix()
  File "clustering.py", line 87, in createDistanceMatrix
    dist = self.modHausDist(r, c)
  File "clustering.py", line 51, in modHausDist
    t1pointsRelPos = [t1.getPrefixSum()[i] / t1.length() for i in range(len(t1))]
AttributeError: 'list' object has no attribute 'getPrefixSum'

I guess that some classes have been updated but the tests are not.

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.