Strange behavior in external package

Martin Trat <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>
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]

 

 <https://www.fzi.de/team/martin-trat> www.fzi.de/team/martin-trat 

 <https://www.fzi.de/> www.fzi.de |  <http://www.twitter.com/FZI_official>
www.twitter.com/FZI_official |
<http://www.linkedin.com/company/fzi-official>
www.linkedin.com/company/fzi-official |
<https://www.youtube.com/FZIchannel> 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
smime.p7s (application/pkcs7-signature, 6.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.