Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/11 16:30:49 (13 years ago)
Author:
mkommend
Message:

#1600: Added possibility to create classification solutions from classification models.

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs

    r5809 r6604  
    2121
    2222using System.Collections.Generic;
    23 using System.Linq;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
    26 using HeuristicLab.Data;
    2725using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    28 using HeuristicLab.Operators;
    29 using HeuristicLab.Parameters;
    3026using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    31 using HeuristicLab.Optimization;
    32 using System;
    3327
    3428namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification {
     
    5549      return Interpreter.GetSymbolicExpressionTreeValues(SymbolicExpressionTree, dataset, rows);
    5650    }
     51
     52    public ISymbolicClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) {
     53      return new SymbolicClassificationSolution(this, problemData);
     54    }
     55    IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) {
     56      return CreateClassificationSolution(problemData);
     57    }
     58
     59
    5760  }
    5861}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs

    r6234 r6604  
    104104    }
    105105
     106    public SymbolicDiscriminantFunctionClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) {
     107      return new SymbolicDiscriminantFunctionClassificationSolution(this, problemData);
     108    }
     109    IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) {
     110      return CreateClassificationSolution(problemData);
     111    }
     112    IDiscriminantFunctionClassificationSolution IDiscriminantFunctionClassificationModel.CreateDiscriminantFunctionClassificationSolution(IClassificationProblemData problemData) {
     113      return CreateClassificationSolution(problemData);
     114    }
     115
    106116    #region events
    107117    public event EventHandler ThresholdsChanged;
Note: See TracChangeset for help on using the changeset viewer.