Changeset 5975
- Timestamp:
- 04/07/11 10:31:48 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/SupportVectorMachineModelSupportVectorsView.cs
r5834 r5975 25 25 26 26 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 27 [View("S upportVectorMachineModel SupportVectorsView")]27 [View("SVM Support Vectors")] 28 28 [Content(typeof(SupportVectorMachineModel), false)] 29 29 public partial class SupportVectorMachineModelSupportVectorsView : AsynchronousContentView { -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/SupportVectorMachineModelView.cs
r5834 r5975 26 26 27 27 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 28 [View("S upportVectorMachineModel view")]28 [View("SVM Model")] 29 29 [Content(typeof(SupportVectorMachineModel), true)] 30 30 public partial class SupportVectorMachineModelView : AsynchronousContentView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/SymbolicDiscriminantFunctionClassificationSolutionView.cs
r5834 r5975 27 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views { 28 28 [Content(typeof(SymbolicDiscriminantFunctionClassificationSolution), true)] 29 [View("SymbolicDiscriminan 29 [View("SymbolicDiscriminantFunctionClassificationSolution View")] 30 30 public partial class SymbolicDiscriminantFunctionClassificationSolutionView : DiscriminantFunctionClassificationSolutionView { 31 31 public SymbolicDiscriminantFunctionClassificationSolutionView() { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs
r5818 r5975 20 20 #endregion 21 21 22 using System.Collections.Generic; 23 using System.Linq; 22 using System; 24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; 26 25 using HeuristicLab.Data; 27 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 using HeuristicLab.Operators; 29 using HeuristicLab.Parameters; 26 using HeuristicLab.Optimization; 30 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Optimization;32 using System;33 28 34 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 39 34 [Item(Name = "SymbolicDiscriminantFunctionClassificationSolution", Description = "Represents a symbolic classification solution (model + data) and attributes of the solution like accuracy and complexity.")] 40 35 public sealed class SymbolicDiscriminantFunctionClassificationSolution : DiscriminantFunctionClassificationSolution, ISymbolicClassificationSolution { 41 private const string ModelLengthResultName = "Model Length";42 private const string ModelDepthResultName = "Model Depth";36 private const string ModelLengthResultName = "Model Length"; 37 private const string ModelDepthResultName = "Model Depth"; 43 38 44 39 public new ISymbolicDiscriminantFunctionClassificationModel Model { … … 87 82 ModelLength = Model.SymbolicExpressionTree.Length; 88 83 ModelDepth = Model.SymbolicExpressionTree.Depth; 89 } 84 } 90 85 } 91 86 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r5914 r5975 34 34 [Item(Name = "SymbolicRegressionSolution", Description = "Represents a symbolic regression solution (model + data) and attributes of the solution like accuracy and complexity.")] 35 35 public sealed class SymbolicRegressionSolution : RegressionSolution, ISymbolicRegressionSolution { 36 private const string ModelLengthResultName = "Model Length";37 private const string ModelDepthResultName = "Model Depth";36 private const string ModelLengthResultName = "Model Length"; 37 private const string ModelDepthResultName = "Model Depth"; 38 38 39 39 public new ISymbolicRegressionModel Model { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.cs
r5834 r5975 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 27 [View(" SymbolicDataAnalysisModel GraphicalRepresentation")]27 [View("Graphical Representation")] 28 28 [Content(typeof(ISymbolicDataAnalysisModel), true)] 29 29 public partial class GraphicalSymbolicDataAnalysisModelView : AsynchronousContentView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/RunCollectionVariableImpactView.cs
r5834 r5975 32 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 33 33 [Content(typeof(RunCollection), false)] 34 [View(" RunCollection VariableImpacts")]34 [View("Variable Impacts")] 35 35 public sealed partial class RunCollectionVariableImpactView : AsynchronousContentView { 36 36 private const string variableImpactResultName = "Variable impacts"; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/TextualSymbolicDataAnalysisModelView.cs
r5834 r5975 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 27 [View(" SymbolicDataAnalysisModel TextualRepresentation")]27 [View("Textual Representation")] 28 28 [Content(typeof(ISymbolicDataAnalysisModel), false)] 29 29 public partial class TextualSymbolicDataAnalysisModelView : AsynchronousContentView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationSolutionConfusionMatrixView.cs
r5834 r5975 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 [View("C lassificationSolution ConfusionMatrix")]31 [View("Confusion Matrix")] 32 32 [Content(typeof(IClassificationSolution))] 33 33 public partial class ClassificationSolutionConfusionMatrixView : ItemView, IClassificationSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationSolutionEstimatedClassValuesView.cs
r5834 r5975 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 [View(" ClassificationSolution EstimatedClassValues")]31 [View("Estimated Class Values")] 32 32 [Content(typeof(IClassificationSolution))] 33 33 public partial class ClassificationSolutionEstimatedClassValuesView : ItemView, IClassificationSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationRocCurvesView.cs
r5834 r5975 32 32 using HeuristicLab.MainForm.WindowsForms; 33 33 namespace HeuristicLab.Problems.DataAnalysis.Views { 34 [View(" DiscriminantFunctionClassificationSolutionROC Curves")]34 [View("ROC Curves")] 35 35 [Content(typeof(IDiscriminantFunctionClassificationSolution))] 36 36 public partial class DiscriminantFunctionClassificationRocCurvesView : ItemView, IDiscriminantFunctionClassificationSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionEstimatedClassValuesView.cs
r5834 r5975 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 [View(" DiscriminantFunctionClassificationSolution EstimatedClassValues")]31 [View("Estimated Class Values")] 32 32 [Content(typeof(IDiscriminantFunctionClassificationSolution))] 33 33 public partial class DiscriminantFunctionClassificationSolutionEstimatedClassValuesView : ItemView, IDiscriminantFunctionClassificationSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs
r5834 r5975 32 32 33 33 namespace HeuristicLab.Problems.DataAnalysis.Views { 34 [View(" DsicriminantFunctionClassificationSolution ThresholdView")]34 [View("Classification Threshold")] 35 35 [Content(typeof(IDiscriminantFunctionClassificationSolution), true)] 36 36 public sealed partial class DiscriminantFunctionClassificationSolutionThresholdView : ItemView, IDiscriminantFunctionClassificationSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Clustering/ClusteringSolutionEstimatedClusterView.cs
r5853 r5975 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 [View(" ClusteringSolution EstimatedCluster")]31 [View("Estimated Clusters")] 32 32 [Content(typeof(IClusteringSolution))] 33 33 public partial class ClusteringSolutionEstimatedClusterView : ItemView, IClusteringSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/ClusteringSolutionView.cs
r5853 r5975 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis.Views { 28 [View(" RegressionSolution View")]28 [View("ClusteringSolution View")] 29 29 [Content(typeof(ClusteringSolution), true)] 30 30 public partial class ClusteringSolutionView : DataAnalysisSolutionView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionEstimatedValuesView.cs
r5834 r5975 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 [View(" RegressionSolution EstimatedValues")]31 [View("Estimated Values")] 32 32 [Content(typeof(IRegressionSolution))] 33 33 public partial class RegressionSolutionEstimatedValuesView : ItemView, IRegressionSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionLineChartView.cs
r5834 r5975 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 [View(" RegressionSolution LineChart")]31 [View("Line Chart")] 32 32 [Content(typeof(IRegressionSolution))] 33 33 public partial class RegressionSolutionLineChartView : ItemView, IRegressionSolutionEvaluationView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionScatterPlotView.cs
r5834 r5975 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis.Views { 32 [View(" RegressionSolution ScatterPlot")]32 [View("Scatter Plot")] 33 33 [Content(typeof(IRegressionSolution))] 34 34 public partial class RegressionSolutionScatterPlotView : ItemView, IRegressionSolutionEvaluationView { -
trunk/sources/HeuristicLab.Selection/3.3/NoSameMatesSelector.cs
r5957 r5975 1 1 using System; 2 using System.Collections.Generic; 2 3 using System.Linq; 3 using System.Collections.Generic;4 4 using System.Threading; 5 5 using HeuristicLab.Common; … … 55 55 [StorableConstructor] 56 56 protected NoSameMatesSelector(bool deserializing) : base(deserializing) { } 57 protected NoSameMatesSelector(NoSameMatesSelector original, Cloner cloner) : base(original, cloner) { 57 protected NoSameMatesSelector(NoSameMatesSelector original, Cloner cloner) 58 : base(original, cloner) { 58 59 RegisterParameterEventHandlers(); 59 60 } … … 62 63 } 63 64 64 public NoSameMatesSelector() : base() { 65 public NoSameMatesSelector() 66 : base() { 65 67 #region Create parameters 66 68 Parameters.Add(new ValueParameter<ISingleObjectiveSelector>(SelectorParameterName, "The inner selection operator to select the parents.", new TournamentSelector())); … … 85 87 Parameters.Add(new ValueParameter<ISingleObjectiveSelector>(SelectorParameterName, "The inner selection operator to select the parents.", selector)); 86 88 } 87 } 89 } 88 90 // FixedValueParameter for quality difference percentage, max attempts, use range 89 91 if (Parameters.ContainsKey(QualityDifferencePercentageParameterName)) { … … 153 155 ScopeList parents = CurrentScope.SubScopes[1].SubScopes; 154 156 155 for (int indexParent1 = 0, indexParent2 = 1; 156 indexParent1 < parents.Count - 1 && selectedParents < parentsToSelect - 1; 157 for (int indexParent1 = 0, indexParent2 = 1; 158 indexParent1 < parents.Count - 1 && selectedParents < parentsToSelect - 1; 157 159 indexParent1 += 2, indexParent2 += 2) { 158 160 double qualityParent1 = ((DoubleValue)parents[indexParent1].Variables[qualityName].Value).Value; … … 168 170 } 169 171 170 if (parentsDifferent) { 172 if (parentsDifferent) { 171 173 // inner selector already copied scopes, no cloning necessary here 172 174 selected[selectedParents++] = parents[indexParent1]; … … 204 206 if (CopySelected.Value != true) { 205 207 CopySelected.Value = true; 206 throw new ArgumentException(Name + ": CopySelected must always be true."); 207 } 208 } 209 #endregion 210 211 #region Helpers 208 } 209 } 210 #endregion 211 212 #region Helpers 212 213 private void ParameterizeSelector(ISingleObjectiveSelector selector) { 213 214 selector.CopySelected = new BoolValue(true); // must always be true
Note: See TracChangeset
for help on using the changeset viewer.