Changeset 14558 for branches/TSNE/HeuristicLab.Algorithms.DataAnalysis
- Timestamp:
- 01/11/17 07:38:33 (8 years ago)
- Location:
- branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/GBM/GradientBoostingRegressionAlgorithm.cs
r14518 r14558 52 52 get { return (IRegressionProblem)base.Problem; } 53 53 set { base.Problem = value; } 54 } 55 public override bool SupportsPause 56 { 57 get { return false; } 54 58 } 55 59 -
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs
r14518 r14558 48 48 set { base.Problem = value; } 49 49 } 50 public override bool SupportsPause 51 { 52 get { return false; } 53 } 50 54 51 55 #region ParameterNames -
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/MctsSymbolicRegressionAlgorithm.cs
r14185 r14558 22 22 using System; 23 23 using System.Linq; 24 using System.Runtime.CompilerServices;25 24 using System.Threading; 26 25 using HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression.Policies; … … 39 38 [Creatable(CreatableAttribute.Categories.DataAnalysisRegression, Priority = 250)] 40 39 public class MctsSymbolicRegressionAlgorithm : BasicAlgorithm { 41 public override Type ProblemType { 40 public override Type ProblemType 41 { 42 42 get { return typeof(IRegressionProblem); } 43 43 } 44 public new IRegressionProblem Problem { 44 public new IRegressionProblem Problem 45 { 45 46 get { return (IRegressionProblem)base.Problem; } 46 47 set { base.Problem = value; } 48 } 49 public override bool SupportsPause 50 { 51 get { return false; } 47 52 } 48 53 … … 68 73 69 74 #region ParameterProperties 70 public IFixedValueParameter<IntValue> IterationsParameter { 75 public IFixedValueParameter<IntValue> IterationsParameter 76 { 71 77 get { return (IFixedValueParameter<IntValue>)Parameters[IterationsParameterName]; } 72 78 } 73 public IFixedValueParameter<IntValue> MaxVariableReferencesParameter { 79 public IFixedValueParameter<IntValue> MaxVariableReferencesParameter 80 { 74 81 get { return (IFixedValueParameter<IntValue>)Parameters[MaxVariablesParameterName]; } 75 82 } 76 public IFixedValueParameter<BoolValue> ScaleVariablesParameter { 83 public IFixedValueParameter<BoolValue> ScaleVariablesParameter 84 { 77 85 get { return (IFixedValueParameter<BoolValue>)Parameters[ScaleVariablesParameterName]; } 78 86 } 79 public IFixedValueParameter<IntValue> ConstantOptimizationIterationsParameter { 87 public IFixedValueParameter<IntValue> ConstantOptimizationIterationsParameter 88 { 80 89 get { return (IFixedValueParameter<IntValue>)Parameters[ConstantOptimizationIterationsParameterName]; } 81 90 } 82 public IValueParameter<IPolicy> PolicyParameter { 91 public IValueParameter<IPolicy> PolicyParameter 92 { 83 93 get { return (IValueParameter<IPolicy>)Parameters[PolicyParameterName]; } 84 94 } 85 public IFixedValueParameter<DoubleValue> PunishmentFactorParameter { 95 public IFixedValueParameter<DoubleValue> PunishmentFactorParameter 96 { 86 97 get { return (IFixedValueParameter<DoubleValue>)Parameters[PunishmentFactorParameterName]; } 87 98 } 88 public IValueParameter<ICheckedItemList<StringValue>> AllowedFactorsParameter { 99 public IValueParameter<ICheckedItemList<StringValue>> AllowedFactorsParameter 100 { 89 101 get { return (IValueParameter<ICheckedItemList<StringValue>>)Parameters[AllowedFactorsParameterName]; } 90 102 } 91 public IFixedValueParameter<IntValue> SeedParameter { 103 public IFixedValueParameter<IntValue> SeedParameter 104 { 92 105 get { return (IFixedValueParameter<IntValue>)Parameters[SeedParameterName]; } 93 106 } 94 public FixedValueParameter<BoolValue> SetSeedRandomlyParameter { 107 public FixedValueParameter<BoolValue> SetSeedRandomlyParameter 108 { 95 109 get { return (FixedValueParameter<BoolValue>)Parameters[SetSeedRandomlyParameterName]; } 96 110 } 97 public IFixedValueParameter<IntValue> UpdateIntervalParameter { 111 public IFixedValueParameter<IntValue> UpdateIntervalParameter 112 { 98 113 get { return (IFixedValueParameter<IntValue>)Parameters[UpdateIntervalParameterName]; } 99 114 } 100 public IFixedValueParameter<BoolValue> CreateSolutionParameter { 115 public IFixedValueParameter<BoolValue> CreateSolutionParameter 116 { 101 117 get { return (IFixedValueParameter<BoolValue>)Parameters[CreateSolutionParameterName]; } 102 118 } … … 104 120 105 121 #region Properties 106 public int Iterations { 122 public int Iterations 123 { 107 124 get { return IterationsParameter.Value.Value; } 108 125 set { IterationsParameter.Value.Value = value; } 109 126 } 110 public int Seed { 127 public int Seed 128 { 111 129 get { return SeedParameter.Value.Value; } 112 130 set { SeedParameter.Value.Value = value; } 113 131 } 114 public bool SetSeedRandomly { 132 public bool SetSeedRandomly 133 { 115 134 get { return SetSeedRandomlyParameter.Value.Value; } 116 135 set { SetSeedRandomlyParameter.Value.Value = value; } 117 136 } 118 public int MaxVariableReferences { 137 public int MaxVariableReferences 138 { 119 139 get { return MaxVariableReferencesParameter.Value.Value; } 120 140 set { MaxVariableReferencesParameter.Value.Value = value; } 121 141 } 122 public IPolicy Policy { 142 public IPolicy Policy 143 { 123 144 get { return PolicyParameter.Value; } 124 145 set { PolicyParameter.Value = value; } 125 146 } 126 public double PunishmentFactor { 147 public double PunishmentFactor 148 { 127 149 get { return PunishmentFactorParameter.Value.Value; } 128 150 set { PunishmentFactorParameter.Value.Value = value; } 129 151 } 130 public ICheckedItemList<StringValue> AllowedFactors { 152 public ICheckedItemList<StringValue> AllowedFactors 153 { 131 154 get { return AllowedFactorsParameter.Value; } 132 155 } 133 public int ConstantOptimizationIterations { 156 public int ConstantOptimizationIterations 157 { 134 158 get { return ConstantOptimizationIterationsParameter.Value.Value; } 135 159 set { ConstantOptimizationIterationsParameter.Value.Value = value; } 136 160 } 137 public bool ScaleVariables { 161 public bool ScaleVariables 162 { 138 163 get { return ScaleVariablesParameter.Value.Value; } 139 164 set { ScaleVariablesParameter.Value.Value = value; } 140 165 } 141 public bool CreateSolution { 166 public bool CreateSolution 167 { 142 168 get { return CreateSolutionParameter.Value.Value; } 143 169 set { CreateSolutionParameter.Value.Value = value; } -
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNE.cs
r14518 r14558 247 247 if (!plot.Rows.ContainsKey(rowName)) { 248 248 plot.Rows.Add(dataRows.ContainsKey(rowName) ? dataRows[rowName] : new ScatterPlotDataRow(rowName, "", new List<Point2D<double>>())); 249 } else plot.Rows[rowName].Points.Clear(); 250 plot.Rows[rowName].Points.AddRange(dataRowLookup[rowName].Select(i => new Point2D<double>(lowDimData[i, 0], lowDimData[i, 1]))); 249 } 250 //else plot.Rows[rowName].Points.Clear(); 251 plot.Rows[rowName].Points.Replace(dataRowLookup[rowName].Select(i => new Point2D<double>(lowDimData[i, 0], lowDimData[i, 1]))); 252 //plot.Rows[rowName].Points.AddRange(); 251 253 } 252 254 } -
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNEAnalysis.cs
r14518 r14558 44 44 [StorableClass] 45 45 public sealed class TSNEAnalysis : BasicAlgorithm { 46 46 public override bool SupportsPause 47 { 48 get { return false; } 49 } 47 50 public override Type ProblemType 48 51 {
Note: See TracChangeset
for help on using the changeset viewer.