| CBRBase | R Documentation |
Root class for common functionality of this package
Root class for common functionality of this package
modelthe statistical model
datatraining data
model_fittrained object
formulaObject of class formula or character describing the model fit
termsterms of the formula
endPointTarget variable
distMatA matrix with distances
orderMatA matrix with the order indices for similar cases search
new()Initialize object for searching similar cases
CBRBase$new(formula, data)
formulaObject of class formula or character describing the model fit
datafit()Fit the Model
CBRBase$fit()
xTraining data of class data.frame
calc_distance_matrix()Calculates the distance matrix
CBRBase$calc_distance_matrix(query = NULL)
queryQuery data of class data.frame
xTraining data of class data.frame
get_similar_cases()Extracts similar cases
CBRBase$get_similar_cases(query, k = 1, addDistance = T, merge = F)
queryQuery data of class data.frame
knumber of similar cases
addDistanceAdd distance to result data.frame
mergeAdd query data to matched cases data.frame
clone()The objects of this class are cloneable with this method.
CBRBase$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.