Menu

Tutorial has a method with incorrect parameter

Q3Varnam
2014-07-08
2014-07-08
  • Q3Varnam

    Q3Varnam - 2014-07-08

    I am trying my hands on OpenIMAJ.

    Please refer to tutorial http://openimaj.org/tutorial/classification101.html

    in the example code there is a line

    ByteKMeans km = ByteKMeans.createKDTreeEnsemble(128, 300);
    

    however the createKDTreeEnsemble method seems to take just 1 parameter

    should it be ByteKMeans.createExact(int,int) instead of createKDTreeEnsemble?

     
  • Jonathon Hare

    Jonathon Hare - 2014-07-08

    It should be:

    ByteKMeans km = ByteKMeans.createKDTreeEnsemble(300);
    

    The KMeans stuff was refactored a while ago (removing the need to specify the data dimensionality when creating the clusterer), and I guess we forgot to update the tutorial. I've committed a fix now so it won't be a problem for the next release.

     
  • Q3Varnam

    Q3Varnam - 2014-07-08

    Many thanks.

    Just found another typo in
    http://openimaj.org/tutorial/parallel-processing.html

            final MBFImage i = im.next();
    

    it should actually be
    final MBFImage i = it.next();

     

    Last edit: Q3Varnam 2014-07-08

Anonymous
Anonymous

Add attachments
Cancel