×
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!
Model or ensemble | 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
Model or ensemble
Details:
Created
Thu, 8 Oct 2026 15:30:07 +0000
Published
Thu, 8 Oct 2026 17:19:32 +0000
Description:
Select the best option for modeling a source: a model or an ensemble?
Tags:
BigMLer
BigMLer_ThuOct0826_173006
URL:
https://bigml.com/user/whizzml/gallery/script/6ac7b6ff12163ebf324fb515
Script
FREE
Source code
;; Functions for creating the two dataset parts ;; and the model and ensemble from the training set. (define (sample-dataset ds-id rate oob) (create-dataset ds-id {"sample_rate" rate "out_of_bag" oob "seed" "whizzml-example"})) (define (split-dataset ds-id rate) (list (sample-dataset ds-id rate false) (sample-dataset ds-id rate true))) ;; Function to extract a quality measure from the evaluation results (define (quality-measure ev-id) (let (ev (fetch (wait ev-id))) (or (ev ["result" "model" "average_f_measure"] false) (ev ["result" "model" "r_squared"] false) (raise "The models couldn't be evaluated")))) ;; Function encapsulating the full workflow (define (model-or-ensemble src-id) (let (ds-id (create-dataset src-id) ;; full dataset ids (split-dataset ds-id 0.8) ;; split it 80/20 train-id (ids 0) ;; the 80% for training test-id (ids 1) ;; and 20% for evaluations m-id (create-model train-id) e-id (create-ensemble train-id {"number_of_models" 15}) m-f (quality-measure (create-evaluation m-id test-id)) e-f (quality-measure (create-evaluation e-id test-id))) (log-info "model f " m-f " / ensemble f " e-f) (if (> m-f e-f) m-id e-id))) ;; Compute the result of the script execution ;; - Inputs: [{"name": "input-source-id", "type": "source-id"}] ;; - Outputs: [{"name": "result", "type": "resource-id"}] (define result (model-or-ensemble input-source-id))
Description
Select the best option for modeling a source: a model or an ensemble?
Select the best option for modeling a source: a model or an ensemble?
Show more
Inputs
Outputs
License:
Creative Commons Zero V1.0
Script
FREE
Model or ensemble | BigML.com
Sending Request...
Sending Request...