You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Neil Walkinshaw (JIRA)" <ji...@apache.org> on 2013/07/15 23:34:48 UTC
[jira] [Updated] (MAHOUT-1285) Arff loader can misparse string data
as double
[ https://issues.apache.org/jira/browse/MAHOUT-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neil Walkinshaw updated MAHOUT-1285:
------------------------------------
Attachment: tempArff
This file causes the exception
> Arff loader can misparse string data as double
> ----------------------------------------------
>
> Key: MAHOUT-1285
> URL: https://issues.apache.org/jira/browse/MAHOUT-1285
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.9
> Environment: Linux Ubuntu 12.4
> Reporter: Neil Walkinshaw
> Attachments: tempArff
>
>
> Have successfully loaded numerous ARFF files with Mahout (originally generated via WEKA). The files contain randomly generated data. For a specific random seed, the following exception is thrown:
> java.lang.NumberFormatException: For input string: "b1shkt70694difsmmmdv0ikmoh"
> at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1241)
> at java.lang.Double.parseDouble(Double.java:540)
> at org.apache.mahout.utils.vectors.arff.MapBackedARFFModel.processNumeric(MapBackedARFFModel.java:146)
> at org.apache.mahout.utils.vectors.arff.MapBackedARFFModel.getValue(MapBackedARFFModel.java:97)
> at org.apache.mahout.utils.vectors.arff.ARFFIterator.computeNext(ARFFIterator.java:77)
> at org.apache.mahout.utils.vectors.arff.ARFFIterator.computeNext(ARFFIterator.java:30)
> at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
> at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
> at org.apache.mahout.utils.vectors.io.SequenceFileVectorWriter.write(SequenceFileVectorWriter.java:44)
> at org.apache.mahout.utils.vectors.arff.Driver.writeFile(Driver.java:251)
> at org.apache.mahout.utils.vectors.arff.Driver.main(Driver.java:145)
> at libInterfaces.MahoutTraceBuilder.generateMahoutFile(MahoutTraceBuilder.java:38)
> at libInterfaces.MahoutTraceBuilder.generateMahoutReader(MahoutTraceBuilder.java:42)
> at tests.InputTester.testMahoutMeansShift(InputTester.java:111)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira