Nothing
#' @title Least used evictor
#' @description Used as the concept pool's `model_deleter`: returns the slot of the stored concept
#' that was active for the fewest batches (`qty`).
#' @return A `evt_least_used` object.
#' @export
evt_least_used <- function() {
obj <- evictor()
class(obj) <- append("evt_least_used", class(obj))
obj
}
#' @export
evict.evt_least_used <- function(obj, concept_list) {
qtys <- vapply(concept_list, function(cn) cn$qty, numeric(1))
used <- which(qtys > 0)
used[which.min(qtys[used])]
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.