Comments (8)
What Java version are you using? 16? If so, try using below 16, with 11 recommended.
from weka-3.8.
I have a suspicion this is an issue with the CSV file. It has a text field which contained a ' as in O'Brien.
from weka-3.8.
You can try the unofficial common-csv-weka-package instead of Weka's own CSVLoader for loading that CSV file.
from weka-3.8.
@fracpete I've installed. Do i run from simpleCLI like so?
from weka-3.8.
Personally, I'd use the loader in the Weka Explorer rather than in the SimpleCLI (makes it also easier to tweak options for the loader). The full classname is:
weka.core.converters.CommonCSVLoader <file.csv>
It's possible that you can also use partial classnames (not verified, I don't use the SimpleCLI):
.CommonCSVLoader <file.csv>
from weka-3.8.
Continue to receive errors on attempting to import a file.
These are very large files.
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: class javax.swing.plaf.basic.BasicFileChooserUI$AcceptAllFileFilter cannot be cast to class weka.gui.ExtensionFileFilterWithClass (javax.swing.plaf.basic.BasicFileChooserUI$AcceptAllFileFilter is in module java.desktop of loader 'bootstrap'; weka.gui.ExtensionFileFilterWithClass is in unnamed module of loader 'app')
weka.gui.ConverterFileChooser.configureCurrentConverter(ConverterFileChooser.java:743)
weka.gui.ConverterFileChooser.showOpenDialog(ConverterFileChooser.java:553)
weka.gui.explorer.PreprocessPanel.setInstancesFromFileQ(PreprocessPanel.java:1004)
weka.gui.explorer.PreprocessPanel$5.actionPerformed(PreprocessPanel.java:341)
java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
java.desktop/java.awt.Component.processEvent(Unknown Source)
java.desktop/java.awt.Container.processEvent(Unknown Source)
java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.EventQueue$4.run(Unknown Source)
java.desktop/java.awt.EventQueue$4.run(Unknown Source)
java.base/java.security.AccessController.doPrivileged(Native Method)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.desktop/java.awt.EventQueue$5.run(Unknown Source)
java.desktop/java.awt.EventQueue$5.run(Unknown Source)
java.base/java.security.AccessController.doPrivileged(Native Method)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
at weka.gui.ConverterFileChooser.configureCurrentConverter(ConverterFileChooser.java:743)
at weka.gui.ConverterFileChooser.showOpenDialog(ConverterFileChooser.java:553)
at weka.gui.explorer.PreprocessPanel.setInstancesFromFileQ(PreprocessPanel.java:1004)
at weka.gui.explorer.PreprocessPanel$5.actionPerformed(PreprocessPanel.java:341)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
from weka-3.8.
I'm not sure why you are getting the java.lang.ClassCastException
. Have you tried using the CSV loader directly from the terminal rather than the GUI? What version of Java are you using? I recommend using 11.
from weka-3.8.
I'm using the default Java that comes with the install, which the documentation indicates is JDK 11.
I'll try direct csv loading if i can work out the syntax.
from weka-3.8.
Related Issues (14)
- Weka 3.8.3 .dmg file fails to mount HOT 8
- implementing my clusterer
- autoweka problem stable win 8 new java new python all 64 bit and plugin manager to get autoweka and a data set from autoweka german credit HOT 3
- Cannot build weka-3.8 HOT 1
- Program name and publisher name missing in weka-3.8.4 HOT 1
- Illegal reflective access by weka.core.WekaPackageClassLoaderManager (weka-3-8-4/weka.jar)
- Weka Warning HOT 2
- Glitches upon the closure(destory) of a window in macOS 11.4 HOT 2
- Search by text in filters frame HOT 1
- Logistic regression/ DT/RF Under the hood dealing with missing values WEKA HOT 7
- weka.filters.unsupervised.attribute.RandomSubset not using numAttribute variable HOT 1
- "git clone weka" and "java run" in terminal? HOT 1
- cannot select J48 in classify for latest weka HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weka-3.8.