View source: R/extractor.feature.R
extractor.feature | R Documentation |
This function is used to extract the features required by the pre-trained Long Short Term Memory (LSTM) Network. @seealso LSTM
extractor.feature(
response,
cor.type = "pearson",
use = "pairwise.complete.obs"
)
response |
A required |
cor.type |
A character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman". @seealso cor. |
use |
An optional character string giving a method for computing covariances in the presence of missing values. This must be one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" (default). @seealso cor. |
For "LSTM"
, a total of 2 types of features. These features are as follows:
The top 10 largest eigenvalues.
The difference of the top 10 largest eigenvalues to the corresponding reference eigenvalues from arallel Analysis (PA). @seealso PA
A matrix (1×20) containing all the features for the LSTM.
Haijiang Qin <Haijiang133@outlook.com>
LSTM
library(LSTMfactors)
set.seed(123)
##Take the data.DAPCS dataset as an example.
data(data.DAPCS)
response <- as.matrix(data.DAPCS[, 3:22]) ## loading data
## Run extractor.feature function
features <- extractor.feature(response)
print(features)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.