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

Change GP training Rust API to use one dimensional array #222

Merged
merged 10 commits into from
Dec 18, 2024
Merged

Conversation

relf
Copy link
Owner

@relf relf commented Dec 18, 2024

So far the GP Rust API types mimicked the SMT ones using 2D arrays (Array2) for output training data. Actually the impplementation handles correctly only one-dimensional output waiting for [nsamples, 1] array (column vector).

This PR enforces the correctness on Rust side by using Array1 for training output data.
The GP Rust training API is now like: fit(xt: Array2<f64>, yt: Array1<f64>)

As far the Python API is concerned, we still accept column vectors but we now also accept one-dimensional ndarray.

See background in #218 and also in SMTorg/smt#679

@relf relf merged commit 85bac48 into master Dec 18, 2024
14 checks passed
@relf relf deleted the api-output-1d branch December 18, 2024 18:00
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