Changeset 2393
- Timestamp:
- 09/27/09 17:27:57 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/HL3TreeEvaluator.cs
r2328 r2393 38 38 case EvaluatorSymbolTable.VARIABLE: { 39 39 int row = sampleIndex + currInstr.i_arg1; 40 if (row < 0 || row >= dataset.Rows) throw new InvalidOperationException("Out of range access to dataset row: " + row);40 if (row < 0 || row >= dataset.Rows) throw new ArgumentException("Out of range access to dataset row: " + row); 41 41 else return currInstr.d_arg0 * dataset.GetValue(row, currInstr.i_arg0); 42 42 } … … 46 46 case EvaluatorSymbolTable.DIFFERENTIAL: { 47 47 int row = sampleIndex + currInstr.i_arg1; 48 if (row < 0 || row >= dataset.Rows) throw new InvalidOperationException("Out of range access to dataset row: " + row);48 if (row < 0 || row >= dataset.Rows) throw new ArgumentException("Out of range access to dataset row: " + row); 49 49 else if (row < 1) return 0.0; 50 50 else { -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Predictor.cs
r2381 r2393 54 54 double[] result = new double[end - start]; 55 55 for (int i = 0; i < result.Length; i++) { 56 result[i] = treeEvaluator.Evaluate(i + start); 56 try { 57 result[i] = treeEvaluator.Evaluate(i + start); 58 } 59 catch (ArgumentException) { 60 result[i] = double.NaN; 61 } 57 62 } 58 63 return result; … … 63 68 foreach (IFunctionTree ft in FunctionTreeIterator.IteratePrefix(functionTree.FunctionTree)) { 64 69 if (ft is VariableFunctionTree) { 65 VariableFunctionTree variable = (VariableFunctionTree) 70 VariableFunctionTree variable = (VariableFunctionTree)ft; 66 71 inputVariables.Add(variable.VariableName); 67 72 } -
trunk/sources/HeuristicLab.sln
r2367 r2393 25 25 EndProject 26 26 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.CEDMA.Charting-3.3", "HeuristicLab.CEDMA.Charting\3.3\HeuristicLab.CEDMA.Charting-3.3.csproj", "{1BF17271-5350-476A-8F6D-FC74FA3E82CA}" 27 EndProject28 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.CEDMA.Core-3.3", "HeuristicLab.CEDMA.Core\3.3\HeuristicLab.CEDMA.Core-3.3.csproj", "{C27DDF6C-84DF-45EF-B82F-57A28DD51166}"29 27 EndProject 30 28 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.CEDMA.Server-3.3", "HeuristicLab.CEDMA.Server\3.3\HeuristicLab.CEDMA.Server-3.3.csproj", "{F05D261A-4F7D-46C9-AB9C-21FD4566D719}" … … 530 528 {1BF17271-5350-476A-8F6D-FC74FA3E82CA}.Visualization Debug|x86.ActiveCfg = Debug|x86 531 529 {1BF17271-5350-476A-8F6D-FC74FA3E82CA}.Visualization Debug|x86.Build.0 = Debug|x86 532 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.CEDMA Debug|Any CPU.ActiveCfg = Debug|Any CPU533 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.CEDMA Debug|Any CPU.Build.0 = Debug|Any CPU534 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.CEDMA Debug|x64.ActiveCfg = Debug|x64535 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.CEDMA Debug|x64.Build.0 = Debug|x64536 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.CEDMA Debug|x86.ActiveCfg = Debug|x86537 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.CEDMA Debug|x86.Build.0 = Debug|x86538 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Debug|Any CPU.ActiveCfg = Debug|Any CPU539 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Debug|Any CPU.Build.0 = Debug|Any CPU540 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Debug|x64.ActiveCfg = Debug|x64541 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Debug|x64.Build.0 = Debug|x64542 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Debug|x86.ActiveCfg = Debug|x86543 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Debug|x86.Build.0 = Debug|x86544 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Modeling Debug|Any CPU.ActiveCfg = Debug|Any CPU545 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Modeling Debug|Any CPU.Build.0 = Debug|Any CPU546 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Modeling Debug|x64.ActiveCfg = Debug|x64547 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Modeling Debug|x86.ActiveCfg = Debug|x86548 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Release|Any CPU.ActiveCfg = Release|Any CPU549 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Release|Any CPU.Build.0 = Release|Any CPU550 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Release|x64.ActiveCfg = Release|x64551 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Release|x64.Build.0 = Release|x64552 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Release|x86.ActiveCfg = Release|x86553 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Release|x86.Build.0 = Release|x86554 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.v3.2 Debug|Any CPU.ActiveCfg = Debug|Any CPU555 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.v3.2 Debug|Any CPU.Build.0 = Debug|Any CPU556 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.v3.2 Debug|x64.ActiveCfg = Debug|x64557 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.v3.2 Debug|x64.Build.0 = Debug|x64558 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.v3.2 Debug|x86.ActiveCfg = Debug|x86559 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.v3.2 Debug|x86.Build.0 = Debug|x86560 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Visualization Debug|Any CPU.ActiveCfg = Debug|Any CPU561 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Visualization Debug|Any CPU.Build.0 = Debug|Any CPU562 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Visualization Debug|x64.ActiveCfg = Debug|x64563 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Visualization Debug|x64.Build.0 = Debug|x64564 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Visualization Debug|x86.ActiveCfg = Debug|x86565 {C27DDF6C-84DF-45EF-B82F-57A28DD51166}.Visualization Debug|x86.Build.0 = Debug|x86566 530 {F05D261A-4F7D-46C9-AB9C-21FD4566D719}.CEDMA Debug|Any CPU.ActiveCfg = Debug|Any CPU 567 531 {F05D261A-4F7D-46C9-AB9C-21FD4566D719}.CEDMA Debug|Any CPU.Build.0 = Debug|Any CPU … … 4068 4032 {6D9564BB-956D-4808-8F92-AA7F776F90A5} = {410732DB-725A-4824-896B-C298978343C0} 4069 4033 {1BF17271-5350-476A-8F6D-FC74FA3E82CA} = {410732DB-725A-4824-896B-C298978343C0} 4070 {C27DDF6C-84DF-45EF-B82F-57A28DD51166} = {410732DB-725A-4824-896B-C298978343C0}4071 4034 {F05D261A-4F7D-46C9-AB9C-21FD4566D719} = {410732DB-725A-4824-896B-C298978343C0} 4072 4035 {B462D3CC-8866-42F0-9832-AD0967613B72} = {410732DB-725A-4824-896B-C298978343C0}
Note: See TracChangeset
for help on using the changeset viewer.