random.component.selection | R Documentation |
It is used by the function random.subspace
to randomly select the indices of the variables used for the
random subspace projections. It randomly select a subset of the indices, that is a set of positive integers that
correspond to the selected variables
random.component.selection(d = 2, d.original = 10)
d |
subspace dimension |
d.original |
dimension of the space from which components are randomly selected |
vector of the selected features: it contain the indices of the components randomly selected
Giorgio Valentini valentini@di.unimi.it
random.subspace
# it generates a vector of 2 elements whose components are randomly
# chosen from 1..10
random.component.selection(d = 2, d.original = 10)
# it generates a vector of 10 elements whose components are randomly
# chosen from 1..1000
random.component.selection(d = 10, d.original = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.