Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic if training output data is not one-dimensional #218

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

relf
Copy link
Owner

@relf relf commented Nov 21, 2024

The GaussianProcess/SparsegGaussianProcess current fit API accepts a training output being a 2D array but the model implementations actually handle only one dimensional output (ie training output has to be a column vector).
Passing multiple output data leads to wrong predictors.
As a short-term measure, to enforce this constraint, this PR adds the check of the training output dimension and panic if it is not a column vector.

This comes from original Python SMT API (see SMTorg/smt#679) but actually should be revised in Rust. GP/SGP API should use an Array1 as the type for training outputs (instead of an Array2).

@relf relf merged commit 323210b into master Nov 21, 2024
14 checks passed
@relf relf deleted the check-multi-output branch November 21, 2024 15:54
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.

1 participant