Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16796 for trunk


Ignore:
Timestamp:
04/16/19 23:12:05 (5 years ago)
Author:
gkronber
Message:

#2520: removed usages of AllowOneWay

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs

    r16565 r16796  
    9191    #region old storable format
    9292    // remove with HL 3.4
    93     [Storable(AllowOneWay = true)]
     93    [Storable(OldName = "SerializedTree")]
    9494    // to prevent storing the references to data caches in nodes
    9595    // seemingly, it is bad (performance-wise) to persist tuples (tuples are used as keys in a dictionary)
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleModel.cs

    r16763 r16796  
    153153      return new NeuralNetworkEnsembleClassificationSolution(this, new ClassificationEnsembleProblemData(problemData));
    154154    }
    155    
     155
    156156    #region persistence
    157157    [Storable]
     
    183183      }
    184184    }
    185     [Storable(AllowOneWay = true)]
     185    [Storable(OldName = "MultiLayerPerceptronEnsembleDfdnet")]
    186186    private double[] MultiLayerPerceptronEnsembleDfdnet {
    187187      set {
     
    197197      }
    198198    }
    199     [Storable(AllowOneWay = true)]
     199    [Storable(OldName = "MultiLayerPerceptronEnsembleNeurons")]
    200200    private double[] MultiLayerPerceptronEnsembleNeurons {
    201201      set { mlpEnsemble.innerobj.network.neurons = value; }
    202202    }
    203     [Storable(AllowOneWay = true)]
     203    [Storable(OldName = "MultiLayerPerceptronEnsembleSerializedMlp")]
    204204    private double[] MultiLayerPerceptronEnsembleSerializedMlp {
    205205      set {
     
    207207      }
    208208    }
    209     [Storable(AllowOneWay = true)]
     209    [Storable(OldName = "MultiLayerPerceptronStuctinfo")]
    210210    private int[] MultiLayerPerceptronStuctinfo {
    211211      set {
  • trunk/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs

    r16565 r16796  
    227227    internal DataRowHistogramAggregation? Aggregation { get; private set; }
    228228
    229     [Storable(Name = "Bins", AllowOneWay = true)]
     229    [Storable(OldName = "Bins")]
    230230    private int StorableBins { set { Bins = value; } }
    231     [Storable(Name = "ExactBins", AllowOneWay = true)]
     231    [Storable(OldName = "ExactBins")]
    232232    private bool StorableExactBins { set { ExactBins = value; } }
    233     [Storable(Name = "Aggregation", AllowOneWay = true)]
     233    [Storable(OldName = "Aggregation")]
    234234    private DataRowHistogramAggregation StorableAggregation { set { Aggregation = value; } }
    235235    #endregion
  • trunk/HeuristicLab.Analysis/3.3/DataVisualization/IndexedDataRow.cs

    r16565 r16796  
    6161    #region Backwards compatible code, remove with 3.4
    6262    // tuples are stored inefficiently
    63     [Storable(Name = "values", AllowOneWay = true)]
     63    [Storable(OldName = "values")]
    6464    private IEnumerable<Tuple<T, double>> StorableValues {
    6565      set { values = new ObservableList<Tuple<T, double>>(value); }
  • trunk/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlot.cs

    r16565 r16796  
    107107    #region Backwards compatible code, remove with 3.4
    108108    private ObservableList<PointF> points;
    109     [Storable(Name = "points", AllowOneWay = true)]
     109    [Storable(OldName = "points")]
    110110    private ObservableList<PointF> StorablePoints {
    111111      set { points = value; }
    112112    }
    113113    private string xAxisName;
    114     [Storable(Name = "xAxisName", AllowOneWay = true)]
     114    [Storable(OldName = "xAxisName")]
    115115    private string StorableXAxisName {
    116116      set { xAxisName = value; }
    117117    }
    118118    private string yAxisName;
    119     [Storable(Name = "yAxisName", AllowOneWay = true)]
     119    [Storable(OldName = "yAxisName")]
    120120    private string StorableYAxisName {
    121121      set { yAxisName = value; }
  • trunk/HeuristicLab.Analysis/3.3/PopulationSimilarityAnalysis/PopulationSimilarityAnalyzer.cs

    r16565 r16796  
    4444    #region Backwards compatible code, remove with 3.4
    4545    private ISolutionSimilarityCalculator oldSimilarityCalculator;
    46     [Storable(AllowOneWay = true, Name = "SimilarityCalculator")]
     46    [Storable(OldName = "SimilarityCalculator")]
    4747    [Obsolete]
    4848    private ISolutionSimilarityCalculator SimilarityCalculator { set { oldSimilarityCalculator = value; } }
  • trunk/HeuristicLab.Optimization/3.3/MetaOptimizers/BatchRun.cs

    r16565 r16796  
    112112    // BackwardsCompatibility3.3
    113113    #region Backwards compatible code (remove with 3.4)
    114     [Storable(AllowOneWay = true)]
     114    [Storable(OldName = "algorithm")]
    115115    private IAlgorithm algorithm {
    116116      set { optimizer = value; }
  • trunk/HeuristicLab.Optimization/3.3/Problems/Problem.cs

    r16565 r16796  
    8484    // BackwardsCompatibility3.3
    8585    #region Backwards compatible code, remove with 3.4
    86     [Storable(Name = "Operators", AllowOneWay = true)]
     86    [Storable(OldName = "Operators")]
    8787    private IEnumerable<IOperator> StorableOperators {
    8888      set {
  • trunk/HeuristicLab.Optimization/3.3/RunCollection.cs

    r16565 r16796  
    125125    // BackwardsCompatibility3.3
    126126    #region Backwards compatible code, remove with 3.4
    127     [Storable(AllowOneWay = true)]
     127    [Storable(OldName = "AlgorithmName")]
    128128    private string AlgorithmName {
    129129      set { optimizerName = value; }
  • trunk/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableMemberInfo.cs

    r16565 r16796  
    4444      DefaultValue = attribute.DefaultValue;
    4545      MemberInfo = memberInfo;
    46       if (!attribute.AllowOneWay)
     46      if (!string.IsNullOrEmpty(attribute.OldName))
    4747        CheckPropertyAccess(memberInfo as PropertyInfo);
    4848    }
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs

    r16565 r16796  
    133133    #region Backwards compatible code, remove with 3.5
    134134    private double[,] storableData;
    135     //name alias used to suppport backwards compatibility
    136     [Storable(Name = "data", AllowOneWay = true)]
     135    //name alias used to support backwards compatibility
     136    [Storable(OldName = "data")]
    137137    private double[,] StorableData { set { storableData = value; } }
    138138
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleModel.cs

    r16565 r16796  
    7373
    7474    #region backwards compatiblity 3.3.5
    75     [Storable(Name = "models", AllowOneWay = true)]
     75    [Storable(OldName = "models")]
    7676    private List<IRegressionModel> OldStorableModels {
    7777      set { models = value; }
  • trunk/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r16565 r16796  
    175175    }
    176176
    177     [Storable(Name = "operators", AllowOneWay = true)]
     177    [Storable(OldName = "operators")]
    178178    private List<IOperator> StorableOperators {
    179179      set { Operators.AddRange(value); }
Note: See TracChangeset for help on using the changeset viewer.