×
BigML is working hard to support a wide range of browsers. Your experience will be better with:
English
Sign up / in
Sign up
Sign in
or Sign in with...
Amazon
Github
GitLab
Google
Toggle navigation
PRODUCT
Features
Releases
What's New
GETTING STARTED
PRICING
Subscriptions
Private Deployments
Training
Certifications
BigML for Education
SUPPORT
Toggle navigation
PRODUCT
Features
Releases
What's New
GETTING STARTED
PRICING
Subscriptions
Private Deployments
Training
Certifications
BigML for Education
SUPPORT
License
Oops!
We could not process your request!
Batch predictions with multi-label models | BigML.com
×
Embed this Script in your web site
Copy & Paste this code into your HTML code:
whizzml
Public
whizzml's
Scripts
77
Models
0
Datasets
0
0
FREE
BUY
Batch predictions with multi-label models
Details:
Created
Thu, 8 Oct 2026 15:00:48 +0000
Published
Thu, 8 Oct 2026 17:26:18 +0000
Description:
Perform a batch prediction using per-item models
Tags:
BigMLer
BigMLer_ThuOct0826_170048
label models
URL:
https://bigml.com/user/whizzml/gallery/script/6ac7b020426c2387bb0fdd5a
Script
FREE
Source code
;; Extracts the result of the given execution, signaling an ;; error if it's not of the expected kind. (define (exec-result eid) (let (res ((fetch eid) ["execution" "result"] {})) (when (not (contains? res "items")) (raise (str "Invalid execution: Missing items in result"))) res)) ;; Delete resources ignoring errors (define (safe-delete id) (try (delete id) (catch e (log-info (str "Error deleting resource " id " ignored"))))) ;; Create the chain of batch predictions and datasets accumulating predictions (define (bp-datasets batch-predictions datasets models items objective-name) (if (empty? models) [batch-predictions datasets] (let (bp (create-and-wait-batchprediction {"model" (head models) "dataset" (head datasets) "output_dataset" true "all_fields" true "confidence" true "output_dataset" true "prediction_name" (str objective-name ": " (head items))}) ds ((fetch bp) "output_dataset_resource")) (bp-datasets (cons bp batch-predictions) (cons ds datasets) (tail models) (tail items) objective-name)))) ;; Final workflow (define (multi-label-predict eid dataset del?) (let (res (exec-result eid) objective-name (res "objective-name") items (res "items") ms (res "models") [bps dss] (bp-datasets [] [dataset] ms items objective-name) ds (head dss)) (when del? (map safe-delete bps)) (when del? (map safe-delete (tail (butlast dss)))) ds)) (define result (multi-label-predict execution dataset clean-up?))
Description
Perform a batch prediction using per-item models
Perform a batch prediction using per-item models
Show more
Inputs
Outputs
License:
Creative Commons Zero V1.0
Script
FREE
Batch predictions with multi-label models | BigML.com
Sending Request...
Sending Request...