weights.joinet.html 7.59 KB
 Armin Rauschenberger committed Mar 15, 2019 1 2   Armin Rauschenberger committed Jul 31, 2019 3   Armin Rauschenberger committed Mar 15, 2019 4 5 6 7 8   Armin Rauschenberger committed Jul 31, 2019 9 Extract Weights — weights.joinet • joinet  Armin Rauschenberger committed Mar 15, 2019 10 11   Armin Rauschenberger committed Jul 31, 2019 12   Armin Rauschenberger committed Mar 15, 2019 13   Armin Rauschenberger committed Jul 31, 2019 14   Armin Rauschenberger committed Mar 15, 2019 15   Armin Rauschenberger committed Jul 31, 2019 16   Armin Rauschenberger committed Mar 15, 2019 17 18   Armin Rauschenberger committed Jul 31, 2019 19   Armin Rauschenberger committed Mar 15, 2019 20 21   Armin Rauschenberger committed Jul 31, 2019 22   Armin Rauschenberger committed Mar 15, 2019 23 24 25 26 27 28 29 30 31 32   Armin Rauschenberger committed Jul 31, 2019 33   Armin Rauschenberger committed Mar 15, 2019 34   Armin Rauschenberger committed Jun 07, 2019 35 36   Armin Rauschenberger committed Mar 15, 2019 37 38 39 40 41   Armin Rauschenberger committed Jul 31, 2019 42 43   Armin Rauschenberger committed Mar 15, 2019 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 
 Armin Rauschenberger committed Jun 07, 2019 119 120 

Extracts coefficients from the meta learner, i.e. the weights for the base learners.

 Armin Rauschenberger committed Mar 15, 2019 121 122 123 
 Armin Rauschenberger committed Jul 31, 2019 124 
# S3 method for joinet 
Armin Rauschenberger committed Jul 31, 2019  125                                                                                                                             weights(object, ...)
 Armin Rauschenberger committed Mar 15, 2019 126 127 128 129 130 

Arguments

object

joinet object

...

further arguments (not applicable)

 Armin Rauschenberger committed Jun 07, 2019 131   Armin Rauschenberger committed Jul 31, 2019 132   Armin Rauschenberger committed Mar 15, 2019 133 134 135 136 137 138 139 140 141 

Examples

 Armin Rauschenberger committed Jun 07, 2019 142 
n <- 30; q <- 2; p <- 20  Armin Rauschenberger committed Jul 31, 2019 143 144 Y <- matrix(rnorm(n*q),nrow=n,ncol=q) X <- matrix(rnorm(n*p),nrow=n,ncol=p)  Armin Rauschenberger committed Jul 31, 2019 145 object <- joinet(Y=Y,X=X)
#> Warning: Negative correlation!
weights(object)
#> y1 y2  Armin Rauschenberger committed Jul 31, 2019 146 147 148 #> (Intercept) 0.565532 -0.3929572 #> V1 0.000000 3.3142619 #> V2 2.494110 0.1431946
 Armin Rauschenberger committed Mar 15, 2019 149 150 151 152 153 154