Exception with package percentageErrorMetrics Evaluation metrics - Weka 3.8.1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception with package percentageErrorMetrics Evaluation metrics - Weka 3.8.1

Michael Hall
Trying to classify some new data Explorer started failing.

Checking weka.log I saw…

Exception in thread "Thread-1198" java.lang.IllegalAccessError: tried to access field weka.classifiers.evaluation.Evaluation.m_WithClass from class weka.classifiers.evaluation.MeanAbsolutePercentageError
        weka.classifiers.evaluation.MeanAbsolutePercentageError.getStatistic(MeanAbsolutePercentageError.java:127)
        weka.classifiers.evaluation.MeanAbsolutePercentageError.toSummaryString(MeanAbsolutePercentageError.java:113)
        weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2873)
        weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2757)
        weka.classifiers.Evaluation.toSummaryString(Evaluation.java:1115)
        weka.gui.explorer.ClassifierPanel$18.run(ClassifierPanel.java:1871)

        at weka.classifiers.evaluation.MeanAbsolutePercentageError.getStatistic(MeanAbsolutePercentageError.java:127)
        at weka.classifiers.evaluation.MeanAbsolutePercentageError.toSummaryString(MeanAbsolutePercentageError.java:113)
        at weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2873)
        at weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2757)
        at weka.classifiers.Evaluation.toSummaryString(Evaluation.java:1115)
        at weka.gui.explorer.ClassifierPanel$18.run(ClassifierPanel.java:1871)

The same with weka.classifiers.evaluation.RootMeanSquarePercentageError after I turned off MAPE

Michael Hall



_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Exception with package percentageErrorMetrics Evaluation metrics - Weka 3.8.1

Eibe Frank-2
Administrator
Make sure that you have percentageErrorMetrics version 1.0.2 (the latest version). Some changes were necessary to make it work with WEKA 3.8.1/3.9.1.

Cheers,
Eibe

> On 22/05/2017, at 4:53 AM, Michael Hall <[hidden email]> wrote:
>
> Trying to classify some new data Explorer started failing.
>
> Checking weka.log I saw…
>
> Exception in thread "Thread-1198" java.lang.IllegalAccessError: tried to access field weka.classifiers.evaluation.Evaluation.m_WithClass from class weka.classifiers.evaluation.MeanAbsolutePercentageError
> weka.classifiers.evaluation.MeanAbsolutePercentageError.getStatistic(MeanAbsolutePercentageError.java:127)
> weka.classifiers.evaluation.MeanAbsolutePercentageError.toSummaryString(MeanAbsolutePercentageError.java:113)
> weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2873)
> weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2757)
> weka.classifiers.Evaluation.toSummaryString(Evaluation.java:1115)
> weka.gui.explorer.ClassifierPanel$18.run(ClassifierPanel.java:1871)
>
> at weka.classifiers.evaluation.MeanAbsolutePercentageError.getStatistic(MeanAbsolutePercentageError.java:127)
> at weka.classifiers.evaluation.MeanAbsolutePercentageError.toSummaryString(MeanAbsolutePercentageError.java:113)
> at weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2873)
> at weka.classifiers.evaluation.Evaluation.toSummaryString(Evaluation.java:2757)
> at weka.classifiers.Evaluation.toSummaryString(Evaluation.java:1115)
> at weka.gui.explorer.ClassifierPanel$18.run(ClassifierPanel.java:1871)
>
> The same with weka.classifiers.evaluation.RootMeanSquarePercentageError after I turned off MAPE
>
> Michael Hall
>
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: [hidden email]
> List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Exception with package percentageErrorMetrics Evaluation metrics - Weka 3.8.1

Michael Hall
> On May 21, 2017, at 4:52 PM, Eibe Frank <[hidden email]> wrote:
>
> Make sure that you have percentageErrorMetrics version 1.0.2 (the latest version). Some changes were necessary to make it work with WEKA 3.8.1/3.9.1.

I had the an old version installed and updated.
For 3.8.1 PackageManager showed 1.0.1 as the latest. Maybe 1.0.2 is for 3.9.1?
The data takes a while to classify, I will check later to verify this is the fix.

Thanks

Michael Hall




_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Exception with package percentageErrorMetrics Evaluation metrics - Weka 3.8.1

Michael Hall
> On May 22, 2017, at 3:57 AM, Michael Hall <[hidden email]> wrote:
>
>> On May 21, 2017, at 4:52 PM, Eibe Frank <[hidden email]> wrote:
>>
>> Make sure that you have percentageErrorMetrics version 1.0.2 (the latest version). Some changes were necessary to make it work with WEKA 3.8.1/3.9.1.
>
> The data takes a while to classify, I will check later to verify this is the fix.

I accidentally did ZeroR, very fast, worked fine.

Michael Hall



_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html