From 086fb9c6d35d8b177cbb77720019eb90ed876f47 Mon Sep 17 00:00:00 2001 From: "Dr. Ahmad Mateen Ishanzai" Date: Mon, 1 Dec 2025 17:18:36 -0500 Subject: [PATCH] Create Basic Usage --- Basic Usage | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Basic Usage diff --git a/Basic Usage b/Basic Usage new file mode 100644 index 0000000..1b2fc62 --- /dev/null +++ b/Basic Usage @@ -0,0 +1,11 @@ +// Connect to database +var db = connect("mysql://user:pass@localhost/db") +var orders = db.query("SELECT * FROM orders WHERE status = 'shipped'") + +// Create ML model +var frame = h2o.frame(orders) +var model = h2o.automl(frame, "is_return") + +// Deploy as API +var endpoint = deploy(model, "http://localhost:8080/predict") +print("Model deployed at: ${endpoint.url}")