Changeset 16413
- Timestamp:
- 12/20/18 10:22:45 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 4 added
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Data.Views/3.3/HeuristicLab.Data.Views-3.3.csproj
r16372 r16413 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath> $(SolutionDir)\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 51 51 <DebugType>pdbonly</DebugType> 52 52 <Optimize>true</Optimize> 53 <OutputPath> $(SolutionDir)\bin\</OutputPath>53 <OutputPath>..\..\..\..\trunk\bin\</OutputPath> 54 54 <DefineConstants>TRACE</DefineConstants> 55 55 <ErrorReport>prompt</ErrorReport> … … 206 206 <Compile Include="StringConvertibleValueTupleView.Designer.cs"> 207 207 <DependentUpon>StringConvertibleValueTupleView.cs</DependentUpon> 208 </Compile> 209 <Compile Include="VariableRangesView.cs"> 210 <SubType>UserControl</SubType> 211 </Compile> 212 <Compile Include="VariableRangesView.Designer.cs"> 213 <DependentUpon>VariableRangesView.cs</DependentUpon> 208 214 </Compile> 209 215 <None Include="Plugin.cs.frame" /> … … 279 285 <Install>true</Install> 280 286 </BootstrapperPackage> 287 </ItemGroup> 288 <ItemGroup> 289 <EmbeddedResource Include="VariableRangesView.resx"> 290 <DependentUpon>VariableRangesView.cs</DependentUpon> 291 </EmbeddedResource> 281 292 </ItemGroup> 282 293 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/2971_named_intervals/HeuristicLab.Data/3.3/HeuristicLab.Data-3.3.csproj
r16372 r16413 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath> $(SolutionDir)\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 123 123 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 124 124 </Reference> 125 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 126 <SpecificVersion>False</SpecificVersion> 127 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Problems.DataAnalysis-3.4.dll</HintPath> 128 </Reference> 125 129 <Reference Include="System" /> 126 130 <Reference Include="System.Core"> … … 132 136 </ItemGroup> 133 137 <ItemGroup> 138 <Compile Include="VariableRanges.cs" /> 134 139 <None Include="Plugin.cs.frame" /> 135 140 <Compile Include="BoolArray.cs" /> … … 139 144 <Compile Include="ComparisonType.cs" /> 140 145 <Compile Include="EnumValue.cs" /> 146 <Compile Include="Interfaces\IVariableRanges.cs" /> 141 147 <Compile Include="Interfaces\IValueTypeArray.cs" /> 142 148 <Compile Include="Path Types\DirectoryValue.cs" /> -
branches/2971_named_intervals/HeuristicLab.Data/3.3/Interfaces/IVariableRanges.cs
r16371 r16413 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Common; 25 using HeuristicLab.Problems.DataAnalysis; 25 26 26 27 namespace HeuristicLab.Data { 27 public interface I StringConvertibleMatrix: IContent {28 public interface IVariableRanges : IContent { 28 29 int Rows { get; set; } 29 30 int Columns { get; set; } … … 35 36 36 37 bool Validate(string value, out string errorMessage); 37 string GetValue(int rowIndex, int columnIndex);38 bool SetValue(string va lue, int rowIndex, int columnIndex);38 Interval GetValue(string variable); 39 bool SetValue(string variable, Interval value); 39 40 40 41 event EventHandler ColumnsChanged; -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r16244 r16413 34 34 public class RegressionProblemData : DataAnalysisProblemData, IRegressionProblemData, IStorableContent { 35 35 protected const string TargetVariableParameterName = "TargetVariable"; 36 protected const string VariableRangesParameterName = "VariableRanges"; 36 37 public string Filename { get; set; } 37 38 … … 91 92 problemData.Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly())); 92 93 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 94 problemData.Parameters.Add(new FixedValueParameter<VariableRanges>(VariableRangesParameterName, new VariableRanges())); 93 95 emptyProblemData = problemData; 94 96 } … … 98 100 get { return (IConstrainedValueParameter<StringValue>)Parameters[TargetVariableParameterName]; } 99 101 } 102 103 public IFixedValueParameter<VariableRanges> VariableRangesParameter { 104 get { return (IFixedValueParameter<VariableRanges>)Parameters[VariableRangesParameterName]; } 105 } 106 100 107 public string TargetVariable { 101 108 get { return TargetVariableParameter.Value.Value; } … … 152 159 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 153 160 Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>(variables), variables.Where(x => x.Value == targetVariable).First())); 161 Parameters.Add(new FixedValueParameter<VariableRanges>(VariableRangesParameterName, new VariableRanges())); 154 162 RegisterParameterEvents(); 155 163 }
Note: See TracChangeset
for help on using the changeset viewer.