Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/17 13:01:00 (7 years ago)
Author:
abeham
Message:

#2701: disabled learning

  • updated HeuristicLab.Data to trunk
Location:
branches/MemPRAlgorithm/HeuristicLab.Data
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/MemPRAlgorithm/HeuristicLab.Data

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/crossvalidation-2434/HeuristicLab.Datamergedeligible
      /stable/HeuristicLab.Datamergedeligible
      /trunk/sources/HeuristicLab.Datamergedeligible
      /branches/1721-RandomForestPersistence/HeuristicLab.Data10321-10322
      /branches/Algorithms.GradientDescent/HeuristicLab.Data5516-5520
      /branches/Benchmarking/sources/HeuristicLab.Data6917-7005
      /branches/CloningRefactoring/HeuristicLab.Data4656-4721
      /branches/CodeEditor/HeuristicLab.Data11700-11806
      /branches/DataAnalysis Refactoring/HeuristicLab.Data5471-5808
      /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Data5815-6180
      /branches/DataAnalysis/HeuristicLab.Data4458-4459,​4462,​4464
      /branches/DataPreprocessing/HeuristicLab.Data10085-11101
      /branches/GP.Grammar.Editor/HeuristicLab.Data6284-6795
      /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Data5060
      /branches/HLScript/HeuristicLab.Data10331-10358
      /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Data11570-12508
      /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Data6123-9799
      /branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data11130-12721
      /branches/HiveStatistics/sources/HeuristicLab.Data12440-12877
      /branches/LogResidualEvaluator/HeuristicLab.Data10202-10483
      /branches/NET40/sources/HeuristicLab.Data5138-5162
      /branches/NSGA-II Changes/HeuristicLab.Data12033-12122
      /branches/ParallelEngine/HeuristicLab.Data5175-5192
      /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Data7568-7810
      /branches/QAPAlgorithms/HeuristicLab.Data6350-6627
      /branches/Restructure trunk solution/HeuristicLab.Data6828
      /branches/RuntimeOptimizer/HeuristicLab.Data8943-9078
      /branches/ScatterSearch (trunk integration)/HeuristicLab.Data7787-8333
      /branches/SlaveShutdown/HeuristicLab.Data8944-8956
      /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Data10204-10479
      /branches/SuccessProgressAnalysis/HeuristicLab.Data5370-5682
      /branches/Trunk/HeuristicLab.Data6829-6865
      /branches/UnloadJobs/HeuristicLab.Data9168-9215
      /branches/VNS/HeuristicLab.Data5594-5752
      /branches/histogram/HeuristicLab.Data5959-6341
  • branches/MemPRAlgorithm/HeuristicLab.Data/3.3

  • branches/MemPRAlgorithm/HeuristicLab.Data/3.3/EnumValue.cs

    r14185 r14680  
    5252    private EnumValue(EnumValue<T> original, Cloner cloner)
    5353      : base(original, cloner) {
    54       this.value = original.value;
    55       this.readOnly = original.readOnly;
    5654    }
    5755
     
    6462    }
    6563  }
     64
     65  public static class EnumHelper {
     66    public static T SetFlag<T>(this Enum value, T flag, bool set) {
     67      var baseType = Enum.GetUnderlyingType(value.GetType());
     68      dynamic valueAsBase = Convert.ChangeType(value, baseType);
     69      dynamic flagAsBase = Convert.ChangeType(flag, baseType);
     70      if (set)
     71        valueAsBase |= flagAsBase;
     72      else
     73        valueAsBase &= ~flagAsBase;
     74      return (T)valueAsBase;
     75    }
     76  }
    6677}
  • branches/MemPRAlgorithm/HeuristicLab.Data/3.3/HeuristicLab.Data-3.3.csproj

    r13695 r14680  
    108108  </PropertyGroup>
    109109  <ItemGroup>
     110    <Reference Include="Microsoft.CSharp" />
    110111    <Reference Include="System" />
    111112    <Reference Include="System.Core">
  • branches/MemPRAlgorithm/HeuristicLab.Data/3.3/ValueTypeMatrix.cs

    r14185 r14680  
    201201    }
    202202
     203    public virtual IEnumerable<T> GetRow(int row) {
     204      for (var col = 0; col < Columns; col++) {
     205        yield return matrix[row, col];
     206      }
     207    }
     208
     209    public virtual IEnumerable<T> GetColumn(int col) {
     210      for (var row = 0; row < Rows; row++) {
     211        yield return matrix[row, col];
     212      }
     213    }
     214
    203215    public override string ToString() {
    204216      if (matrix.Length == 0) return "[]";
Note: See TracChangeset for help on using the changeset viewer.