Re: New WEKA release: 3.8.6/3.9.6 and XGBoost

"Lindsay Peters" <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>
Hi Eibe,

On the topic of XGBoost:

1. Do you have a plant to officially support it? And
2. Do you know of a distribution for it that will run on Windows?

Regards
Lindsay Peters

-----Original Message-----
From: Eibe Frank [mailto:[email protected]] 
Sent: Wednesday, 9 February 2022 8:26 AM
To: Weka machine learning workbench list.
Subject: [Wekalist] Re: New WEKA release: 3.8.6/3.9.6

Those packages must be the 3.9.X versions. If you install WEKA 3.9.6 rather than the WEKA 3.8.6 version that you seem to be running at the moment, those packages should work (apart from the distributedWeka* ones, and the ones which are unofficial such as XGBoost that have not been tested by us). Alternatively, install the 3.8.* versions of the packages.

Yes, to avoid those exceptions at start-up, you will need to add corresponding "--add-opens" command-line options when you run your application using the Java 17 JVM (or a later JVM version). See the weka.sh script included on Linux/macOS or the RunWeka.* files on Windows for the long list of modules that we open in this manner when we start the WEKA application. Alternatively, you can keep using Java 8 to run your application: we have compiled weka.jar with Java 8 as the target byte code level so it can still be run using Java 8. The same should generally hold true for the packages.

Cheers,
Eibe

> On 9/02/2022, at 9:59 AM, Michael Hall <[email protected]> wrote:
> 
> 
> 
>> On Feb 7, 2022, at 8:16 PM, Eibe Frank <[email protected]> wrote:
>> 
>> WEKA 3.8.6/3.9.6 has been released. The Windows, Mac, and Linux versions include a Java 17 runtime now. 
> 
> Quite the jump.
> 
> I take it quite a few packages might need updating…
> 
> WekaPackageManager] Skipping package RPlugin because it is not compatible with Weka 3.8.6
> [WekaPackageManager] Skipping package distributedWekaSpark because it is not compatible with Weka 3.8.6
> [WekaPackageManager] Skipping package command-to-code because it is not compatible with Weka 3.8.6
> [WekaPackageManager] Skipping package wekaServer because it is not compatible with Weka 3.8.6
> [WekaPackageManager] Skipping package XGBoost because it is not compatible with Weka 3.8.6
> [WekaPackageManager] Skipping package command-to-code because it is not compatible with Weka 3.8.6
> [WekaPackageManager] Skipping package distributedWekaBase because it is not compatible with Weka 3.8.6
> 
> My application including weka.jar that does this at startup…
> 
> WekaPackageManager.loadPackages(false,true,false);
> 
> Still gets a startup exception…
> 
> java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @4426bff1
> 	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
> 	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
> 	at java.base/java.lang.reflect.Method.checkCanSetAccessible(Unknown Source)
> 	at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
> 	at weka.core.WekaPackageClassLoaderManager.injectClasses(WekaPackageClassLoaderManager.java:792)
> 	at weka.core.WekaPackageClassLoaderManager.injectAllClassesInFromStream(WekaPackageClassLoaderManager.java:690)
> 	at weka.core.WekaPackageClassLoaderManager.injectMTJCoreClasses(WekaPackageClassLoaderManager.java:118)
> 	at weka.core.WekaPackageManager.<clinit>(WekaPackageManager.java:255)
> 	at org.cmdline.common.Initializer.initialize(Initializer.java:51)
> 	at org.cmdline.common.Initializer.getScheduler(Initializer.java:102)
> 	at org.cmdline.CommandLine.main(CommandLine.java:59)
> 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
> 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
> 	at us.hall.hp.common.LoaderLaunchStub.invoke(LoaderLaunchStub.java:234)
> 	at us.hall.hp.common.LoaderLaunchStub.runStatic(LoaderLaunchStub.java:224)
> 	at us.hall.hp.common.LoaderLaunchStub.runMain(LoaderLaunchStub.java:216)
> 	at us.hall.hp.common.LoaderLaunchStub.launch(LoaderLaunchStub.java:204)
> 	at us.hall.hp.common.LoaderLaunchStub.main(LoaderLaunchStub.java:116)
> 
> _______________________________________________
> 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

_______________________________________________
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
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.