extract_features | R Documentation |
extract features from a neuronlist
extract_features( neurons_list, features_list = NULL, y = NULL, to_numeric = FALSE, normalise = c("none", "zscore", "scale"), split_proportion = NULL, remove_nas = TRUE, n_jobs = 1 ) ## S3 method for class 'neuronlist' extract_features( neurons_list, features_list = NULL, y = NULL, to_numeric = FALSE, normalise = c("none", "zscore", "scale"), split_proportion = NULL, remove_nas = TRUE, ... )
neurons_list |
neuronlist of neurons (nat) |
features_list |
list with feature names of functions that generate them |
y |
target class (can be character of function), will be added as column "Y" if name is NULL. |
to_numeric |
flag that says whether all factor/ character features are meant to be transformed to numeric (default: F) |
normalise |
what normalization to use |
split_proportion |
if numeric then it splits dataset into train test. The number should be a target proportion of test cases (although not guaranteed as it makes sure that there's at least one element per class). |
remove_nas |
flags whether to remove NAs or not |
n_jobs |
number of cores used to call a function feature extraction |
... |
extra arguments |
data frame with features
features_list <- list( "upstream", "downstream", "soma") kc_train_features <- extract_features( kc_train, features_list = features_list, y = "type" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.