Changeset 1889
- Timestamp:
- 05/25/09 16:37:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs
r1874 r1889 129 129 modelCreator.GetVariableInfo("SVMRangeTransform").ActualName = "RangeTransform"; 130 130 modelCreator.GetVariableInfo("SVMType").ActualName = "Type"; 131 131 132 132 133 133 modelProcessor.AddSubOperator(modelCreator); … … 192 192 op.Name = p + "Evaluator"; 193 193 SequentialProcessor seqProc = new SequentialProcessor(); 194 194 195 195 SupportVectorEvaluator evaluator = new SupportVectorEvaluator(); 196 196 evaluator.Name = p + "SimpleEvaluator"; … … 208 208 r2Evaluator.GetVariableInfo("Values").ActualName = p + "Values"; 209 209 r2Evaluator.GetVariableInfo("R2").ActualName = p + "R2"; 210 SimpleMeanAbsolutePercentageErrorEvaluator mapeEvaluator = new SimpleMeanAbsolutePercentageErrorEvaluator(); 211 mapeEvaluator.Name = p + "MAPEEvaluator"; 212 mapeEvaluator.GetVariableInfo("Values").ActualName = p + "Values"; 213 mapeEvaluator.GetVariableInfo("MAPE").ActualName = p + "MAPE"; 214 SimpleMeanAbsolutePercentageOfRangeErrorEvaluator mapreEvaluator = new SimpleMeanAbsolutePercentageOfRangeErrorEvaluator(); 215 mapreEvaluator.Name = p + "MAPREEvaluator"; 216 mapreEvaluator.GetVariableInfo("Values").ActualName = p + "Values"; 217 mapreEvaluator.GetVariableInfo("MAPRE").ActualName = p + "MAPRE"; 218 SimpleVarianceAccountedForEvaluator vafEvaluator = new SimpleVarianceAccountedForEvaluator(); 219 vafEvaluator.Name = p + "VAFEvaluator"; 220 vafEvaluator.GetVariableInfo("Values").ActualName = p + "Values"; 221 vafEvaluator.GetVariableInfo("VAF").ActualName = p + "VAF"; 210 222 211 223 seqProc.AddSubOperator(evaluator); 212 224 seqProc.AddSubOperator(mseEvaluator); 213 225 seqProc.AddSubOperator(r2Evaluator); 226 seqProc.AddSubOperator(mapeEvaluator); 227 seqProc.AddSubOperator(mapreEvaluator); 228 seqProc.AddSubOperator(vafEvaluator); 214 229 215 230 op.OperatorGraph.AddOperator(seqProc); … … 241 256 progOp.RemoveVariableInfo("Result"); 242 257 progOp.AddVariableInfo(new VariableInfo("Value", "Value", typeof(IntData), VariableKind.In | VariableKind.Out)); 243 progOp.Code = "Value.Data = 0;";258 progOp.Code = "Value.Data = 0;"; 244 259 progOp.GetVariableInfo("Value").ActualName = paramName; 245 260 return progOp;
Note: See TracChangeset
for help on using the changeset viewer.