encog/encog-dotnet-core — Issue #26: SVM ArrayIndexOutOfBoundsException
Author: PetrToman
Created: 2012-01-12 15:41:27+00:00
State: open

Hello,
running the latest Encog Workbench (built from git sources) on the data below, I get the following exception:

We are very sorry but an unexpected error has occured.
Would you consider sending this information to us?
No personal information will be transmitted, just what you see below.
This information is very useful to us to make Encog a better program.
----------------------------------------------------------------------
Encog Version: 3.1.0
Encog Workbench Version: 3.1
Java Version: 1.6.0_30
Java Vendor: Sun Microsystems Inc.
OS Name: Windows Vista
OS Arch: x86
OS Version: 6.0
Core Count: 2
ISO3 Country: USA
Display Country: United States
Radix: .
Grouping: ,
----------------------------------------------------------------------
Exception: java.lang.ArrayIndexOutOfBoundsException: -1
org.encog.mathutil.libsvm.Solver_NU.select_working_set(svm.java:1069)
org.encog.mathutil.libsvm.Solver.Solve(svm.java:540)
org.encog.mathutil.libsvm.Solver_NU.Solve(svm.java:962)
org.encog.mathutil.libsvm.svm.solve_nu_svc(svm.java:1437)
org.encog.mathutil.libsvm.svm.svm_train_one(svm.java:1567)
org.encog.mathutil.libsvm.svm.svm_train(svm.java:2097)
org.encog.ml.svm.training.SVMTrain.iteration(SVMTrain.java:235)
org.encog.ml.svm.training.SVMSearchTrain.iteration(SVMSearchTrain.java:271)
org.encog.app.analyst.commands.CmdTrain.performTraining(CmdTrain.java:219)
org.encog.app.analyst.commands.CmdTrain.executeCommand(CmdTrain.java:121)
org.encog.app.analyst.EncogAnalyst.executeTask(EncogAnalyst.java:487)
org.encog.app.analyst.EncogAnalyst.executeTask(EncogAnalyst.java:514)
org.encog.workbench.tabs.analyst.AnalystProgressTab.run(AnalystProgressTab.java:335)
java.lang.Thread.run(Unknown Source)

This problem was also reported here:

http://www.heatonresearch.com/node/2368 (partly fixed?)
http://www.heatonresearch.com/node/2398 (no replies)

---------------------------------------------------------------------------------------------------------------------------------------
data.csv:
---------------------------------------------------------------------------------------------------------------------------------------
i1,i2,i3,i4,i5,i6,i7,i8,i9,y
0.0003,1.666666667,1,0.000124023,-0.000225,-0.000704,-0.001492,-0.001547,2.07E-05,1
0.0003,1,1,0.000348262,0.000155,-0.000344,-0.001144,-0.0012415,5.80E-05,1
0.0006,2.25,10,0.000234719,-0.000195,-0.003012,-0.003864,-0.004737,3.91E-05,0
0.0004,2,3,5.80E-05,-2.00E-05,-0.002582,-0.003959,-0.0048975,9.66E-06,1
0.0004,1.5,1,0.00039255,0.00042,-0.002062,-0.003513,-0.004471,6.54E-05,0
0.0002,1.5,0.5,0.000156911,0.00041,-0.0018,-0.003533,-0.0045565,2.62E-05,0
0.0003,1.666666667,1,6.20E-05,-0.000135,-0.000922,-0.0034,-0.0045225,1.03E-05,0
0.0003,1,1,0.000449639,0.00033,-0.000272,-0.002828,-0.00396,7.49E-05,0
0.0006,1.2,2,0.000376355,-0.00017,-0.001406,-0.004004,-0.005835,6.27E-05,0
-1.00E-04,4,0.166666667,0.000236876,-0.00013,-0.001478,-0.004007,-0.005891,3.95E-05,0
0.0008,1.714285714,1.5,-0.000290168,-0.00089,-0.003022,-0.005279,-0.0079045,-4.84E-05,1
0.0005,1.2,0.5,0.000288856,-0.000135,-0.002226,-0.004466,-0.0071965,4.81E-05,0
0.0002,2.666666667,0.666666667,0.000246055,0.000455,0.00085,-0.00101,-0.0044385,4.10E-05,0
0.0012,1.153846154,0.25,0.000585271,0.00062,0.00124,-0.000548,-0.004005,9.75E-05,0
-1.00E-04,2.5,6,-0.000184848,-0.000125,0.00069,-0.000868,-0.0042985,-3.08E-05,1
0.0011,1,1,0.000784416,0.0009,0.001764,0.000259,-0.0031595,0.000130736,1
0.0012,1.25,0.25,0.000791247,0.00112,0.002248,0.00105,-0.0022235,0.000131875,1
0.0008,1,1,-2.17E-05,-0.000665,-0.00093,0.00021,-0.002472,-3.61E-06,1
0.0007,1,1,0.000657545,0.000395,-0.000198,0.001018,-0.001595,0.000109591,1
---------------------------------------------------------------------------------------------------------------------------------------