- Timestamp:
- 08/09/11 11:01:08 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r6618 r6647 446 446 // clone models 447 447 var ensembleSolution = new ClassificationEnsembleSolution( 448 solutions.Value.Select(x => cloner.Clone(x.Model)), 448 solutions.Value.Select(x => cloner.Clone(x.Model)), 449 449 problemDataClone, 450 450 solutions.Value.Select(x => cloner.Clone(x.ProblemData.TrainingPartition)), … … 543 543 throw new ArgumentException("A cross validation algorithm can only contain DataAnalysisProblems."); 544 544 } 545 algorithm.Problem.Reset += (x,y) => OnProblemChanged(); 545 546 problem = (IDataAnalysisProblem)algorithm.Problem; 546 547 OnProblemChanged(); … … 553 554 SamplesStart.Value = 0; 554 555 if (Problem != null) { 555 Problem.ProblemDataChanged += (object sender, EventArgs e) => OnProblemChanged();556 556 SamplesEnd.Value = Problem.ProblemData.Dataset.Rows; 557 557 -
branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/MultinomialLogitClassification.cs
r6618 r6647 56 56 } 57 57 58 #region logit regression58 #region logit classification 59 59 protected override void Run() { 60 60 double rmsError, relClassError; 61 61 var solution = CreateLogitClassificationSolution(Problem.ProblemData, out rmsError, out relClassError); 62 Results.Add(new Result(LogitClassificationModelResultName, "The l inear regression solution.", solution));63 Results.Add(new Result("Root mean square error", "The root of the mean of squared errors of the logit regression solution on the training set.", new DoubleValue(rmsError)));62 Results.Add(new Result(LogitClassificationModelResultName, "The logit classification solution.", solution)); 63 Results.Add(new Result("Root mean squared error", "The root of the mean of squared errors of the logit regression solution on the training set.", new DoubleValue(rmsError))); 64 64 Results.Add(new Result("Relative classification error", "Relative classification error on the training set (percentage of misclassified cases).", new PercentValue(relClassError))); 65 65 } -
branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/MultinomialLogitModel.cs
r6618 r6647 66 66 targetVariable = original.targetVariable; 67 67 allowedInputVariables = (string[])original.allowedInputVariables.Clone(); 68 this.classValues = (double[])original.classValues.Clone();68 classValues = (double[])original.classValues.Clone(); 69 69 } 70 70 public MultinomialLogitModel(alglib.logitmodel logitModel, string targetVariable, IEnumerable<string> allowedInputVariables, double[] classValues)
Note: See TracChangeset
for help on using the changeset viewer.