Changeset 5494
- Timestamp:
- 02/16/11 15:00:11 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring
- Files:
-
- 4 added
- 12 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj
r5477 r5494 127 127 <Compile Include="Crossovers\SymbolicExpressionTreeCrossover.cs" /> 128 128 <Compile Include="Formatters\SymbolicExpressionTreeStringFormatter.cs" /> 129 <Compile Include="Interfaces\ISymbolicExpressionTreeAnalyzer.cs" /> 130 <Compile Include="Interfaces\ISymbolicExpressionTreeArchitectureManipulator.cs" /> 131 <Compile Include="Interfaces\ISymbolicExpressionTreeCreator.cs" /> 132 <Compile Include="Interfaces\ISymbolicExpressionTreeCrossover.cs" /> 129 <Compile Include="Interfaces\ISymbol.cs" /> 130 <Compile Include="Interfaces\ISymbolicExpressionTree.cs" /> 131 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeAnalyzer.cs" /> 132 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeArchitectureManipulator.cs" /> 133 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeCreator.cs" /> 134 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeCrossover.cs" /> 133 135 <Compile Include="Interfaces\ISymbolicExpressionTreeNode.cs" /> 134 136 <Compile Include="Interfaces\ISymbolicExpressionTreeStringFormatter.cs" /> 137 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeSizeConstraintOperator.cs" /> 135 138 <Compile Include="Manipulators\ChangeNodeTypeManipulation.cs" /> 136 <Compile Include="Interfaces\ ISymbolicExpressionTreeManipulator.cs" />139 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeManipulator.cs" /> 137 140 <Compile Include="Manipulators\ReplaceBranchManipulation.cs" /> 138 141 <Compile Include="Manipulators\FullTreeShaker.cs" /> … … 155 158 <Compile Include="Creators\ProbabilisticTreeCreator.cs" /> 156 159 <Compile Include="HeuristicLabEncodingsSymbolicExpressionTreeEncodingPlugin.cs" /> 157 <Compile Include="Interfaces\ ISymbolicExpressionTreeOperator.cs" />160 <Compile Include="Interfaces\Operators\ISymbolicExpressionTreeOperator.cs" /> 158 161 <Compile Include="SymbolicExpressionTree.cs" /> 159 162 <Compile Include="Properties\AssemblyInfo.cs" /> -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionGrammar.cs
r5445 r5494 22 22 using System.Collections.Generic; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;25 24 26 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 27 26 public interface ISymbolicExpressionGrammar : IItem { 28 Symbol StartSymbol { get; }29 void AddSymbol( Symbol symbol);30 void RemoveSymbol( Symbol symbol);31 IEnumerable< Symbol> Symbols{ get; }32 bool ContainsSymbol( Symbol symbol);33 void SetAllowedChild( Symbol parent,Symbol child, int argumentIndex);34 bool IsAllowedChild( Symbol parent,Symbol child, int argumentIndex);35 int GetMinExpressionLength( Symbol start);36 int GetMaxExpressionLength( Symbol start);37 int GetMinExpressionDepth( Symbol start);38 int GetMinSubtreeCount( Symbol symbol);39 void SetMinSubtreeCount( Symbol symbol, int value);40 int GetMaxSubtreeCount( Symbol symbol);41 void SetMaxSubtreeCount( Symbol symbol, int value);27 ISymbol StartSymbol { get; } 28 void AddSymbol(ISymbol symbol); 29 void RemoveSymbol(ISymbol symbol); 30 IEnumerable<ISymbol> ISymbol { get; } 31 bool ContainsSymbol(ISymbol symbol); 32 void SetAllowedChild(ISymbol parent, ISymbol child, int argumentIndex); 33 bool IsAllowedChild(ISymbol parent, ISymbol child, int argumentIndex); 34 int GetMinExpressionLength(ISymbol start); 35 int GetMaxExpressionLength(ISymbol start); 36 int GetMinExpressionDepth(ISymbol start); 37 int GetMinSubtreeCount(ISymbol symbol); 38 void SetMinSubtreeCount(ISymbol symbol, int value); 39 int GetMaxSubtreeCount(ISymbol symbol); 40 void SetMaxSubtreeCount(ISymbol symbol, int value); 42 41 } 43 42 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeNode.cs
r5445 r5494 21 21 using System.Collections.Generic; 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;24 23 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 25 public interface ISymbolicExpressionTreeNode {24 public interface ISymbolicExpressionTreeNode : IItem { 26 25 ISymbolicExpressionGrammar Grammar { get; } 27 26 28 Symbol Symbol { get; }27 ISymbol Symbol { get; } 29 28 bool HasLocalParameters { get; } 30 IEnumerable< Symbol> GetAllowedSymbols(int argumentIndex);29 IEnumerable<ISymbol> GetAllowedSymbols(int argumentIndex); 31 30 32 31 int GetHeight(); … … 35 34 int GetMaxSubtreeCount(); 36 35 37 IEnumerable< SymbolicExpressionTreeNode> IterateNodesPostfix();38 IEnumerable< SymbolicExpressionTreeNode> IterateNodesPrefix();36 IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPostfix(); 37 IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPrefix(); 39 38 40 I List<SymbolicExpressionTreeNode> SubTrees { get; }41 void AddSubTree( SymbolicExpressionTreeNode tree);42 void InsertSubTree(int index, SymbolicExpressionTreeNode tree);39 IEnumerable<SymbolicExpressionTreeNode> SubTrees { get; } 40 void AddSubTree(ISymbolicExpressionTreeNode tree); 41 void InsertSubTree(int index, ISymbolicExpressionTreeNode tree); 43 42 void RemoveSubTree(int index); 44 43 45 44 void ResetLocalParameters(IRandom random); 46 45 void ShakeLocalParameters(IRandom random, double shakingFactor); 47 48 49 46 } 50 47 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeStringFormatter.cs
r5445 r5494 20 20 #endregion 21 21 22 using System;23 22 using HeuristicLab.Core; 24 23 25 24 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 public interface ISymbolicExpressionTreeStringFormatter : INamedItem {27 string Format( SymbolicExpressionTree symbolicExpressionTree);25 public interface ISymbolicExpressionTreeStringFormatter : INamedItem { 26 string Format(ISymbolicExpressionTree symbolicExpressionTree); 28 27 } 29 28 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeAnalyzer.cs
r5483 r5494 20 20 #endregion 21 21 22 using HeuristicLab.Core; 22 23 using HeuristicLab.Optimization; 23 using HeuristicLab.Parameters;24 24 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Interfaces{25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 26 /// <summary> 27 27 /// Interface for analyzers that can be applied to symbolic expression trees. 28 28 /// </summary> 29 29 public interface ISymbolicExpressionTreeAnalyzer : IAnalyzer { 30 ScopeTreeLookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter { get; }30 IScopeTreeLookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } 31 31 } 32 32 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeArchitectureManipulator.cs
r5483 r5494 23 23 using HeuristicLab.Data; 24 24 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Interfaces{25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 26 /// <summary> 27 27 /// Interface for operators that manipulate symbolic expression trees. … … 30 30 IValueLookupParameter<IntValue> MaxFunctionDefinitionsParameter { get; } 31 31 IValueLookupParameter<IntValue> MaxFunctionArgumentsParameter { get; } 32 33 void ModifyArchitecture(34 IRandom random,35 SymbolicExpressionTree symbolicExpressionTree,36 ISymbolicExpressionGrammar grammar,37 IntValue maxTreeSize, IntValue maxTreeHeight,38 IntValue maxFunctionDefiningBranches, IntValue maxFunctionArguments,39 out bool success);40 32 } 41 33 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeCreator.cs
r5483 r5494 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Data;24 23 using HeuristicLab.Optimization; 25 24 26 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Interfaces{25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 27 26 /// <summary> 28 27 /// Interface for operators that create symbolic expression trees. 29 28 /// </summary> 30 29 public interface ISymbolicExpressionTreeCreator : ISymbolicExpressionTreeOperator, ISolutionCreator { 31 ILookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } 32 IValueLookupParameter<IntValue> MaxFunctionDefinitionsParameter { get; } 33 IValueLookupParameter<IntValue> MaxFunctionArgumentsParameter { get; } 30 ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } 34 31 } 35 32 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeCrossover.cs
r5483 r5494 23 23 using HeuristicLab.Optimization; 24 24 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Interfaces{25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 26 /// <summary> 27 27 /// Interface for crossover operators that can be applied to symbolic expression trees. 28 28 /// </summary> 29 29 public interface ISymbolicExpressionTreeCrossover : ISymbolicExpressionTreeOperator, ICrossover { 30 ILookupParameter<ItemArray< SymbolicExpressionTree>> ParentsParameter { get; }31 ILookupParameter< SymbolicExpressionTree> ChildParameter { get; }30 ILookupParameter<ItemArray<ISymbolicExpressionTree>> ParentsParameter { get; } 31 ILookupParameter<ISymbolicExpressionTree> ChildParameter { get; } 32 32 } 33 33 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeManipulator.cs
r5483 r5494 23 23 using HeuristicLab.Optimization; 24 24 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Interfaces{25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 26 /// <summary> 27 27 /// Interface for operators that manipulate symbolic expression trees. -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeOperator.cs
r5483 r5494 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Data;24 23 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Interfaces{24 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 25 /// <summary> 27 26 /// Interface for operators that can be applied to symbolic expression trees. 28 27 /// </summary> 29 28 public interface ISymbolicExpressionTreeOperator : IOperator { 30 IValueLookupParameter<IntValue> MaxTreeSizeParameter { get; }31 IValueLookupParameter<IntValue> MaxTreeHeightParameter { get; }32 ILookupParameter<ISymbolicExpressionGrammar> SymbolicExpressionGrammarParameter { get; }33 29 } 34 30 } -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/SymbolicExpressionTreeManipulator.cs
r5445 r5494 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Data; 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Interfaces;26 25 using HeuristicLab.Parameters; 27 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 27 29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Manipulators{28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 30 29 /// <summary> 31 30 /// A base class for operators that manipulate real-valued vectors. -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Classification/3.4/Interfaces/IClassificationModel.cs
r5487 r5494 23 23 namespace HeuristicLab.Problems.DataAnalysis.Classification { 24 24 public interface IClassificationModel : IDataAnalysisModel { 25 IEnumerable<double> GetEstimatedValues(IClassificationProblemData problemData, int start, int end);26 IEnumerable< double> GetEstimatedClassValues(IClassificationProblemData problemData, int start, int end);25 IEnumerable<double> GetEstimatedValues(IClassificationProblemData problemData, IEnumerable<int> rows); 26 IEnumerable<string> GetEstimatedClassValues(IClassificationProblemData problemData, IEnumerable<int> rows); 27 27 } 28 28 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Classification/3.4/Interfaces/IClassificationProblemData.cs
r5487 r5494 23 23 namespace HeuristicLab.Problems.DataAnalysis.Classification { 24 24 public interface IClassificationProblemData : IDataAnalysisProblemData { 25 string TargetVariable { get; } 25 26 int NumberOfClasses { get; } 27 26 28 IEnumerable<string> ClassNames { get; } 27 IEnumerable<double> SortedClassValues { get; } 29 IEnumerable<double> ClassValues { get; } 30 28 31 string GetClassName(double classValue); 29 32 double GetClassValue(string className); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Classification/3.4/Interfaces/IClassificationSolution.cs
r5487 r5494 23 23 public interface IClassificationSolution : IDataAnalysisSolution { 24 24 new IClassificationModel Model { get; } 25 new IClassificationProblemData Problem { get; }25 new IClassificationProblemData ProblemData { get; } 26 26 } 27 27 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Regression/3.4/Interaces/IRegressionModel.cs
r5488 r5494 23 23 namespace HeuristicLab.Problems.DataAnalysis.Regression { 24 24 public interface IRegressionModel : IDataAnalysisModel { 25 IEnumerable<double> GetEstimatedValues(IRegressionProblemData problemData, int start, int end);25 IEnumerable<double> GetEstimatedValues(IRegressionProblemData problemData, IEnumerable<int> rows); 26 26 } 27 27 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Regression/3.4/Interaces/IRegressionProblemData.cs
r5488 r5494 22 22 namespace HeuristicLab.Problems.DataAnalysis.Regression { 23 23 public interface IRegressionProblemData : IDataAnalysisProblemData { 24 string TargetVariable { get; } 24 25 } 25 26 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r5474 r5494 209 209 </BootstrapperPackage> 210 210 </ItemGroup> 211 <ItemGroup /> 211 <ItemGroup> 212 <Folder Include="Interfaces\" /> 213 </ItemGroup> 212 214 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 213 215 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblemData.cs
r5486 r5494 27 27 Dataset Dataset { get; } 28 28 IEnumerable<string> InputVariables { get; } 29 string TargetVariable { get; }30 29 } 31 30 }
Note: See TracChangeset
for help on using the changeset viewer.