Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/12 13:12:48 (12 years ago)
Author:
gkronber
Message:

#1797 added an interface IConstrainedValueParameter, added a test case to check the name, visibility and type of the parameter-property for constrainedValueParameters, corrected all properties in IParameterizedItems

Location:
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassification.cs

    r7430 r8121  
    4646
    4747    #region parameter properties
    48     public IValueParameter<StringValue> SvmTypeParameter {
    49       get { return (IValueParameter<StringValue>)Parameters[SvmTypeParameterName]; }
     48    public IConstrainedValueParameter<StringValue> SvmTypeParameter {
     49      get { return (IConstrainedValueParameter<StringValue>)Parameters[SvmTypeParameterName]; }
    5050    }
    51     public IValueParameter<StringValue> KernelTypeParameter {
    52       get { return (IValueParameter<StringValue>)Parameters[KernelTypeParameterName]; }
     51    public IConstrainedValueParameter<StringValue> KernelTypeParameter {
     52      get { return (IConstrainedValueParameter<StringValue>)Parameters[KernelTypeParameterName]; }
    5353    }
    5454    public IValueParameter<DoubleValue> NuParameter {
     
    6565    public StringValue SvmType {
    6666      get { return SvmTypeParameter.Value; }
     67      set { SvmTypeParameter.Value = value; }
    6768    }
    6869    public StringValue KernelType {
    6970      get { return KernelTypeParameter.Value; }
     71      set { KernelTypeParameter.Value = value; }
    7072    }
    7173    public DoubleValue Nu {
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegression.cs

    r7306 r8121  
    4747
    4848    #region parameter properties
    49     public IValueParameter<StringValue> SvmTypeParameter {
    50       get { return (IValueParameter<StringValue>)Parameters[SvmTypeParameterName]; }
     49    public IConstrainedValueParameter<StringValue> SvmTypeParameter {
     50      get { return (IConstrainedValueParameter<StringValue>)Parameters[SvmTypeParameterName]; }
    5151    }
    52     public IValueParameter<StringValue> KernelTypeParameter {
    53       get { return (IValueParameter<StringValue>)Parameters[KernelTypeParameterName]; }
     52    public IConstrainedValueParameter<StringValue> KernelTypeParameter {
     53      get { return (IConstrainedValueParameter<StringValue>)Parameters[KernelTypeParameterName]; }
    5454    }
    5555    public IValueParameter<DoubleValue> NuParameter {
     
    6969    public StringValue SvmType {
    7070      get { return SvmTypeParameter.Value; }
     71      set { SvmTypeParameter.Value = value; }
    7172    }
    7273    public StringValue KernelType {
    7374      get { return KernelTypeParameter.Value; }
     75      set { KernelTypeParameter.Value = value; }
    7476    }
    7577    public DoubleValue Nu {
Note: See TracChangeset for help on using the changeset viewer.