Skip to content

Conversation

@mierzejk
Copy link
Contributor

@mierzejk mierzejk commented Aug 27, 2023

The pull request revises the way kernel centres are selected. The following changes have been introduced:

  • np.random.choice to sample input data without replacement;
  • np.percentile so samples are stratified with respect to (possibly multivariate) x values.

I call this manner of centre selection semi-stratified, because the final result is concatenated independently from every column of the second array dimension, where indices are chosen randomly from quantiles returned by np.percentile.

Resolves the following issues:

- use np.random.choice to sample input data without replacement;
- use np.percentile so samples are stratified with respect to (possibly multivariate) x values.
@mierzejk
Copy link
Contributor Author

Please note that all commits covered by this pull request are also included in #23 Aggregated pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

instable results Choosing kernel centers from test data

1 participant