knitr::opts_chunk$set(echo = TRUE)

R Markdown

library(caret)
library(proxy)

tag <- read.csv("data/tag_data.csv", row.names = 1)
tag <- as.matrix(tag)

## Select only models for regression
regModels <- tag[tag[,"Classification"] == 1,]

all <- 1:nrow(regModels)
## Seed the analysis with the SVM model
start <- grep("(gbm)", rownames(regModels), fixed = TRUE)
pool <- all[all != start]

## Select 4 model models by maximizing the Jaccard
## dissimilarity between sets of models
nextMods <- maxDissim(regModels[start,,drop = FALSE], 
                      regModels[pool, ], 
                      method = "Jaccard",
                      n = 20)

rownames(regModels)[c(start, nextMods)]


sungcheolkim78/FiDEL documentation built on Nov. 13, 2024, 7:58 a.m.