laser.embedding.icomp | R Documentation |
fastICA
object fitted to the LASER embedding representations
of tweet texts contained in the training and validation data used
to obtain the ensemble classifier distributed with
the politicaltweets
package
laser.embedding.icomp
A fastICA
object, which is a list with the following elements:
The 1024x300 'pre-whitening' matrix
projecting embeddings onto the first 300 principal components
The 300x300 'un-mixing' matrix
estimated from the original model input data
The 300x1024 'mixing' matrix
estimated from the original model input data
a double
vector with 1024 elements recording embedding vector means in the original model input data
difftime
object reporting the time (in seconds) whitening and un-mixing took
a list mapping the parameter used when fitting fastICA
## Not run:
# create fake 'test' observation (1-row matrix)
X <- matrix(
rnorm(1024)
, nrow = 1
# column names must be "e0001", ..., "e1024"
, dimnames = list(c("test"), sprintf("e%04d", 1:1024))
)
#' # obtain independent component representation of x
X %*% laser.embedding.icomp$K %*% laser.embedding.icomp$W
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.