- Timestamp:
- 08/11/10 12:59:53 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis
- Files:
-
- 6 added
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisSolution.cs
r4068 r4193 129 129 public event EventHandler ProblemDataChanged; 130 130 protected virtual void OnProblemDataChanged() { 131 RecalculateEstimatedValues(); 131 132 var listeners = ProblemDataChanged; 132 133 if (listeners != null) -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/HeuristicLab.Problems.DataAnalysis-3.3.csproj
r4112 r4193 133 133 <Compile Include="Interfaces\IOnlineEvaluator.cs" /> 134 134 <Compile Include="MatrixExtensions.cs" /> 135 <Compile Include="Operators\DynOpEqHistogramInitializer.cs" /> 136 <Compile Include="Operators\DynOpEqComparator.cs" /> 137 <Compile Include="Operators\DynamicDepthLimitComparator.cs" /> 135 138 <Compile Include="Operators\WeightedParentsQualityVarianceComparator.cs" /> 136 139 <Compile Include="Properties\AssemblyInfo.cs" /> … … 145 148 <Compile Include="SupportVectorMachine\SupportVectorMachineUtil.cs" /> 146 149 <Compile Include="Symbolic\ArithmeticExpressionGrammar.cs" /> 150 <Compile Include="Symbolic\BasicExpressionGrammar.cs" /> 147 151 <Compile Include="Symbolic\FullFunctionalExpressionGrammar.cs" /> 148 152 <Compile Include="Symbolic\ISymbolicExpressionTreeInterpreter.cs" /> … … 152 156 <Compile Include="Symbolic\Symbols\Constant.cs" /> 153 157 <Compile Include="Symbolic\Symbols\ConstantTreeNode.cs" /> 158 <Compile Include="Symbolic\Symbols\DifferentialVariable.cs" /> 159 <Compile Include="Symbolic\Symbols\DifferentialVariableTreeNode.cs" /> 154 160 <Compile Include="Symbolic\Symbols\LaggedVariable.cs" /> 155 161 <Compile Include="Symbolic\Symbols\LaggedVariableTreeNode.cs" /> -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/WeightedParentsQualityVarianceComparator.cs
r4131 r4193 125 125 126 126 bool result = false; 127 if (maximization) 128 result = righttail < ConfidenceIntervalParameter.ActualValue.Value; 129 else 130 result = lefttail < ConfidenceIntervalParameter.ActualValue.Value; 127 // reject only if the child is significantly worse 128 if (maximization) { 129 if (bothtails > ConfidenceIntervalParameter.ActualValue.Value) result = true; 130 else if (leftQuality > bestParentQuality) result = true; 131 else result = false; 132 } else { 133 if (bothtails > ConfidenceIntervalParameter.ActualValue.Value) result = true; 134 else if (leftQuality < bestParentQuality) result = true; 135 else result = false; 136 } 131 137 132 138 BoolValue resultValue = ResultParameter.ActualValue; … … 136 142 resultValue.Value = result; 137 143 } 138 139 140 141 144 return base.Apply(); 142 145 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SimpleArithmeticExpressionInterpreter.cs
r4068 r4193 65 65 public const byte Constant = 20; 66 66 public const byte Arg = 21; 67 public const byte Differential = 22; 67 68 } 68 69 … … 89 90 { typeof(Constant), OpCodes.Constant }, 90 91 { typeof(Argument), OpCodes.Arg }, 92 { typeof(DifferentialVariable), OpCodes.Differential}, 91 93 }; 92 94 private const int ARGUMENT_STACK_SIZE = 1024; … … 130 132 var variableTreeNode = instr.dynamicNode as LaggedVariableTreeNode; 131 133 instr.iArg0 = (ushort)dataset.GetVariableIndex(variableTreeNode.VariableName); 134 } else if (instr.opCode == OpCodes.Differential) { 135 var variableTreeNode = instr.dynamicNode as DifferentialVariableTreeNode; 136 instr.iArg0 = (ushort)dataset.GetVariableIndex(variableTreeNode.VariableName); 132 137 } 133 138 return instr; … … 277 282 return dataset[actualRow, currentInstr.iArg0] * lagVariableTreeNode.Weight; 278 283 } 284 case OpCodes.Differential: { 285 var diffTreeNode = currentInstr.dynamicNode as DifferentialVariableTreeNode; 286 if (row < 2 || row >= dataset.Rows - 2) throw new ArgumentException("Out of range access to dataset row: " + row); 287 return (-dataset[row + 2, currentInstr.iArg0] + 8 * dataset[row + 1, currentInstr.iArg0] - 8 * dataset[row - 1, currentInstr.iArg0] + dataset[row - 2, currentInstr.iArg0]) * (1.0/12.0) * diffTreeNode.Weight; 288 } 289 279 290 case OpCodes.Constant: { 280 291 var constTreeNode = currentInstr.dynamicNode as ConstantTreeNode;
Note: See TracChangeset
for help on using the changeset viewer.