Skip to content

Commit

Permalink
Added tags for models that only accept categorical predictors (kinda …
Browse files Browse the repository at this point in the history
…related to issue #329)
  • Loading branch information
topepo committed Nov 30, 2015
1 parent b743a30 commit f3e3d70
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion models/files/awnb.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ modelInfo <- list(label = "Naive Bayes Classifier with Attribute Weighting",
},
levels = function(x) x$obsLevels,
predictors = function(x, s = NULL, ...) x$xNames,
tags = c("Bayesian Model"),
tags = c("Bayesian Model", "Categorical Predictors Only"),
sort = function(x) x[order(x[,1]),])
2 changes: 1 addition & 1 deletion models/files/awtan.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ modelInfo <- list(label = "Tree Augmented Naive Bayes Classifier with Attribute
},
levels = function(x) x$obsLevels,
predictors = function(x, s = NULL, ...) x$xNames,
tags = c("Bayesian Model"),
tags = c("Bayesian Model", "Categorical Predictors Only"),
sort = function(x) x[order(x[,1]),])
2 changes: 1 addition & 1 deletion models/files/nbDiscrete.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ modelInfo <- list(label = "Naive Bayes Classifier",
},
levels = function(x) x$obsLevels,
predictors = function(x, s = NULL, ...) x$xNames,
tags = c("Bayesian Model"),
tags = c("Bayesian Model", "Categorical Predictors Only"),
sort = function(x) x[order(x[,1]),])
2 changes: 1 addition & 1 deletion models/files/nbSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ modelInfo <- list(label = "Semi-Naive Structure Learner Wrapper",
},
levels = function(x) x$obsLevels,
predictors = function(x, s = NULL, ...) x$xNames,
tags = c("Bayesian Model"),
tags = c("Bayesian Model", "Categorical Predictors Only"),
sort = function(x) x[order(x[,1]),])
2 changes: 1 addition & 1 deletion models/files/tan.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ modelInfo <- list(label = "Tree Augmented Naive Bayes Classifier",
},
levels = function(x) x$obsLevels,
predictors = function(x, s = NULL, ...) x$xNames,
tags = c("Bayesian Model"),
tags = c("Bayesian Model", "Categorical Predictors Only"),
sort = function(x) x[order(x[,1]),])
2 changes: 1 addition & 1 deletion models/files/tanSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ modelInfo <- list(label = "Tree Augmented Naive Bayes Classifier Structure Learn
},
levels = function(x) x$obsLevels,
predictors = function(x, s = NULL, ...) x$xNames,
tags = c("Bayesian Model"),
tags = c("Bayesian Model", "Categorical Predictors Only"),
sort = function(x) x[order(x[,1]),])

0 comments on commit f3e3d70

Please sign in to comment.