Skip to content

More features from python going into Rust #296

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

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Conversation

levkk
Copy link
Contributor

@levkk levkk commented Sep 1, 2022

  1. Projects (just like in Python)
  2. Deployments (only latest_trained for now, no metrics yet).
  3. predict like in Python,
  4. Two hyper-parameters for XGBoost: n_estimators and max_depth.
  5. Batch predictions.
  6. Dump model to debug XGBoost tree / confirm hyper parameters.

Batch predictions

WITH t1 AS (SELECT * FROM pgml_rust.diabetes LIMIT 5),
t2 AS (
	SELECT array_agg(ARRAY[t1.age, t1.sex]) features FROM t1
)
select pgml_rust.model_predict_batch(1, array_agg(c), 5)
from (
  select unnest(features)
  from t2
) as dt(c);

@levkk levkk merged commit 7306dde into master Sep 1, 2022
@levkk levkk deleted the levkk-rust-plus-plus branch September 1, 2022 19:27
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