make_multimodal_landmarks#
- skfda.datasets.make_multimodal_landmarks(n_samples=15, *, n_modes=1, dim_domain=1, dim_codomain=1, start=-1, stop=1, std=0.05, random_state=None)[source]#
Generate landmarks points.
Used by
make_multimodal_samples()
to generate the location of the landmarks.Generates a matrix containing the landmarks or locations of the modes of the samples generates by
make_multimodal_samples()
.If the same random state is used when generating the landmarks and multimodal samples, these will correspond to the position of the modes of the multimodal samples.
- Parameters:
n_samples (int) – Total number of samples.
n_modes (int) – Number of modes of each sample.
dim_domain (int) – Number of dimensions of the domain.
dim_codomain (int) – Number of dimensions of the codomain.
start (float) – Starting point of the samples. In multidimensional objects the starting point of the axis.
stop (float) – Ending point of the samples. In multidimensional objects the ending point of the axis.
std (float) – Standard deviation of the variation of the modes location.
random_state (int | RandomState | Generator | None) – Random state.
- Returns:
np.ndarray
with the location of the modes, where the component (i,j,k) corresponds to the mode k of the image dimension j of the sample i.- Return type: