Current Julia API
This page renders every exported Julia symbol in the validated native binding inventory. Signatures and documentation come from the same checked source. Source links point to the moving main branch; hashes identify the exact inputs.
The binding calls the Rust kernel through the native C ABI. Generation does not load the native library or execute examples. Native language execution and scientific review are separate qualification requirements.
Python reference · Julia reference · R reference
Public exports
Section titled “Public exports”DatasetValidationErrorexport_ipc_fileexport_ipc_streaminvoke_registered_extensionkernel_aggregate_dateskernel_callkernel_categorize_adopterskernel_categorize_fitted_adopterskernel_cumulative_sumkernel_diagnose_modelkernel_discover_modelskernel_fit_batchkernel_fit_modelkernel_paired_outcomes_ipckernel_predict_batchkernel_predict_modelkernel_rolling_averagekernel_sarima_fitkernel_scenario_comparisons_ipckernel_scenario_executions_ipckernel_scenario_grid_ipckernel_seasonal_decompositionkernel_simulate_modelkernel_summarize_model
DatasetValidationError
Section titled “DatasetValidationError”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”DatasetValidationError(code::String, message::String, validation::Dict{String,Any})A native request rejection carrying a structured dataset-validation report.
Fields
Section titled “Fields”code: Machine-readable native error code, such as"invalid_request".message: Human-readable native error message;showerrorprints it after the code.validation: Decoded validation dictionary, retained for inspection of failed checks and other report fields. The constructor stores this dictionary without a deep copy.
The response decoder throws this exception only when the native error envelope
contains a validation member. Constructing the Julia value itself does not run
validation or establish that a dataset is scientifically suitable.
export_ipc_file
Section titled “export_ipc_file”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”export_ipc_file(input::Vector{UInt8})Read native-supported Arrow IPC bytes and rewrite them in file format.
A file includes the footer required for random-access interchange. Rewriting is a serialization conversion, not a promise of byte identity with the input or a scientific transformation of its values.
Arguments
Section titled “Arguments”input: AVector{UInt8}containing a valid Arrow IPC file or stream; both input encodings are accepted by the native reader.
Returns
Section titled “Returns”A new Vector{UInt8} containing an Arrow IPC file. Native output memory is copied into Julia and then released.
Throws
Section titled “Throws”An ErrorException for invalid or unsupported IPC, native conversion errors or null output allocation. Library/symbol errors propagate; non-byte-vector inputs fail method dispatch.
export_ipc_stream
Section titled “export_ipc_stream”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”export_ipc_stream(input::Vector{UInt8})Read native-supported Arrow IPC bytes and rewrite them in stream format.
The leading schema message carries custom schema metadata for stream interchange. Rewriting is a serialization conversion, not a promise of byte identity with the input or a scientific transformation of its values.
Arguments
Section titled “Arguments”input: AVector{UInt8}containing a valid Arrow IPC file or stream; both input encodings are accepted by the native reader.
Returns
Section titled “Returns”A new Vector{UInt8} containing an Arrow IPC stream. Native output memory is copied into Julia and then released.
Throws
Section titled “Throws”An ErrorException for invalid or unsupported IPC, native conversion errors or null output allocation. Library/symbol errors propagate; non-byte-vector inputs fail method dispatch.
invoke_registered_extension
Section titled “invoke_registered_extension”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”invoke_registered_extension(callback, selection, payload)Resolve a registered extension, run a trusted Julia callback, and validate its output.
The callback executes in the current Julia process with its normal permissions. Manifest and output validation do not sandbox it or establish the scientific validity of its computation.
Arguments
Section titled “Arguments”callback: Callable invoked ascallback(resolved, payload)after native manifest resolution. Its output must satisfy the selected extension point.selection: JSON-compatible dictionary forresolve_extension_manifest, includingname,expected_versionandextension_point.payload: Application value passed unchanged to the callback; it is not serialized before callback invocation.
Returns
Section titled “Returns”The validated native result without its outer envelope: an ingested dataset artifact, resolved model aliases, a diagnostics summary, or an imported artifact result according to the extension point.
Throws
Section titled “Throws”Propagates kernel_call failures during resolution or output validation and any callback exception unchanged. Serialization fails if selection or callback output is not JSON-compatible.
kernel_aggregate_dates
Section titled “kernel_aggregate_dates”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_aggregate_dates(dates, values, frequency)Sum aligned observations into native calendar or anchored weekly buckets.
Offset timestamps normalize to UTC. Weekly timestamp windows span seven days from the earliest timestamp; nonweekly timestamp aggregation uses the normalized calendar date. Use kernel_call("aggregate_dates", nothing, payload) for fiscal-start controls not exposed here.
Arguments
Section titled “Arguments”dates: Vector converted elementwise withstring. Supply ISO dates or consistently naive/offset ISO timestamps; do not mix dates with timestamps or offset with naive timestamps.values: Aligned finite numeric vector to sum; input order need not already be chronological.frequency: One of"D","W","M","ME","MS","QS","QE","YS"or"YE". Quarter/year buckets use January boundaries in this wrapper.
Returns
Section titled “Returns”A dictionary containing sorted dates labels and aggregated values. Weekly buckets start at the earliest input and omit empty weeks; other supported frequencies fill intervening empty periods with zero. Month/quarter/year end variants use end labels.
Throws
Section titled “Throws”Propagates kernel_call errors for misalignment, invalid/mixed timestamps, unsupported frequency, nonfinite sums, date-range limits or more than 100000 output periods, plus serialization/library errors.
Examples
Section titled “Examples”using Innovateresult = kernel_aggregate_dates(["2026-11-01", "2026-11-02"], [1., 2.], "W")@assert result["dates"] == ["2026-11-01"]@assert result["values"] == [3.]kernel_call
Section titled “kernel_call”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_call(operation::AbstractString, model_key=nothing, payload=Dict{String,Any}())Execute a schema-2.0 JSON request in the Rust kernel and decode its response.
The wrapper serializes and copies JSON across the C ABI; it does not call Python or supply a numerical fallback. Native response memory is released after copying its text. Loaded JSON-call handles remain cached to preserve process-local registry state. The library comes from INNOVATE_NATIVE_LIBRARY or the bundled deps directory. Integer precision after parsing follows the pinned JSON.jl decoder; use the string-accepting Arrow exporters when already holding exact JSON tokens.
Time units, observation quantities and parameter domains belong to the selected native operation. This wrapper does not sort observations, convert dates to elapsed time, integrate interval counts or replace missing values.
Arguments
Section titled “Arguments”operation: Native operation name, for example"discover_models"or"predict_model".model_key: Native model identifier, ornothingfor an operation without a model; defaults tonothing.payload: JSON-compatible operation-specific dictionary; defaults to an emptyDict{String,Any}. Use vectors for arrays even when they contain one value, andnothingfor JSON null. Numeric values must satisfy the native operation’s finite-value and domain requirements;missingis not a substitute for an observed value.
Returns
Section titled “Returns”A Dict{String,Any} containing the complete successful native envelope, including result and any metadata. Successful responses may omit error; a non-null outer error is raised before return. Errors retained inside individual batch or scenario result rows are returned for inspection. JSON arrays decode as vectors and nulls as nothing.
Throws
Section titled “Throws”DatasetValidationError when a native error includes a validation report; ErrorException for other native errors, a missing library or a null response allocation. JSON serialization/parsing and dynamic-library loading/symbol errors propagate.
Examples
Section titled “Examples”using Innovateresponse = kernel_call("discover_models")@assert response["schema_version"] == "2.0"@assert get(response, "error", nothing) === nothing@assert any(model -> model["key"] == "bass", response["result"]["models"])kernel_categorize_adopters
Section titled “kernel_categorize_adopters”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_categorize_adopters(time, rates)Assign historical adopter categories from sample-weighted observation times.
Weighted time mean and standard deviation define the five labels. Rates are treated as sample weights without multiplication by time-step widths; this does not classify individual people or integrate an irregular grid.
Arguments
Section titled “Arguments”time: Nonempty finite numeric vector in strictly increasing order, using one consistent time unit.rates: Aligned finite nonnegative numeric weights with positive total mass. Negative net adoption rates are not admissible weights.
Returns
Section titled “Returns”A dictionary with aligned time, adoption_rate and string category arrays, including a label for every zero-weight sample. Boundary ties go to the earlier historical category.
Throws
Section titled “Throws”Propagates kernel_call errors for empty/misaligned arrays, nonfinite values, unsorted times, negative weights or zero total mass, plus serialization/library failures.
Examples
Section titled “Examples”using Innovateresult = kernel_categorize_adopters([0., 1., 2., 3., 4.], [0., 3., 3., 1., 1.])@assert result["category"] == ["Innovators", "Early Adopters", "Early Majority", "Late Majority", "Laggards"]kernel_categorize_fitted_adopters
Section titled “kernel_categorize_fitted_adopters”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_categorize_fitted_adopters(model, payload)Predict one native rate series and apply historical sample-weighted categories.
The wrapper flattens the single rate column and applies the same nonnegative sample-weight contract. Multiseries or signed substitution rates require a scientifically justified choice of admissible series outside this helper.
Arguments
Section titled “Arguments”model: Native model identifier whose prediction returns exactly one rate per observation time.payload: Prediction payload accepted bykernel_predict_model, withinputs.timeorinputs.tand the required parameters or fitted state.
Returns
Section titled “Returns”The same time, adoption_rate and category result dictionary returned by kernel_categorize_adopters.
Throws
Section titled “Throws”ArgumentError when the native rates field is absent or is not a vector of one-element rows. Missing input/time keys can raise KeyError; native prediction and categorization failures propagate.
kernel_cumulative_sum
Section titled “kernel_cumulative_sum”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_cumulative_sum(values)Compute native cumulative totals in the supplied sample order.
This helper calls native preprocessing. Its missing-value semantics therefore differ from a high-level Julia missing-aware reduction.
Arguments
Section titled “Arguments”values: Finite numeric vector in the intended accumulation order. Values are serialized to JSON; no sorting, timestamp inference or missing-value imputation occurs.
Returns
Section titled “Returns”A vector of cumulative numeric totals with the same length as values; an empty vector remains empty.
Throws
Section titled “Throws”Propagates kernel_call failures for nonnumeric or nonfinite input and cumulative totals outside the finite numerical domain, plus serialization/library errors.
Examples
Section titled “Examples”using Innovate@assert kernel_cumulative_sum([1.0, 2.0, 3.0]) == [1.0, 3.0, 6.0]kernel_diagnose_model
Section titled “kernel_diagnose_model”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_diagnose_model(model, payload)Compute native model diagnostics from supplied observations and prediction state.
In-sample diagnostic metrics do not establish out-of-sample calibration or identify a causal effect.
Arguments
Section titled “Arguments”model: Native model identifier for the observations and fitted state.payload: Model-specific dictionary containing observation inputs and the parameters or fittedstaterequired for prediction and diagnostic comparison.
Returns
Section titled “Returns”The full native envelope with model-specific diagnostic metrics and details in result. Inspect their sample and model assumptions before comparing fits.
Throws
Section titled “Throws”Propagates kernel_call failures for misaligned observations, unsupported diagnostics, incompatible state, numerical-domain problems or serialization/library errors.
kernel_discover_models
Section titled “kernel_discover_models”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_discover_models()Return the native model catalog and its advertised capabilities.
Use the returned capabilities before choosing an operation. An advertised model does not imply that every constructor variant, simulation engine or advanced operation is available.
Returns
Section titled “Returns”The discovery result dictionary, including its models array. Model entries contain native keys and operation/capability metadata; the outer request envelope is omitted.
Throws
Section titled “Throws”Propagates kernel_call library, decoding and native errors. Discovery does not fit or simulate a model.
kernel_fit_batch
Section titled “kernel_fit_batch”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_fit_batch(model, datasets; workers=1)Fit independent native payloads while retaining each item’s outcome.
Arguments
Section titled “Arguments”model: Native model identifier shared by every dataset in the batch.datasets: Ordered vector offit_modelpayload dictionaries, each carrying its own inputs and parameters/state or fitting options. These are payloads, not complete request envelopes.workers: Keyword integer from 1 through 32; defaults to 1. Parallel execution preserves dataset order.
Returns
Section titled “Returns”A vector with one dictionary per input, in the original order. Each dictionary carries result and error; an individual dataset failure remains in its row instead of being raised.
Throws
Section titled “Throws”Propagates kernel_call failures for an invalid outer batch, worker count or serialization/library problem. Callers must inspect per-item errors separately.
kernel_fit_model
Section titled “kernel_fit_model”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_fit_model(model, payload)Fit one native model from explicit JSON-compatible observations and options.
Successful execution is not a guarantee of parameter identifiability, global optimality or forecast calibration. Inspect the returned optimizer and diagnostic fields for the selected model.
Time, observations and parameters must use consistent caller-selected units. Observations must represent the model’s fitted quantity; the wrapper does not integrate interval counts or difference cumulative totals before fitting.
Arguments
Section titled “Arguments”model: Model key returned bykernel_discover_models, for example"logistic".payload: Dictionary withinputscontaining alignedtime(ort) andobserved(ory). Optionalconstructor_kwargsselect the model variant andfit_optionscontrol initialization, weights and fitting. Multiseries observations use the native model-specific layout.
Returns
Section titled “Returns”The full native response envelope. Its result contains fitted parameters and reusable state, with model-specific optimizer and diagnostic details. Preserve the complete state for later prediction rather than reconstructing it from parameters.
Throws
Section titled “Throws”Propagates kernel_call failures for invalid observation shape, unsupported variants, parameter constraints, fitting failures or serialization/library errors.
Examples
Section titled “Examples”using Innovatetime = collect(0.0:1.0:12.0)parameters = Dict("L" => 100.0, "k" => 0.5, "x0" => 6.0)observed = kernel_predict_model("logistic", Dict("inputs" => Dict("time" => time), "parameters" => parameters))["result"]["values"]fit = kernel_fit_model("logistic", Dict("inputs" => Dict("time" => time, "observed" => observed), "fit_options" => Dict("initial_parameters" => parameters)))future = kernel_predict_model("logistic", Dict("inputs" => Dict("time" => [13.0, 14.0]), "state" => fit["result"]["state"]))@assert length(future["result"]["values"]) == 2kernel_paired_outcomes_ipc
Section titled “kernel_paired_outcomes_ipc”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_paired_outcomes_ipc(payload)Validate paired Bass outcome trajectories and encode their ordered rows as Arrow IPC.
Passing a JSON string avoids a parse/re-encode cycle for full-width integer identifiers. Validation checks the interchange contract; it does not establish the calibration of the model or uncertainty draws.
Arguments
Section titled “Arguments”payload: Paired-outcome contract containingstrategiesand their aligneddraws, supplied as a JSON-compatible dictionary or exact JSON string. Draws carry their identifiers andtime/adoptionarrays.
Returns
Section titled “Returns”A copied Vector{UInt8} containing an Arrow IPC file with the validated paired-outcome rows and native schema metadata.
Throws
Section titled “Throws”An ErrorException if trajectory shape, pairing, values or identifiers violate the native contract, or output allocation fails. Serialization and library errors propagate.
kernel_predict_batch
Section titled “kernel_predict_batch”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_predict_batch(model, datasets; workers=1)Predict independent native payloads while retaining each item’s outcome.
Arguments
Section titled “Arguments”model: Native model identifier shared by every dataset in the batch.datasets: Ordered vector ofpredict_modelpayload dictionaries, each carrying its own inputs and parameters/state or fitting options. These are payloads, not complete request envelopes.workers: Keyword integer from 1 through 32; defaults to 1. Parallel execution preserves dataset order.
Returns
Section titled “Returns”A vector with one dictionary per input, in the original order. Each dictionary carries result and error; an individual dataset failure remains in its row instead of being raised.
Throws
Section titled “Throws”Propagates kernel_call failures for an invalid outer batch, worker count or serialization/library problem. Callers must inspect per-item errors separately.
kernel_predict_model
Section titled “kernel_predict_model”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_predict_model(model, payload)Evaluate native level and rate predictions from explicit parameters or fitted state.
Levels and rates are different quantities. Where the model returns derivatives, their units are level units per unit of numeric time; they are instantaneous values, not counts integrated between observation rows. Signed rates can describe declining levels. The output does not supply calibrated prediction intervals merely because a deterministic curve was evaluated.
Arguments
Section titled “Arguments”model: Native model identifier for the supplied parameters or state.payload: Dictionary withinputs.time(orinputs.t) and either nativeparameterswith optionalconstructor_kwargs, or a retainedstate. Supply model-required covariates and options using their native field names.
Returns
Section titled “Returns”The full native response envelope. Its result contains model-specific prediction fields such as scalar values, multiseries rows, rates and reusable state. Arrays follow the supplied observation order; rates may have multiple columns.
Throws
Section titled “Throws”Propagates kernel_call failures for unsupported models, invalid grids, incompatible state/options, missing covariates or numerical-domain violations, as well as serialization/library errors.
Examples
Section titled “Examples”using Innovateresponse = kernel_predict_model("logistic", Dict( "inputs" => Dict("time" => [1.0]), "parameters" => Dict("L" => 100.0, "k" => 1.0, "x0" => 1.0)))@assert response["result"]["values"] == [50.0]kernel_rolling_average
Section titled “kernel_rolling_average”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_rolling_average(values, window)Compute native trailing averages only after a complete observation window exists.
The native implementation uses guarded accumulation for finite inputs. No missing-value imputation or calendar-based windowing is performed.
Arguments
Section titled “Arguments”values: Finite numeric vector in sample order, without missing or null entries.window: Positive integer number of consecutive samples per trailing mean; values larger than the series length leave all entries unfilled.
Returns
Section titled “Returns”A vector aligned to values, with nothing for the first window - 1 positions (or all positions if the window is longer) and numeric complete-window means afterward.
Throws
Section titled “Throws”Propagates kernel_call failures for a nonpositive/noninteger window, invalid samples or nonfinite arithmetic, plus serialization/library errors.
Examples
Section titled “Examples”using Innovate@assert kernel_rolling_average([1.0, 2.0, 3.0], 2) == [nothing, 1.5, 2.5]kernel_sarima_fit
Section titled “kernel_sarima_fit”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_sarima_fit(values, order; seasonal_order=(0, 0, 0, 0), historical=false)Fit a no-intercept native SARIMA model and return only its in-sample fitted values.
Outside historical mode, initial missing values reflect differencing warmup. Successful fitting does not establish the adequacy of the time-series specification.
Arguments
Section titled “Arguments”values: Finite numeric vector without missing entries, already ordered and evenly spaced; the wrapper does not receive or validate timestamps.order: Iterable ordinary(p, d, q)orders, converted withcollect; all orders must be nonnegative integers within native order/sample-size bounds.seasonal_order: Keyword iterable(P, D, Q, period)orders; defaults to(0, 0, 0, 0). Seasonal differencing requires a period of at least 2.historical: Keyword boolean enabling historical diffuse-initialization predictions where supported; defaults tofalse.
Returns
Section titled “Returns”A vector aligned to the input, with numeric fitted entries converted to Float64 and native null warmup entries converted to missing. Coefficients, future forecasts and prediction intervals are not returned.
Throws
Section titled “Throws”Propagates kernel_call errors for invalid orders, insufficient samples, stationarity/estimation failures or nonfinite input, plus iterable conversion, numeric conversion and serialization/library errors.
kernel_scenario_comparisons_ipc
Section titled “kernel_scenario_comparisons_ipc”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_scenario_comparisons_ipc(response)Encode ordered scenario comparison rows as an Arrow IPC file.
Native-owned output bytes are copied into Julia and released before return. The wrapper does not deserialize the table into Arrow.jl or reinterpret its nested scientific results.
Arguments
Section titled “Arguments”response: A complete scenario-grid response as a JSON-compatible dictionary or an existing JSON string. A string is passed to Rust without re-encoding its numeric tokens.
Returns
Section titled “Returns”A new Vector{UInt8} containing an Arrow IPC file in native comparison-table column order. Nested result/error structures are represented by the native JSON columns; row order is retained.
Throws
Section titled “Throws”An ErrorException for native export rejection or a null output allocation. JSON conversion, library loading and symbol errors propagate.
kernel_scenario_executions_ipc
Section titled “kernel_scenario_executions_ipc”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_scenario_executions_ipc(response)Encode ordered scenario execution rows as an Arrow IPC file.
Native-owned output bytes are copied into Julia and released before return. The wrapper does not deserialize the table into Arrow.jl or reinterpret its nested scientific results.
Arguments
Section titled “Arguments”response: A complete scenario-grid response as a JSON-compatible dictionary or an existing JSON string. A string is passed to Rust without re-encoding its numeric tokens.
Returns
Section titled “Returns”A new Vector{UInt8} containing an Arrow IPC file in native execution-table column order. Nested result/error structures are represented by the native JSON columns; row order is retained.
Throws
Section titled “Throws”An ErrorException for native export rejection or a null output allocation. JSON conversion, library loading and symbol errors propagate.
kernel_scenario_grid_ipc
Section titled “kernel_scenario_grid_ipc”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_scenario_grid_ipc(data::Vector{UInt8}, payload)Execute a native scenario grid using an Arrow table as the shared time input.
Input bytes are borrowed for the synchronous C call. The native response is JSON copied into Julia and freed after decoding; no zero-copy table API or Arrow.jl dependency is provided here.
Arguments
Section titled “Arguments”data: AVector{UInt8}containing an Arrow IPC file or stream with the required numerictimecolumn.payload: JSON-compatible scenario-grid configuration, including its orderedscenariosand any comparisons or execution options. This is the grid payload, not a complete schema envelope.
Returns
Section titled “Returns”The decoded native response envelope. Its result retains ordered execution rows and any requested comparisons or artifacts. Per-scenario failures remain in their row; an outer failure is raised.
Throws
Section titled “Throws”Propagates native request, Arrow decoding, JSON serialization and library failures through the same response decoder as kernel_call. Other input types fail Julia method dispatch.
kernel_seasonal_decomposition
Section titled “kernel_seasonal_decomposition”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_seasonal_decomposition(values, period, trend_span=nothing; robust=false, historical=false, inner_iterations=5, outer_iterations=robust ? 5 : 0, seasonal_span=nothing, low_pass_span=nothing, seasonal_degree=1, seasonal_jump=1, trend_degree=1, trend_jump=1, low_pass_degree=1, low_pass_jump=1)Decompose an evenly spaced native series into trend, seasonal and residual components.
Arguments
Section titled “Arguments”values: Finite numeric vector without missing entries, ordered on an evenly spaced grid; the caller must establish spacing because this wrapper receives no timestamps.period: Integer samples per seasonal cycle, at least 2, leaving at least three complete cycles in the input.trend_span: Trend smoothing window, defaultnothing. A numeric window is required unlesshistorical=true, which derives an odd span from period and seasonal span. Native span bounds apply.robust: Keyword boolean selecting residual reweighting; defaults tofalse.historical: Keyword boolean selecting historical STL local-fitting and reweighting rules; defaults tofalse.inner_iterations: Keyword integer number of inner smoothing passes, from 1 through 100; defaults to 5.outer_iterations: Keyword integer reweighting passes, from 0 through 100; defaults to 5 when robust and 0 otherwise. Positive counts requirerobust=true.seasonal_span: Optional keyword odd seasonal span of at least 3; defaultnothingselects the native default, 7 in historical mode or at most 7 phase samples otherwise.low_pass_span: Optional keyword odd low-pass span of at least 3; defaultnothingselects the smallest odd integer strictly above the period.seasonal_degree: Keyword seasonal local polynomial degree, 0 or 1; defaults to 1.seasonal_jump: Keyword positive spacing between seasonal fitted points; defaults to 1.trend_degree: Keyword trend local polynomial degree, 0 or 1; defaults to 1.trend_jump: Keyword positive spacing between trend fitted points; defaults to 1.low_pass_degree: Keyword low-pass local polynomial degree, 0 or 1; defaults to 1.low_pass_jump: Keyword positive spacing between low-pass fitted points; defaults to 1.
Returns
Section titled “Returns”A dictionary containing trend, seasonal and residual numeric arrays, each aligned to the input samples. This is a decomposition, not a future forecast or uncertainty estimate.
Throws
Section titled “Throws”Propagates kernel_call errors for too few cycles, invalid spans/iteration/smoother settings, invalid samples or nonfinite numerical estimates, plus serialization/library errors.
kernel_simulate_model
Section titled “kernel_simulate_model”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_simulate_model(model, payload)Run a native stochastic model with an explicit engine and simulation options.
A seed supports replay under the qualified runtime and configuration. This wrapper does not promise cross-version replay or validate empirical model suitability.
Arguments
Section titled “Arguments”model: Native model key whose advertised capabilities support the chosen simulation engine.payload: Dictionary containinginputs,parameters, optionalconstructor_kwargs, andsimulation_optionssuch asengine,seed,population, network structure or scheduled events.
Returns
Section titled “Returns”The complete native envelope with engine-specific trajectories, state and metadata. Count-based engines may supply both integer counts and scaled values; retain the metadata when recording an experiment.
Throws
Section titled “Throws”Propagates kernel_call errors for unsupported engine/model combinations, invalid seeds or population/network/event settings, numerical limits and serialization/library failures.
kernel_summarize_model
Section titled “kernel_summarize_model”View source · Source file SHA-256: be3b798ac602e29685673fc37a8c2282faa3ac51dca7b5c64eb7ee0c040023ca
Signature
Section titled “Signature”kernel_summarize_model(model, payload)Request the selected model’s native analytical or numerical summary.
Summary quantities inherit the supplied model assumptions and units. Availability of a summary does not establish causal or forecast validity.
Arguments
Section titled “Arguments”model: Native model identifier defining the supported summary operations.payload: JSON-compatible parameters or retained state plus model-specific constructor and summary inputs, such as threshold settings or a time grid when required.
Returns
Section titled “Returns”The complete response envelope with the model-specific summary in result. Summary fields depend on model and variant; they are not coerced into a common Julia table.
Throws
Section titled “Throws”Propagates kernel_call errors for unsupported summaries, missing inputs, invalid model state or numerical-domain and serialization/library failures.