@@ -25,3 +25,102 @@ CREATE FUNCTION pgml."deploy"(
2525AS ' MODULE_PATHNAME' , ' deploy_strategy_wrapper' ;
2626
2727ALTER TYPE pgml .strategy ADD VALUE ' specific' ;
28+
29+ ALTER TYPE pgml .Sampling ADD VALUE ' stratified' ;
30+
31+ -- src/api.rs:534
32+ -- pgml::api::snapshot
33+ DROP FUNCTION IF EXISTS pgml." snapshot" (text , text , real , pgml .Sampling , jsonb);
34+ CREATE FUNCTION pgml ." snapshot" (
35+ " relation_name" TEXT , /* &str */
36+ " y_column_name" TEXT , /* &str */
37+ " test_size" real DEFAULT 0 .25 , /* f32 */
38+ " test_sampling" pgml .Sampling DEFAULT ' stratified' , /* pgml::orm::sampling::Sampling */
39+ " preprocess" jsonb DEFAULT ' {}' /* pgrx::datum::json::JsonB */
40+ ) RETURNS TABLE (
41+ " relation" TEXT , /* alloc::string::String */
42+ " y_column_name" TEXT /* alloc::string::String */
43+ )
44+ STRICT
45+ LANGUAGE c /* Rust */
46+ AS ' MODULE_PATHNAME' , ' snapshot_wrapper' ;
47+
48+ -- src/api.rs:802
49+ -- pgml::api::tune
50+ DROP FUNCTION IF EXISTS pgml." tune" (text , text , text , text , text , jsonb, real , pgml .Sampling , bool, bool);
51+ CREATE FUNCTION pgml ." tune" (
52+ " project_name" TEXT , /* &str */
53+ " task" TEXT DEFAULT NULL , /* core::option::Option<&str> */
54+ " relation_name" TEXT DEFAULT NULL , /* core::option::Option<&str> */
55+ " y_column_name" TEXT DEFAULT NULL , /* core::option::Option<&str> */
56+ " model_name" TEXT DEFAULT NULL , /* core::option::Option<&str> */
57+ " hyperparams" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
58+ " test_size" real DEFAULT 0 .25 , /* f32 */
59+ " test_sampling" pgml .Sampling DEFAULT ' stratified' , /* pgml::orm::sampling::Sampling */
60+ " automatic_deploy" bool DEFAULT true, /* core::option::Option<bool> */
61+ " materialize_snapshot" bool DEFAULT false /* bool */
62+ ) RETURNS TABLE (
63+ " status" TEXT , /* alloc::string::String */
64+ " task" TEXT , /* alloc::string::String */
65+ " algorithm" TEXT , /* alloc::string::String */
66+ " deployed" bool /* bool */
67+ )
68+ PARALLEL SAFE
69+ LANGUAGE c /* Rust */
70+ AS ' MODULE_PATHNAME' , ' tune_wrapper' ;
71+
72+ -- src/api.rs:92
73+ -- pgml::api::train
74+ DROP FUNCTION IF EXISTS pgml." train" (text , text , text , text , pgml .Algorithm , jsonb, pgml .Search , jsonb, jsonb, real , pgml .Sampling , pgml .Runtime , bool, bool, jsonb);
75+ CREATE FUNCTION pgml ." train" (
76+ " project_name" TEXT , /* &str */
77+ " task" TEXT DEFAULT NULL , /* core::option::Option<&str> */
78+ " relation_name" TEXT DEFAULT NULL , /* core::option::Option<&str> */
79+ " y_column_name" TEXT DEFAULT NULL , /* core::option::Option<&str> */
80+ " algorithm" pgml .Algorithm DEFAULT ' linear' , /* pgml::orm::algorithm::Algorithm */
81+ " hyperparams" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
82+ " search" pgml .Search DEFAULT NULL , /* core::option::Option<pgml::orm::search::Search> */
83+ " search_params" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
84+ " search_args" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
85+ " test_size" real DEFAULT 0 .25 , /* f32 */
86+ " test_sampling" pgml .Sampling DEFAULT ' stratified' , /* pgml::orm::sampling::Sampling */
87+ " runtime" pgml .Runtime DEFAULT NULL , /* core::option::Option<pgml::orm::runtime::Runtime> */
88+ " automatic_deploy" bool DEFAULT true, /* core::option::Option<bool> */
89+ " materialize_snapshot" bool DEFAULT false, /* bool */
90+ " preprocess" jsonb DEFAULT ' {}' /* pgrx::datum::json::JsonB */
91+ ) RETURNS TABLE (
92+ " project" TEXT , /* alloc::string::String */
93+ " task" TEXT , /* alloc::string::String */
94+ " algorithm" TEXT , /* alloc::string::String */
95+ " deployed" bool /* bool */
96+ )
97+ LANGUAGE c /* Rust */
98+ AS ' MODULE_PATHNAME' , ' train_wrapper' ;
99+
100+ -- src/api.rs:138
101+ -- pgml::api::train_joint
102+ DROP FUNCTION IF EXISTS pgml." train_joint" (text , text , text , text , pgml .Algorithm , jsonb, pgml .Search , jsonb, jsonb, real , pgml .Sampling , pgml .Runtime , bool, bool, jsonb);
103+ CREATE FUNCTION pgml ." train_joint" (
104+ " project_name" TEXT , /* &str */
105+ " task" TEXT DEFAULT NULL , /* core::option::Option<&str> */
106+ " relation_name" TEXT DEFAULT NULL , /* core::option::Option<&str> */
107+ " y_column_name" TEXT [] DEFAULT NULL , /* core::option::Option<alloc::vec::Vec<alloc::string::String>> */
108+ " algorithm" pgml .Algorithm DEFAULT ' linear' , /* pgml::orm::algorithm::Algorithm */
109+ " hyperparams" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
110+ " search" pgml .Search DEFAULT NULL , /* core::option::Option<pgml::orm::search::Search> */
111+ " search_params" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
112+ " search_args" jsonb DEFAULT ' {}' , /* pgrx::datum::json::JsonB */
113+ " test_size" real DEFAULT 0 .25 , /* f32 */
114+ " test_sampling" pgml .Sampling DEFAULT ' stratified' , /* pgml::orm::sampling::Sampling */
115+ " runtime" pgml .Runtime DEFAULT NULL , /* core::option::Option<pgml::orm::runtime::Runtime> */
116+ " automatic_deploy" bool DEFAULT true, /* core::option::Option<bool> */
117+ " materialize_snapshot" bool DEFAULT false, /* bool */
118+ " preprocess" jsonb DEFAULT ' {}' /* pgrx::datum::json::JsonB */
119+ ) RETURNS TABLE (
120+ " project" TEXT , /* alloc::string::String */
121+ " task" TEXT , /* alloc::string::String */
122+ " algorithm" TEXT , /* alloc::string::String */
123+ " deployed" bool /* bool */
124+ )
125+ LANGUAGE c /* Rust */
126+ AS ' MODULE_PATHNAME' , ' train_joint_wrapper' ;
0 commit comments