Learn R Programming

missForestPredict (version 1.0)

calculate_convergence: Calculates convergence based on NMSE

Description

Calculates convergence based on NMSE. Details on the convergence criterion calculation are provided in the package vignettes.

Usage

calculate_convergence(err, weights)

Value

A list with elements

converged

boolean indicating if the algorithm has converged (TRUE) or not (FALSE)

measure_old

the total error of the previous iteration

measure_new

the total error of the last iteration

Arguments

err

dataframe containing OOB or apparent errors for each iteration.

weights

vector of weights in the same format as for the missForest function.