Good Relations with R
Good Relations with R
Kurt Hornik David Meyer
Kurt Hornik and David Meyer useR! 2008
Good Relations with R Kurt Hornik David Meyer Kurt Hornik and - - PowerPoint PPT Presentation
Good Relations with R Good Relations with R Kurt Hornik David Meyer Kurt Hornik and David Meyer useR! 2008 Good Relations with R Motivation Meyer, Leisch & Hornik (2003), The Support Vector Machine under test, Neurocomputing :
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Φ(R) =
B
wbd(Rb, R)
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
(X1, . . . , Xk) is a subset G(R) of the Cartesian product X1 × · · · × Xk. I.e.,
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
setdiff, . . . ), but no data structures, and e.g.
R> union(list(1), list("1")) [[1]] [1] 1 [[2]] [1] "1" R> intersect(list(1), list("1")) [[1]] [1] "1"
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> A <- set(1) R> B <- set("1") R> A | B {1, 1} R> A & B {}
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> S <- set(1, 2, 3) R> PS <- 2^S R> set_outer(PS, PS, FUN = set_is_subset) {} {1} {2} {3} {1, 2} {1, 3} {2, 3} {1, 2, 3} {} TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE {1} FALSE TRUE FALSE FALSE TRUE TRUE FALSE TRUE {2} FALSE FALSE TRUE FALSE TRUE FALSE TRUE TRUE {3} FALSE FALSE FALSE TRUE FALSE TRUE TRUE TRUE {1, 2} FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE {1, 3} FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE {2, 3} FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE {1, 2, 3} FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
relation incidence.
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> R <- as.relation(c(1, 2)) R> relation_domain(R) Relation domain: A pair with elements: {1, 2} {1, 2} R> relation_graph(R) Relation graph: A set with pairs: (1, 1) (1, 2) (2, 2) R> relation_incidence(R) Incidences: 1 2 1 1 1 2 0 1
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> S <- set("Peter", "Paul", "Mary") R> R <- relation(incidence = set_outer(2^S, ‘<=‘)) R> R A binary relation of size 8 x 8. R> plot(R)
{} {Mary} {Mary, Paul} {Mary, Paul, Peter} {Mary, Peter} {Paul} {Paul, Peter} {Peter}
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
t, rep, and print.
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
Φ(R) =
B
wbd(Rb, R)
cij(w1, . . . , wB, R1, . . . , RB)xij → max
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
lp solve provides some solver support for this).
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
I(Rb)i,j =
1
R> data("SVM_Benchmarking_Classification") R> SVM_Benchmarking_Classification An ensemble of 21 relations of size 17 x 17.
R> cens_L <- relation_consensus(SVM_Benchmarking_Classification, + "SD/L", all = TRUE) R> cens_P <- relation_consensus(SVM_Benchmarking_Classification, + "SD/P", all = TRUE)
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> plot(c(cens_L, min(cens_L)), layout = c(1, 5))
bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm
bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> plot(cens_P, layout = c(1, 4))
bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm
bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm bagging dbagging fda.bruto fda.mars glm knn lda lvq mart mda.bruto mda.mars multinom nnet qda randomForest rpart svm
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
R> relation_choice(SVM_Benchmarking_Classification, k = 4) {bagging, dbagging, randomForest, svm}
Kurt Hornik and David Meyer useR! 2008
Good Relations with R
http://statmath.wu-wien.ac.at/~hornik/ http://wi.wu-wien.ac.at/~meyer/
Kurt Hornik and David Meyer useR! 2008