Skip to content

Commit 907c2cc

Browse files
authored
remove static linking (#620)
1 parent 507dca7 commit 907c2cc

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

pgml-extension/build.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

pgml-extension/examples/image_classification.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'xgboost', hyperpara
6565
-- Histogram Gradient Boosting is too expensive for normal tests on even a toy dataset
6666
-- SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'hist_gradient_boosting', hyperparams => '{"max_iter": 2}');
6767

68+
-- runtimes
69+
SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'linear', runtime => 'python');
70+
SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'linear', runtime => 'rust');
71+
72+
SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'xgboost', runtime => 'python', hyperparams => '{"n_estimators": 10}');
73+
SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'xgboost', runtime => 'rust', hyperparams => '{"n_estimators": 10}');
6874

6975
-- check out all that hard work
7076
SELECT trained_models.* FROM pgml.trained_models

pgml-extension/examples/regression.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ SELECT * FROM pgml.train('Diabetes Progression', algorithm => 'xgboost', hyperpa
8585
-- Histogram Gradient Boosting is too expensive for normal tests on even a toy dataset
8686
-- SELECT * FROM pgml.train('Diabetes Progression', algorithm => 'hist_gradient_boosting', hyperparams => '{"max_iter": 10}');
8787

88+
-- runtimes
89+
SELECT * FROM pgml.train('Diabetes Progression', algorithm => 'linear', runtime => 'python');
90+
SELECT * FROM pgml.train('Diabetes Progression', algorithm => 'linear', runtime => 'rust');
91+
92+
SELECT * FROM pgml.train('Diabetes Progression', algorithm => 'xgboost', runtime => 'python', hyperparams => '{"n_estimators": 10}');
93+
SELECT * FROM pgml.train('Diabetes Progression', algorithm => 'xgboost', runtime => 'rust', hyperparams => '{"n_estimators": 10}');
8894

8995
-- check out all that hard work
9096
SELECT trained_models.* FROM pgml.trained_models

pgml-extension/examples/transformers.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
\set ON_ERROR_STOP true
33
\timing on
44

5+
SELECT pgml.embed('intfloat/e5-small', 'hi mom');
6+
57

68
SELECT pgml.transform(
79
'translation_en_to_fr',
@@ -88,4 +90,3 @@ SELECT pgml.transform(
8890
]
8991
) AS answer;
9092

91-

pgml-extension/tests/test.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ SELECT pgml.load_dataset('wine');
2727
\i examples/multi_classification.sql
2828
\i examples/regression.sql
2929
\i examples/vectors.sql
30-
30+
-- transformers are generally too slow to run in the test suite
31+
--\i examples/transformers.sql

0 commit comments

Comments
 (0)