Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/21/09 19:31:49 (16 years ago)
Author:
gkronber
Message:

Implemented #594 (Manipulators and initialization operators for variables and constants should use more intuitive default values)

Location:
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Constant.cs

    r1529 r1618  
    8282      NormalRandomAdder valueAdder = new NormalRandomAdder();
    8383      valueAdder.Mu = 0.0;
    84       valueAdder.Sigma = 0.1;
     84      valueAdder.Sigma = 1.0;
    8585
    8686      combinedOp.OperatorGraph.AddOperator(manipulationSeq);
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Variable.cs

    r1529 r1618  
    6565
    6666      ConstrainedDoubleData weight = new ConstrainedDoubleData();
    67       // initialize a totally arbitrary range for the weight = [-20.0, 20.0]
    68       weight.AddConstraint(new DoubleBoundedConstraint(-20.0, 20.0));
     67      // initialize a totally arbitrary range for the weight = [-1.0, 1.0]
     68      weight.AddConstraint(new DoubleBoundedConstraint(-1.0, 1.0));
    6969      AddVariable(new HeuristicLab.Core.Variable(WEIGHT, weight));
    7070
    7171      ConstrainedIntData variable = new ConstrainedIntData();
    7272      AddVariable(new HeuristicLab.Core.Variable(INDEX, variable));
    73       minIndex = 0; maxIndex = 100;
     73      minIndex = 0; maxIndex = 1000;
    7474
    7575      ConstrainedIntData sampleOffset = new ConstrainedIntData();
     
    9292      indexRandomizer.Name = "Index Randomizer";
    9393      NormalRandomizer weightRandomizer = new NormalRandomizer();
    94       weightRandomizer.Mu = 1.0;
     94      weightRandomizer.Mu = 0.0;
    9595      weightRandomizer.Sigma = 1.0;
    9696      weightRandomizer.GetVariableInfo("Value").ActualName = WEIGHT;
     
    129129      NormalRandomAdder weightRandomAdder = new NormalRandomAdder();
    130130      weightRandomAdder.Mu = 0.0;
    131       weightRandomAdder.Sigma = 0.1;
     131      weightRandomAdder.Sigma = 1.0;
    132132      weightRandomAdder.GetVariableInfo("Value").ActualName = WEIGHT;
    133133      weightRandomAdder.Name = "Weight Adder";
Note: See TracChangeset for help on using the changeset viewer.