Changeset 18238
- Timestamp:
- 03/15/22 10:09:28 (3 years ago)
- Location:
- branches/3040_VectorBasedGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r17786 r18238 74 74 double newProgressValue = progress.ProgressValue + (1.0 / (constOptIterations + 2) / maxRepetitions); // (constOptIterations + 2) iterations are reported 75 75 progress.ProgressValue = Math.Min(newProgressValue, 1.0); 76 progress.Message = $"MSE: { func / regressionProblemData.TrainingPartition.Size }"; 76 77 }); 77 78 result = SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.Calculate(model.Interpreter, tree, … … 94 95 return TensorFlowConstantOptimizationEvaluator.OptimizeTree(tree, regressionProblemData, 95 96 regressionProblemData.TrainingIndices, 96 applyLinearScaling: false, updateVariableWeights: true, maxIterations: maxIterations, learningRate: learningRate,97 applyLinearScaling: true, updateVariableWeights: true, maxIterations: maxIterations, learningRate: learningRate, 97 98 cancellationToken: cancellationToken, 98 99 progress: new SynchronousProgress<double>(cost => { … … 125 126 double newProgressValue = progress.ProgressValue + (1.0 / (constOptIterations + 2) / maxRepetitions); // (constOptIterations + 2) iterations are reported 126 127 progress.ProgressValue = Math.Min(newProgressValue, 1.0); 128 progress.Message = $"MSE: { func / regressionProblemData.TrainingPartition.Size }"; 127 129 }); 128 130 result = SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.Calculate(model.Interpreter, tree, … … 155 157 double newProgressValue = progress.ProgressValue + (1.0 / (constOptIterations + 2) / maxRepetitions); // (constOptIterations + 2) iterations are reported 156 158 progress.ProgressValue = Math.Min(newProgressValue, 1.0); 159 progress.Message = $"MSE: { func / regressionProblemData.TrainingPartition.Size }"; 157 160 }); 158 161 result = SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.Calculate(model.Interpreter, tree, -
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/TreeToTensorConverter.cs
r18237 r18238 256 256 var beta_arr = np.array(0.0f).reshape(1, 1); 257 257 var beta = tf.Variable(beta_arr, name: "beta", dtype: DataType); 258 variables.Add(beta); 258 259 variables.Add(alpha); 259 variables.Add(beta);260 260 var t = ConvertNode(node.GetSubtree(0)); 261 261 prediction = t * alpha + beta;
Note: See TracChangeset
for help on using the changeset viewer.