×
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!
Sliding windows | 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
Sliding Windows
Details:
Created
Thu, 8 Oct 2026 14:59:23 +0000
Published
Thu, 8 Oct 2026 17:26:39 +0000
Description:
Extends a dataset with additional fields containing row-shifted values of each numeric field
Tags:
BigMLer
BigMLer_ThuOct0826_165922
URL:
https://bigml.com/user/whizzml/gallery/script/6ac7afcbfa54d0f159b44a70
Script
FREE
Source code
;; Extend an input dataset with fields containing row-shifted values ;; of each non-datetime numeric field, corresponding to a given sliding window ;; interval. ;; Given and list of field descriptors and window edge locations, ;; construct the new_fields parameter: a list of flatline strings and ;; new field names (define (new-fields fdescs begin end) (let (flat-str (lambda (f) (flatline "(window {{f}} {begin} {end})"))) (reduce (lambda (nfs fd) (if (and (numeric-field? fd) (not (fd "parent_optype" false))) (append nfs {"field" (flat-str (fd "name")) "names" (map (lambda (t) (str (fd "name") " " t)) (range begin (+ end 1)))}) nfs)) [] (values fdescs)))) ;; BigML call to extend the input dataset with new sliding window fields. (define (extend-with-windows dataset-id begin end) (let (fds (resource-fields dataset-id) nfs (if (>= end begin) (new-fields fds begin end) (prog (log-warn "Swapping window begin and end values") (new-fields fds end begin)))) (create-and-wait-dataset dataset-id {"new_fields" nfs}))) ;; Input and output (define result (extend-with-windows dataset-id begin end))
Description
Extends a dataset with additional fields containing row-shifted values of each numeric field
Extends a dataset with additional fields containing row-shifted values of each numeric field
Show more
Inputs
Outputs
License:
Creative Commons Zero V1.0
Script
FREE
Sliding windows | BigML.com
Sending Request...
Sending Request...