Re: Strange behavior in external package
Eibe Frank <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CADehzLW5O5xRRfE68ZbybTo_yns=nU01XxCGNCd9q+YfoRS8=Q@mail.gmail.com> |
Thanks, Martin. I've checked your fix into the SVN repository. Mark, can you make a new package release of external/DilcaDistance (version 1.0.2)? Cheers, Eibe On Thu, 9 Jun 2022 at 19:05, Martin Trat <[email protected]> wrote: > Dear fellow scientists and developers, > > > > in the latest version of the external package DilcaDistance I found > strange behavior when attempting to work with it. > > > > When I try to execute DBSCAN clustering, I use the following command to > use DilcaDistance as distance function *in unsupervised mode* > (supervisedDiscretization set to False): > > DBSCAN -E 0.9 -M 6 -A “weka.core.DilcaDistance -R first-last” > > However I get the following error, informing me that, in fact, supervised > discretization is set internally: > > Problem evaluating clusterer: Trying to use Supervised Discretization over > a dataset without an assigned class attribute. > > Weirdly enough, when setting supervisedDiscretization to True, a -D flag > in above command announces supervised calculation of DilcaDistance but I do > not get an error message (although no class attribute is set in dataset). > > DBSCAN -E 0.9 -M 6 -A “weka.core.DilcaDistance -R first-last -D” > > > > However, when looking for said error in the source of DilcaDistance, this > false behavior is clear to me: > > In > https://svn.cms.waikato.ac.nz/svn/weka/branches/stable-3-8/packages/external/DilcaDistance/src/main/java/weka/core/ > -> file DilcaDistance.java > > *line 318* and following: > > if (!supDiscr && m_Data.classIndex() < 0) > > throw new RuntimeException("Trying to use Supervised > Discretization over a dataset without an assigned class attribute"); > > It clearly should be if (supDiscr && m_Data.classIndex() < 0) (à leave > out negation “!”), as supDiscr is True, if supervised discretization is > activated. > > > > How can I contribute to solve this error in source? > > > > Best > > Martin > > ………………………………………………… > > Martin Trat, M.Sc. > > Wissenschaftlicher Mitarbeiter | Research Associate > > Intelligent Systems and Production Engineering (ISPE) > > > > FZI Forschungszentrum Informatik > > Haid-und-Neu-Str. 10–14 > > 76131 Karlsruhe, Germany > > Tel.: +49 721 9654-509 > > [email protected] > > > > www.fzi.de/team/martin-trat > > www.fzi.de | www.twitter.com/FZI_official | > www.linkedin.com/company/fzi-official | www.youtube.com/FZIchannel > > ………………………………………………… > FZI Forschungszentrum Informatik > Stiftung des bürgerlichen Rechts > Stiftung Az: 14-0563.1 Regierungspräsidium Karlsruhe > Vorstand: Prof. Dr. Andreas Oberweis, Jan Wiesenberger, Prof. Dr.-Ing. J. > Marius Zöllner > Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus > ………………………………………………… > > > _______________________________________________ > Wekalist mailing list -- [email protected] > Send posts to [email protected] > To unsubscribe send an email to [email protected] > To subscribe, unsubscribe, etc., visit > https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz > List etiquette: > http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html > _______________________________________________ Wekalist mailing list -- [email protected] Send posts to [email protected] To unsubscribe send an email to [email protected] To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html