R/pruneRule.R

Defines functions pruneRule

Documented in pruneRule

pruneRule <-
function(rules,X,target, maxDecay = 0.05, typeDecay = 2){
  newRuleMetric <- NULL
  for(i in 1:nrow(rules)){
    newRuleMetric <- rbind(newRuleMetric, pruneSingleRule(rules[i,],X,target, maxDecay, typeDecay))
  }
  return(newRuleMetric)
}

Try the inTrees package in your browser

Any scripts or data that you put into this service are public.

inTrees documentation built on May 29, 2024, 2:39 a.m.