@Override protected void cleanupAlgorithm() { // Make sure we've uploaded the best parameters into the function // We won't have necessarily have the best parameters uploaded if // we didn't finish on the "delta" convergence condition this.getResult().convertFromVector( this.bestParameters ); }
@Override protected void cleanupAlgorithm() { // Make sure we've uploaded the best parameters into the function // We won't have necessarily have the best parameters uploaded if // we didn't finish on the "delta" convergence condition this.getResult().convertFromVector( this.bestParameters ); }
@Override protected void cleanupAlgorithm() { // Make sure we've uploaded the best parameters into the function // We won't have necessarily have the best parameters uploaded if // we didn't finish on the "delta" convergence condition this.getResult().convertFromVector( this.bestParameters ); }
@Override protected boolean initializeAlgorithm() { this.setResult( this.getObjectToOptimize().clone() ); this.setIterationsWithoutImprovement(0); this.bestParameters = this.getResult().convertToVector(); this.bestParametersCost = SumSquaredErrorCostFunction.Cache.compute( this.getResult(), this.getData() ); this.setResultCost( this.bestParametersCost.parameterCost ); return true; }
@Override protected boolean initializeAlgorithm() { this.setResult( this.getObjectToOptimize().clone() ); this.setIterationsWithoutImprovement(0); this.bestParameters = this.getResult().convertToVector(); this.bestParametersCost = SumSquaredErrorCostFunction.Cache.compute( this.getResult(), this.getData() ); this.setResultCost( this.bestParametersCost.parameterCost ); return true; }
@Override protected boolean initializeAlgorithm() { this.setResult( this.getObjectToOptimize().clone() ); this.setIterationsWithoutImprovement(0); this.bestParameters = this.getResult().convertToVector(); this.bestParametersCost = SumSquaredErrorCostFunction.Cache.compute( this.getResult(), this.getData() ); this.setResultCost( this.bestParametersCost.parameterCost ); return true; }