WeltPython SDK
Products: switch from Welt to another product
Open console

ReferencePython reference

Python reference

Signatures below are inspected from the installed matching SDK wheel. Methods are grouped by their task. Guides teach complete workflows; this page describes returns and failures. Async resource methods use the same contracts with await, except the regular job(id) factory.

Authentication and errors#

Authenticated operations use an explicit constructor key or WELT_API_KEY; missing-key guidance is local. Missing, invalid/expired, and insufficient-permission failures remain distinct. Never log credentials or raw row payloads. Errors expose safe code, request_id, job_id, status_code, retryable and retry_after metadata when available. See waiting and recovery for typed actions.

Client#

python
Client(
    base_url=None,
    api_key=None,
    *,
    timeout=60,
    transport=None,
    max_retries=2,
    max_retry_delay=5,
    workspace=None,
)
Parameter Default Description
base_url None Welt API address. None uses WELT_BASE_URL, then https://welt.ergodic.dev.
api_key None Explicit key. None uses WELT_API_KEY, then access saved by welt login or connect(save=True).
timeout 60 HTTP timeout in seconds for each request.
transport None Optional httpx transport, for tests or custom networking.
max_retries 2 Bounded retries for GET requests, 0 to 5. Mutations never retry automatically.
max_retry_delay 5 Longest wait between GET retries, 0 to 60 seconds.
workspace None Workspace ID or slug that the credential must belong to. None uses WELT_WORKSPACE when set.

Client.backtest#

Submit and wait for a walk-forward forecasting evaluation; validate timeout before submission. final_horizon is opt-in and excluded from historical scores.

python
Client.backtest(
    history,
    *,
    models,
    horizon,
    timeout=600,
    idempotency_key=None,
    **options,
)

Returns: Backtest or awaited AsyncBacktest; partial completion emits BacktestWarning.

Errors and limits: Authentication/permission, workload/capability/budget/capacity/credit refusals, version/idempotency conflicts or TransportError. Replay the identical request/key after uncertain submission. JobTimeoutError names reopen_backtest(id).wait(); work is not cancelled. Failed/cancelled waits raise typed errors.

Client.backtests#

List workspace-owned backtests and current progress.

python
Client.backtests()

Returns: List of Backtest or awaited AsyncBacktest handles.

Errors and limits: Authentication, permission, transport or malformed-response errors.

Client.batch_payload#

Retrieve retained batch JSON through the same authenticated origin.

python
Client.batch_payload(job_id, *, result_reference=None)

Returns: Payload dictionary with ordered predictions/errors/provenance.

Errors and limits: Not-ready/not-owned/expired result or wrong reference; no third-party URL fetching.

Client.causal_result#

Reopen an owned discovery job result and validate identity/provenance.

python
Client.causal_result(job_id)

Returns: Immutable CausalResult with job_id.

Errors and limits: NotFoundError, ResultDeletedError, authentication or InvalidCausalResultError; no graph repair.

Client.causal_scores#

Fetch separate native scores while preserving original axes and score semantics.

python
Client.causal_scores(job_id)

Returns: Score dictionary with values, variables, source_row_target_column axes and score_reference.

Errors and limits: Authorization, deleted/missing result or InvalidCausalResultError; no thresholding or graph rewriting.

Client.close#

Close the synchronous HTTP client; retained remote resources remain.

python
Client.close()

Returns: None.

Errors and limits: Closing is local, not deletion or cancellation.

Client.complete_upload#

Validate owned chunks/checksum/schema and create immutable dataset.

python
Client.complete_upload(upload_id)

Returns: Dataset dictionary.

Errors and limits: Incomplete/invalid/expired uploads and workload/parser limits; inspect before retrying.

Client.connect#

Explicitly approve workspace access through browser/device authorization; no constructor login.

python
Client.connect(
    *,
    timeout=600,
    open_browser=True,
    save=False,
    workspace=None,
)

Returns: The same connected Client. Python defaults to process-only origin-bound access; save=True opts into private local persistence.

Errors and limits: AuthenticationError for denied/expired/consumed/unsafe responses or storage, PermissionDeniedError for an existing insufficient key, TransportError or local KeyboardInterrupt; printed link supports headless/remote notebooks.

Client.create_upload#

Declare immutable file format/size/checksum/schema/target before sending chunks.

python
Client.create_upload(
    *,
    format,
    size_bytes,
    sha256,
    target=None,
    schema=None,
)

Returns: Upload session dictionary with ID and chunk_bytes; save its ID for recovery.

Errors and limits: Server envelope/capacity/parser availability; no automatic mutation replay.

Client.dataset#

Inspect one owned private dataset.

python
Client.dataset(dataset_id)

Returns: Dataset metadata dictionary.

Errors and limits: Authentication, permissions or NotFoundError for missing/foreign identity.

Client.datasets#

List private workspace datasets visible to the current key.

python
Client.datasets()

Returns: List of dataset dictionaries.

Errors and limits: Authentication, permission or transport errors.

Client.delete_causal_result#

Explicitly delete an owned primary native graph and scores; job/provenance/usage remain.

python
Client.delete_causal_result(result_id)

Returns: None; repeat owned deletion is safe.

Errors and limits: NotFoundError for missing/foreign identity; retryable deletion_pending keeps quota/dependencies reserved. Deleted reads raise ResultDeletedError.

Client.delete_dataset#

Explicitly delete an owned dataset only when no retained predictor/result or active-job dependencies remain.

python
Client.delete_dataset(dataset_id)

Returns: None; repeat owned deletion is safe.

Errors and limits: NotFoundError for missing/foreign identity; ConflictError code dependency_conflict for dependencies. Never automatic cleanup.

Client.delete_decision#

Explicitly purge private input and result blobs of an owned terminal decision.

python
Client.delete_decision(job_id)

Returns: Deletion dictionary; job identity, idempotency and accounting remain.

Errors and limits: NotFoundError for foreign or missing jobs; ConflictError for active jobs. Datasets remain intact.

Client.delete_forecast#

Explicitly purge an owned terminal forecast's stored input and result (DELETE /v1/forecasts/{id}).

python
Client.delete_forecast(job_id)

Returns: Deletion dictionary {id, deleted: true}; job identity, idempotency and usage remain.

Errors and limits: NotFoundError for foreign/missing/non-forecast jobs; ConflictError (operation_conflict) for an active forecast. Workspace datasets it read are not deleted.

Client.delete_model_run#

Explicitly purge an owned terminal model run input and result.

python
Client.delete_model_run(job_id)

Returns: Deletion dictionary {id, deleted: true}; job identity, idempotency and usage remain.

Errors and limits: NotFoundError for foreign/missing/non-model-run jobs; conflict for an active run. Subsequent result retrieval is NotFoundError.

Client.discover#

Submit and wait for native observational discovery. Facade closes its temporary client.

python
Client.discover(
    dataset_id,
    *,
    model='arrow',
    configuration='default',
    seed=0,
    constraints=None,
    model_version=None,
    idempotency_key=None,
    timeout=600,
)

Returns: CausalResult with native graph type, marks, variables, scores reference and pinned provenance.

Errors and limits: Discovery validation/remote errors and JobTimeoutError. Timeout preserves durable work.

Client.download_research_dataset#

Download version-pinned canonical bytes with exact size/SHA verification to a caller-chosen new path. metadata=True also writes the catalogue detail to <path>.metadata.json after the verified file.

python
Client.download_research_dataset(
    dataset_id,
    path,
    *,
    version=None,
    max_bytes=134217728,
    metadata=False,
)

Returns: pathlib.Path after atomic verified publication (default). metadata=True: frozen ResearchDownload with path, metadata_path, version, sha256 and the detail dictionary. No automatic extraction or upload.

Errors and limits: FileExistsError for existing destination/symlink (with metadata=True, either file is checked before any request); invalid size/version, integrity or TransportError. Interrupted downloads leave no destination.

Client.evaluate#

Submit an evaluation and wait for it within a local timeout.

python
Client.evaluate(
    data_or_dataset,
    target=None,
    *,
    task,
    models=None,
    folds=None,
    split='auto',
    group_column=None,
    fold_column=None,
    seed=0,
    primary_metric=None,
    positive_class=None,
    sample_rows=None,
    max_credits=None,
    idempotency_key=None,
    timeout=600,
)

Returns: Finished Evaluation or AsyncEvaluation; partially_completed returns with an EvaluationWarning.

Errors and limits: Submission errors; ExecutionError when no model finished; JobCancelledError; JobTimeoutError naming the evaluation, which keeps running.

Client.evaluation#

Reopen one evaluation by ID under current workspace authority; no new work.

python
Client.evaluation(evaluation_id)

Returns: Evaluation (await for AsyncClient: AsyncEvaluation).

Errors and limits: NotFoundError for a missing, deleted or foreign evaluation, or code evaluations_unavailable on a server without evaluations; authentication or permission errors.

Client.evaluations#

List the workspace's evaluations.

python
Client.evaluations()

Returns: List of Evaluation or AsyncEvaluation handles.

Errors and limits: Authentication, permission or transport errors.

Client.forecast_job#

Reconnect to a typed forecast job (forecasting or legacy univariate run) without submitting work; a regular factory on both clients.

python
Client.forecast_job(job_id)

Returns: ForecastJob or AsyncForecastJob borrowing this client; typed ForecastResult after waiting.

Errors and limits: Task/identity/provenance validation on inspect/result/cancel; authorization and remote errors. Reconnect cannot reconstruct the original request context.

Client.job#

Reconnect to durable work by ID. This is a regular factory on both Client and AsyncClient.

python
Client.job(job_id)

Returns: Job or AsyncJob handle; no request until inspection/waiting.

Errors and limits: Subsequent methods require current authorization; a local timeout never cancels work.

Client.job_result#

Read ready job result without waiting.

python
Client.job_result(job_id)

Returns: Fit/prediction/native graph/batch result dictionary.

Errors and limits: Not-ready, expired/deleted/not-owned errors retain typed code.

Client.jobs#

List durable jobs in the current workspace.

python
Client.jobs()

Returns: List of job dictionaries.

Errors and limits: Authentication, permission or transport errors.

Client.load_research_dataset#

Download verified content into a private temporary directory and read it as a pandas DataFrame; version=None uses the current content version. Requires the welt-client[research] extra.

python
Client.load_research_dataset(
    dataset_id,
    *,
    version=None,
    metadata=False,
    max_bytes=134217728,
)

Returns: pandas.DataFrame, or (DataFrame, ResearchMetadata) with metadata=True. A notice ZIP also exposes license_text/attribution_text and emits ResearchNoticeWarning. No file is left behind.

Errors and limits: OptionalDependencyError (an ImportError) without pandas/pyarrow; content unavailable, version mismatch or size above max_bytes before download; invalid_research_archive for unexpected ZIP members; integrity or TransportError.

Client.model#

Inspect a catalogue model or explicitly named hidden model under current workspace authority.

python
Client.model(model_id)

Returns: Model metadata dictionary; hidden entries carry tasks, limits, resolved version/configuration, rights and availability.

Errors and limits: NotFoundError for unknown or licence-restricted entries; unavailable native worker remains explicit.

Client.models#

Inspect service-authoritative model task profiles, versions, readiness, configurations and limits.

python
Client.models()

Returns: List of model dictionaries. Presence alone does not qualify execution.

Errors and limits: Transport or service error; public catalogue reads do not require credential preflight.

Client.predict#

Predict on feature-only query rows with the pinned task and fitted version.

python
Client.predict(predictor_id, *, columns, rows, probabilities=False)

Returns: Estimator: numpy.ndarray, shape (n_rows,). Client: provenance-bearing result dictionary.

Errors and limits: Unfitted estimator, schema mismatch, authentication, unavailable worker, capacity or execution errors; pending prediction preserves a job ID.

Client.predictor#

Inspect one owned pinned predictor.

python
Client.predictor(predictor_id)

Returns: Predictor metadata dictionary.

Errors and limits: Authentication, permissions or NotFoundError for missing/foreign identity.

Client.predictors#

List durable fitted predictors in the current workspace.

python
Client.predictors()

Returns: List of predictor dictionaries.

Errors and limits: Authentication, permission or transport errors.

Client.pricing#

Read public pricing without purchasing.

python
Client.pricing()

Returns: Public pricing dictionary (await for AsyncClient).

Errors and limits: Transport/server availability; no payment authority.

Client.put_upload_chunk#

Send bytes with SHA256 for an explicit chunk index.

python
Client.put_upload_chunk(upload_id, index, content)

Returns: Updated upload progress dictionary.

Errors and limits: ValueError for invalid index/bytes; conflicts for changed content; transport errors do not silently retry.

Client.reopen_backtest#

Reconnect to an existing workspace-owned backtest; submit no work.

python
Client.reopen_backtest(backtest_id)

Returns: Backtest or awaited AsyncBacktest borrowing this client.

Errors and limits: NotFoundError for foreign/deleted IDs; authentication/permission or malformed-response errors.

Client.request#

Advanced raw versioned HTTP resource access; prefer named public methods for validation and contracts.

python
Client.request(method, path, **kwargs)

Returns: Decoded JSON value, or None for a 204 endpoint (await for AsyncClient).

Errors and limits: Sanitized typed HTTP/transport errors; authenticated routes require credentials. GET retries are bounded; POST mutations never auto-retry.

Client.research_dataset#

Inspect licence, schema, recorded targets/splits and eligible content before download.

python
Client.research_dataset(dataset_id)

Returns: Full research detail dictionary; content=None means bytes are not eligible.

Errors and limits: Authentication/permission or NotFoundError; never infer redistribution rights from catalogue presence.

Client.research_datasets#

Search the research catalogue without uploading or fitting data.

python
Client.research_datasets(
    *,
    q=None,
    source=None,
    availability=None,
    license=None,
    limit=20,
    cursor=None,
)

Returns: Page dictionary: items, next_cursor, total, catalogue_version, facets.

Errors and limits: Invalid filters/limit, authentication, permission or transport errors.

Client.submit_backtest#

Submit explicit forecasting models at chronological walk-forward origins. See backtesting for fold/context/index/covariate/final options; no implicit upload or model selection.

python
Client.submit_backtest(
    history,
    *,
    models,
    horizon,
    idempotency_key=None,
    **options,
)

Returns: Backtest or awaited AsyncBacktest borrowing this client, with durable ID, pinned versions, child jobs and estimates.

Errors and limits: Authentication/permission, workload/capability/budget/capacity/credit refusals, version/idempotency conflicts or TransportError. Replay the identical request/key after uncertain submission.

Client.submit_batch_predict#

Submit durable prediction on an owned dataset using a pinned predictor.

python
Client.submit_batch_predict(
    predictor_id,
    dataset_id,
    *,
    probabilities=False,
    idempotency_key=None,
)

Returns: Job/AsyncJob with durable ID.

Errors and limits: Availability/envelope/capacity and idempotency conflicts; does not silently resubmit.

Client.submit_decision#

Submit a decision request with per-variable interventions and methods. Prefer client.decisions.create for DataFrame inputs.

python
Client.submit_decision(request, *, idempotency_key=None)

Returns: DecisionJob or awaited AsyncDecisionJob. Save its ID; result() returns DecisionResult.

Errors and limits: Invalid inputs, unsupported model capabilities, capacity, credits or idempotency conflict; mutations never auto-retry.

Client.submit_discover#

Submit target-free observational discovery without converting the native graph.

python
Client.submit_discover(
    dataset_id,
    *,
    model='arrow',
    configuration='default',
    seed=0,
    constraints=None,
    model_version=None,
    idempotency_key=None,
)

Returns: Job/AsyncJob. Facade jobs own job.client until explicitly closed.

Errors and limits: Schema/unsupported constraints, task/model/worker availability, authentication, capacity or execution errors.

Client.submit_evaluation#

Cross-validate models on a dataset ID, or upload a DataFrame, array, CSV or Parquet table with its target first. Empty models lets Welt choose every eligible model. Options are checked locally before any upload.

python
Client.submit_evaluation(
    data_or_dataset,
    target=None,
    *,
    task,
    models=None,
    folds=None,
    split='auto',
    group_column=None,
    fold_column=None,
    seed=0,
    primary_metric=None,
    positive_class=None,
    sample_rows=None,
    max_credits=None,
    idempotency_key=None,
)

Returns: Evaluation (await for AsyncClient: AsyncEvaluation) with its ID, models, skipped models and estimated_credits.

Errors and limits: ValueError for invalid options, targets or split columns before upload; InvalidInputError for server refusals (codes invalid_input, workload_limit, budget_exceeded, no_eligible_models with error.details); ModelUnavailableError; ConflictError for a reused key with different inputs; NotFoundError code evaluations_unavailable on a server without evaluations; TransportError names the dataset ID and key for a replay. Not retried automatically.

Client.submit_fit#

Submit durable preparation immediately. Estimator submission uploads; Client submission reuses a dataset ID.

python
Client.submit_fit(
    dataset_id,
    *,
    model,
    task,
    configuration='default',
    seed=0,
    idempotency_key=None,
)

Returns: Job (or awaited AsyncJob); estimator jobs own job.client, which callers close explicitly.

Errors and limits: Schema/target validation, authentication, permissions, limits, availability or capacity errors. Retain the returned job ID before waiting.

Client.submit_forecast#

Submit one raw POST /v1/forecasts request (DEC-085) with a replay key and optional paired model/configuration version guards. Prefer Forecast, which validates history, limits and results.

python
Client.submit_forecast(
    request,
    *,
    idempotency_key=None,
    expected_model_version=None,
    expected_configuration_version=None,
)

Returns: Job or awaited AsyncJob. Job.result() returns the forecasting result dictionary; forecast_job(job.id) returns a validated ForecastResult.

Errors and limits: Input/envelope (workload_limit), unsupported capability, worker availability, capacity, version (409) or idempotency conflicts. Mutations never auto-retry; replay the same body and key after a transport failure.

Client.submit_model_run#

Submit one bounded hidden-model run with an explicit task payload and replay key.

python
Client.submit_model_run(
    payload,
    *,
    idempotency_key=None,
    expected_model_version=None,
    expected_configuration_version=None,
)

Returns: Job or awaited AsyncJob. Job.result() returns the task-specific result dictionary.

Errors and limits: Input/envelope, licence scope, worker availability, capacity or idempotency conflicts. No fitted predictor is created; resubmission with a new key executes again.

Client.upload#

Create a private workspace dataset from explicit columns and rows; target=None keeps every column for discovery.

python
Client.upload(*, columns, rows, name='SDK dataset', target=None)

Returns: Dataset dictionary with a durable id.

Errors and limits: Authentication, permission, schema/target, or workload-limit errors.

Client.upload_file#

Hash a local CSV/Parquet file, verify resume metadata, skip acknowledged chunks and complete.

python
Client.upload_file(
    path,
    *,
    target=None,
    schema=None,
    format=None,
    upload_id=None,
)

Returns: Dataset dictionary; uses bounded chunk memory.

Errors and limits: Local file/metadata ValueError; remote errors. Use create_upload and retain its ID for recovery. Async local hashing/reads are blocking disk I/O.

Client.upload_session#

Inspect an owned upload and acknowledged chunks.

python
Client.upload_session(upload_id)

Returns: Upload metadata/progress dictionary.

Errors and limits: NotFoundError for another tenant; explicit expired/failed status.

Client.usage#

Inspect operation, lifecycle and attempt workload metadata; count operation IDs rather than events.

python
Client.usage()

Returns: List of usage dictionaries, including nullable credits and rate_card_version accounting fields. credits records the operation's reservation until settlement, then its net credit charge; null means unpriced, not a promise of free execution, and differs from zero. Usage contains no raw prediction payloads or quality scores. Read current rates with pricing() and manage credits in Workspace Billing.

Errors and limits: Authentication, permission or transport errors.

Client.workspace#

Inspect the credential workspace, role, metadata and resolved limits.

python
Client.workspace()

Returns: Workspace dictionary (await for AsyncClient).

Errors and limits: Missing/invalid credential or workspace selection mismatch; no account-wide authority.

Job#

python
Job(client, job_id)
Parameter Default Description
client required The Client that owns the HTTP connection.
job_id required Durable job ID returned at submission.

Job.cancel#

Explicitly request remote cancellation of this job.

python
Job.cancel()

Returns: Server job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError or job conflict; cancellation races with completion.

Job.inspect#

Read the durable job state and server-reported stages.

python
Job.inspect()

Returns: Job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError, transport or service errors.

Job.result#

Poll until completion within a local waiting budget; never resubmit or implicitly cancel.

python
Job.result(*, timeout=600, poll_interval=0.25)

Returns: Supervised fit: predictor dictionary. Predict or model_run: result dictionary. Discovery: CausalResult. Batch prediction: manifest dictionary for succeeded or partially_completed jobs, with row_count, successful_ranges, failed_ranges, result_reference and expires_at. Ranges are zero-based [start, stop), with stop excluded. Inspect failed_ranges before using the result; retrieve ordered predictions, probabilities and per-range errors separately through client.batch_payload(job.id, result_reference=manifest["result_reference"]). Failed rows have null predictions; partial completion is not success for every row.

Errors and limits: JobTimeoutError with job_id for reconnect; typed failed/cancelled job errors. Synchronous request phase budgets are cooperative, not a hard wall-clock interrupt. Batch payload retrieval requires current workspace authorization and unexpired retention; no third-party download URL is followed.

Classifier#

python
Classifier(
    model='tabicl-v2',
    configuration='default',
    base_url=None,
    api_key=None,
    random_state=0,
    timeout=600,
)
Parameter Default Description
model 'tabicl-v2' Catalogue model ID. Changing it needs a new fit; see Models and limits.
configuration 'default' Named model configuration from the catalogue.
base_url None Welt API address. None uses WELT_BASE_URL, then https://welt.ergodic.dev.
api_key None Explicit key. None uses WELT_API_KEY, then access saved by welt login or connect(save=True).
random_state 0 Seed sent with the fit and pinned with the predictor.
timeout 600 Seconds a blocking call waits locally. When it runs out, the server job keeps running.

Classifier.export_metadata#

Export provenance only; no weights, executable context or credentials.

python
Classifier.export_metadata()

Returns: JSON-compatible server metadata dictionary.

Errors and limits: Same errors as metadata.

Classifier.fit#

Prepare a new immutable predictor; wait for durable remote preparation.

python
Classifier.fit(X, y=None, *, target=None)

Returns: The same fitted estimator (self).

Errors and limits: ValueError for schema/target conflicts before upload; authentication, input, unavailable-model, capacity, execution or JobTimeoutError during remote preparation.

Classifier.from_predictor#

Reopen an owned predictor using the current credentials, without a new fit or training-table upload.

python
Classifier.from_predictor(predictor_id, *, base_url=None, api_key=None)

Returns: A fitted estimator of the matching task, with pinned model/configuration/version/seed.

Errors and limits: NotFoundError for missing/foreign identity; authentication/permission errors; ValueError for a task mismatch.

Classifier.metadata#

Inspect a fitted predictor under current workspace authorization.

python
Classifier.metadata()

Returns: Server predictor metadata dictionary.

Errors and limits: Unfitted estimator, authentication, permission, or NotFoundError.

Classifier.predict#

Predict on feature-only query rows with the pinned task and fitted version.

python
Classifier.predict(X)

Returns: Estimator: numpy.ndarray, shape (n_rows,). Client: provenance-bearing result dictionary.

Errors and limits: Unfitted estimator, schema mismatch, authentication, unavailable worker, capacity or execution errors; pending prediction preserves a job ID.

Classifier.predict_details#

Return predictions plus operation/model/version provenance.

python
Classifier.predict_details(X, *, probabilities=False)

Returns: JSON-compatible result dictionary; probabilities requested explicitly.

Errors and limits: Same validation and remote errors as predict.

Classifier.predict_proba#

Return native class probabilities in classes_ column order.

python
Classifier.predict_proba(X)

Returns: numpy.ndarray, shape (n_rows, n_classes). No calibrated coverage guarantee.

Errors and limits: Prediction errors; ValueError if the model returns no probabilities.

Classifier.score#

Use the inherited sklearn scoring convention on explicit held-out rows.

python
Classifier.score(X, y, sample_weight=None)

Returns: Classifier: accuracy. Regressor: R². This is not an automatic hosted benchmark.

Errors and limits: Prediction/schema/task errors; caller owns the split and evaluation protocol.

Classifier.set_params#

Set sklearn constructor parameters; a changed model/configuration requires a new fit.

python
Classifier.set_params(**params)

Returns: The same estimator (self).

Errors and limits: ValueError for an invalid parameter. Does not mutate existing pinned server artifacts.

Classifier.submit_fit#

Submit durable preparation immediately. Estimator submission uploads; Client submission reuses a dataset ID.

python
Classifier.submit_fit(X, y=None, *, target=None)

Returns: Job (or awaited AsyncJob); estimator jobs own job.client, which callers close explicitly.

Errors and limits: Schema/target validation, authentication, permissions, limits, availability or capacity errors. Retain the returned job ID before waiting.

Regressor#

python
Regressor(
    model='tabicl-v2',
    configuration='default',
    base_url=None,
    api_key=None,
    random_state=0,
    timeout=600,
)
Parameter Default Description
model 'tabicl-v2' Catalogue model ID. Changing it needs a new fit; see Models and limits.
configuration 'default' Named model configuration from the catalogue.
base_url None Welt API address. None uses WELT_BASE_URL, then https://welt.ergodic.dev.
api_key None Explicit key. None uses WELT_API_KEY, then access saved by welt login or connect(save=True).
random_state 0 Seed sent with the fit and pinned with the predictor.
timeout 600 Seconds a blocking call waits locally. When it runs out, the server job keeps running.

Regressor.export_metadata#

Export provenance only; no weights, executable context or credentials.

python
Regressor.export_metadata()

Returns: JSON-compatible server metadata dictionary.

Errors and limits: Same errors as metadata.

Regressor.fit#

Prepare a new immutable predictor; wait for durable remote preparation.

python
Regressor.fit(X, y=None, *, target=None)

Returns: The same fitted estimator (self).

Errors and limits: ValueError for schema/target conflicts before upload; authentication, input, unavailable-model, capacity, execution or JobTimeoutError during remote preparation.

Regressor.from_predictor#

Reopen an owned predictor using the current credentials, without a new fit or training-table upload.

python
Regressor.from_predictor(predictor_id, *, base_url=None, api_key=None)

Returns: A fitted estimator of the matching task, with pinned model/configuration/version/seed.

Errors and limits: NotFoundError for missing/foreign identity; authentication/permission errors; ValueError for a task mismatch.

Regressor.metadata#

Inspect a fitted predictor under current workspace authorization.

python
Regressor.metadata()

Returns: Server predictor metadata dictionary.

Errors and limits: Unfitted estimator, authentication, permission, or NotFoundError.

Regressor.predict#

Predict on feature-only query rows with the pinned task and fitted version.

python
Regressor.predict(X)

Returns: Estimator: numpy.ndarray, shape (n_rows,). Client: provenance-bearing result dictionary.

Errors and limits: Unfitted estimator, schema mismatch, authentication, unavailable worker, capacity or execution errors; pending prediction preserves a job ID.

Regressor.predict_details#

Return predictions plus operation/model/version provenance.

python
Regressor.predict_details(X, *, probabilities=False)

Returns: JSON-compatible result dictionary; probabilities requested explicitly.

Errors and limits: Same validation and remote errors as predict.

Regressor.score#

Use the inherited sklearn scoring convention on explicit held-out rows.

python
Regressor.score(X, y, sample_weight=None)

Returns: Classifier: accuracy. Regressor: R². This is not an automatic hosted benchmark.

Errors and limits: Prediction/schema/task errors; caller owns the split and evaluation protocol.

Regressor.set_params#

Set sklearn constructor parameters; a changed model/configuration requires a new fit.

python
Regressor.set_params(**params)

Returns: The same estimator (self).

Errors and limits: ValueError for an invalid parameter. Does not mutate existing pinned server artifacts.

Regressor.submit_fit#

Submit durable preparation immediately. Estimator submission uploads; Client submission reuses a dataset ID.

python
Regressor.submit_fit(X, y=None, *, target=None)

Returns: Job (or awaited AsyncJob); estimator jobs own job.client, which callers close explicitly.

Errors and limits: Schema/target validation, authentication, permissions, limits, availability or capacity errors. Retain the returned job ID before waiting.

AsyncClient#

python
AsyncClient(
    base_url=None,
    api_key=None,
    *,
    timeout=60,
    transport=None,
    max_retries=2,
    max_retry_delay=5,
    workspace=None,
)
Parameter Default Description
base_url None Welt API address. None uses WELT_BASE_URL, then https://welt.ergodic.dev.
api_key None Explicit key. None uses WELT_API_KEY, then access saved by welt login or connect(save=True).
timeout 60 HTTP timeout in seconds for each request.
transport None Optional httpx transport, for tests or custom networking.
max_retries 2 Bounded retries for GET requests, 0 to 5. Mutations never retry automatically.
max_retry_delay 5 Longest wait between GET retries, 0 to 60 seconds.
workspace None Workspace ID or slug that the credential must belong to. None uses WELT_WORKSPACE when set.

AsyncClient.aclose#

Close the asynchronous HTTP client.

python
AsyncClient.aclose()

Returns: Awaited None.

Errors and limits: Closing is local, not deletion or cancellation.

AsyncClient.backtest#

Submit and wait for a walk-forward forecasting evaluation; validate timeout before submission. final_horizon is opt-in and excluded from historical scores.

python
AsyncClient.backtest(
    history,
    *,
    models,
    horizon,
    timeout=600,
    idempotency_key=None,
    **options,
)

Returns: Backtest or awaited AsyncBacktest; partial completion emits BacktestWarning.

Errors and limits: Authentication/permission, workload/capability/budget/capacity/credit refusals, version/idempotency conflicts or TransportError. Replay the identical request/key after uncertain submission. JobTimeoutError names reopen_backtest(id).wait(); work is not cancelled. Failed/cancelled waits raise typed errors.

AsyncClient.backtests#

List workspace-owned backtests and current progress.

python
AsyncClient.backtests()

Returns: List of Backtest or awaited AsyncBacktest handles.

Errors and limits: Authentication, permission, transport or malformed-response errors.

AsyncClient.batch_payload#

Retrieve retained batch JSON through the same authenticated origin.

python
AsyncClient.batch_payload(job_id, *, result_reference=None)

Returns: Payload dictionary with ordered predictions/errors/provenance.

Errors and limits: Not-ready/not-owned/expired result or wrong reference; no third-party URL fetching.

AsyncClient.causal_result#

Reopen an owned discovery job result and validate identity/provenance.

python
AsyncClient.causal_result(job_id)

Returns: Immutable CausalResult with job_id.

Errors and limits: NotFoundError, ResultDeletedError, authentication or InvalidCausalResultError; no graph repair.

AsyncClient.causal_scores#

Fetch separate native scores while preserving original axes and score semantics.

python
AsyncClient.causal_scores(job_id)

Returns: Score dictionary with values, variables, source_row_target_column axes and score_reference.

Errors and limits: Authorization, deleted/missing result or InvalidCausalResultError; no thresholding or graph rewriting.

AsyncClient.complete_upload#

Validate owned chunks/checksum/schema and create immutable dataset.

python
AsyncClient.complete_upload(upload_id)

Returns: Dataset dictionary.

Errors and limits: Incomplete/invalid/expired uploads and workload/parser limits; inspect before retrying.

AsyncClient.create_upload#

Declare immutable file format/size/checksum/schema/target before sending chunks.

python
AsyncClient.create_upload(
    *,
    format,
    size_bytes,
    sha256,
    target=None,
    schema=None,
)

Returns: Upload session dictionary with ID and chunk_bytes; save its ID for recovery.

Errors and limits: Server envelope/capacity/parser availability; no automatic mutation replay.

AsyncClient.dataset#

Inspect one owned private dataset.

python
AsyncClient.dataset(dataset_id)

Returns: Dataset metadata dictionary.

Errors and limits: Authentication, permissions or NotFoundError for missing/foreign identity.

AsyncClient.datasets#

List private workspace datasets visible to the current key.

python
AsyncClient.datasets()

Returns: List of dataset dictionaries.

Errors and limits: Authentication, permission or transport errors.

AsyncClient.delete_causal_result#

Explicitly delete an owned primary native graph and scores; job/provenance/usage remain.

python
AsyncClient.delete_causal_result(result_id)

Returns: None; repeat owned deletion is safe.

Errors and limits: NotFoundError for missing/foreign identity; retryable deletion_pending keeps quota/dependencies reserved. Deleted reads raise ResultDeletedError.

AsyncClient.delete_dataset#

Explicitly delete an owned dataset only when no retained predictor/result or active-job dependencies remain.

python
AsyncClient.delete_dataset(dataset_id)

Returns: None; repeat owned deletion is safe.

Errors and limits: NotFoundError for missing/foreign identity; ConflictError code dependency_conflict for dependencies. Never automatic cleanup.

AsyncClient.delete_decision#

Explicitly purge private input and result blobs of an owned terminal decision.

python
AsyncClient.delete_decision(job_id)

Returns: Deletion dictionary; job identity, idempotency and accounting remain.

Errors and limits: NotFoundError for foreign or missing jobs; ConflictError for active jobs. Datasets remain intact.

AsyncClient.delete_forecast#

Explicitly purge an owned terminal forecast's stored input and result (DELETE /v1/forecasts/{id}).

python
AsyncClient.delete_forecast(job_id)

Returns: Deletion dictionary {id, deleted: true}; job identity, idempotency and usage remain.

Errors and limits: NotFoundError for foreign/missing/non-forecast jobs; ConflictError (operation_conflict) for an active forecast. Workspace datasets it read are not deleted.

AsyncClient.delete_model_run#

Explicitly purge an owned terminal model run input and result.

python
AsyncClient.delete_model_run(job_id)

Returns: Deletion dictionary {id, deleted: true}; job identity, idempotency and usage remain.

Errors and limits: NotFoundError for foreign/missing/non-model-run jobs; conflict for an active run. Subsequent result retrieval is NotFoundError.

AsyncClient.discover#

Submit and wait for native observational discovery. Facade closes its temporary client.

python
AsyncClient.discover(
    dataset_id,
    *,
    model='arrow',
    configuration='default',
    seed=0,
    constraints=None,
    model_version=None,
    idempotency_key=None,
    timeout=600,
)

Returns: CausalResult with native graph type, marks, variables, scores reference and pinned provenance.

Errors and limits: Discovery validation/remote errors and JobTimeoutError. Timeout preserves durable work.

AsyncClient.download_research_dataset#

Download version-pinned canonical bytes with exact size/SHA verification to a caller-chosen new path. metadata=True also writes the catalogue detail to <path>.metadata.json after the verified file.

python
AsyncClient.download_research_dataset(
    dataset_id,
    path,
    *,
    version=None,
    max_bytes=134217728,
    metadata=False,
)

Returns: pathlib.Path after atomic verified publication (default). metadata=True: frozen ResearchDownload with path, metadata_path, version, sha256 and the detail dictionary. No automatic extraction or upload.

Errors and limits: FileExistsError for existing destination/symlink (with metadata=True, either file is checked before any request); invalid size/version, integrity or TransportError. Interrupted downloads leave no destination.

AsyncClient.evaluate#

Submit an evaluation and wait for it within a local timeout.

python
AsyncClient.evaluate(
    data_or_dataset,
    target=None,
    *,
    task,
    models=None,
    folds=None,
    split='auto',
    group_column=None,
    fold_column=None,
    seed=0,
    primary_metric=None,
    positive_class=None,
    sample_rows=None,
    max_credits=None,
    idempotency_key=None,
    timeout=600,
)

Returns: Finished Evaluation or AsyncEvaluation; partially_completed returns with an EvaluationWarning.

Errors and limits: Submission errors; ExecutionError when no model finished; JobCancelledError; JobTimeoutError naming the evaluation, which keeps running.

AsyncClient.evaluation#

Reopen one evaluation by ID under current workspace authority; no new work.

python
AsyncClient.evaluation(evaluation_id)

Returns: Evaluation (await for AsyncClient: AsyncEvaluation).

Errors and limits: NotFoundError for a missing, deleted or foreign evaluation, or code evaluations_unavailable on a server without evaluations; authentication or permission errors.

AsyncClient.evaluations#

List the workspace's evaluations.

python
AsyncClient.evaluations()

Returns: List of Evaluation or AsyncEvaluation handles.

Errors and limits: Authentication, permission or transport errors.

AsyncClient.forecast_job#

Reconnect to a typed forecast job (forecasting or legacy univariate run) without submitting work; a regular factory on both clients.

python
AsyncClient.forecast_job(job_id)

Returns: ForecastJob or AsyncForecastJob borrowing this client; typed ForecastResult after waiting.

Errors and limits: Task/identity/provenance validation on inspect/result/cancel; authorization and remote errors. Reconnect cannot reconstruct the original request context.

AsyncClient.job#

Reconnect to durable work by ID. This is a regular factory on both Client and AsyncClient.

python
AsyncClient.job(job_id)

Returns: Job or AsyncJob handle; no request until inspection/waiting.

Errors and limits: Subsequent methods require current authorization; a local timeout never cancels work.

AsyncClient.job_result#

Read ready job result without waiting.

python
AsyncClient.job_result(job_id)

Returns: Fit/prediction/native graph/batch result dictionary.

Errors and limits: Not-ready, expired/deleted/not-owned errors retain typed code.

AsyncClient.jobs#

List durable jobs in the current workspace.

python
AsyncClient.jobs()

Returns: List of job dictionaries.

Errors and limits: Authentication, permission or transport errors.

AsyncClient.load_research_dataset#

Download verified content into a private temporary directory and read it as a pandas DataFrame; version=None uses the current content version. Requires the welt-client[research] extra.

python
AsyncClient.load_research_dataset(
    dataset_id,
    *,
    version=None,
    metadata=False,
    max_bytes=134217728,
)

Returns: pandas.DataFrame, or (DataFrame, ResearchMetadata) with metadata=True. A notice ZIP also exposes license_text/attribution_text and emits ResearchNoticeWarning. No file is left behind.

Errors and limits: OptionalDependencyError (an ImportError) without pandas/pyarrow; content unavailable, version mismatch or size above max_bytes before download; invalid_research_archive for unexpected ZIP members; integrity or TransportError.

AsyncClient.model#

Inspect a catalogue model or explicitly named hidden model under current workspace authority.

python
AsyncClient.model(model_id)

Returns: Model metadata dictionary; hidden entries carry tasks, limits, resolved version/configuration, rights and availability.

Errors and limits: NotFoundError for unknown or licence-restricted entries; unavailable native worker remains explicit.

AsyncClient.models#

Inspect service-authoritative model task profiles, versions, readiness, configurations and limits.

python
AsyncClient.models()

Returns: List of model dictionaries. Presence alone does not qualify execution.

Errors and limits: Transport or service error; public catalogue reads do not require credential preflight.

AsyncClient.predict#

Predict on feature-only query rows with the pinned task and fitted version.

python
AsyncClient.predict(predictor_id, *, columns, rows, probabilities=False)

Returns: Estimator: numpy.ndarray, shape (n_rows,). Client: provenance-bearing result dictionary.

Errors and limits: Unfitted estimator, schema mismatch, authentication, unavailable worker, capacity or execution errors; pending prediction preserves a job ID.

AsyncClient.predictor#

Inspect one owned pinned predictor.

python
AsyncClient.predictor(predictor_id)

Returns: Predictor metadata dictionary.

Errors and limits: Authentication, permissions or NotFoundError for missing/foreign identity.

AsyncClient.predictors#

List durable fitted predictors in the current workspace.

python
AsyncClient.predictors()

Returns: List of predictor dictionaries.

Errors and limits: Authentication, permission or transport errors.

AsyncClient.pricing#

Read public pricing without purchasing.

python
AsyncClient.pricing()

Returns: Public pricing dictionary (await for AsyncClient).

Errors and limits: Transport/server availability; no payment authority.

AsyncClient.put_upload_chunk#

Send bytes with SHA256 for an explicit chunk index.

python
AsyncClient.put_upload_chunk(upload_id, index, content)

Returns: Updated upload progress dictionary.

Errors and limits: ValueError for invalid index/bytes; conflicts for changed content; transport errors do not silently retry.

AsyncClient.reopen_backtest#

Reconnect to an existing workspace-owned backtest; submit no work.

python
AsyncClient.reopen_backtest(backtest_id)

Returns: Backtest or awaited AsyncBacktest borrowing this client.

Errors and limits: NotFoundError for foreign/deleted IDs; authentication/permission or malformed-response errors.

AsyncClient.request#

Advanced raw versioned HTTP resource access; prefer named public methods for validation and contracts.

python
AsyncClient.request(method, path, **kwargs)

Returns: Decoded JSON value, or None for a 204 endpoint (await for AsyncClient).

Errors and limits: Sanitized typed HTTP/transport errors; authenticated routes require credentials. GET retries are bounded; POST mutations never auto-retry.

AsyncClient.research_dataset#

Inspect licence, schema, recorded targets/splits and eligible content before download.

python
AsyncClient.research_dataset(dataset_id)

Returns: Full research detail dictionary; content=None means bytes are not eligible.

Errors and limits: Authentication/permission or NotFoundError; never infer redistribution rights from catalogue presence.

AsyncClient.research_datasets#

Search the research catalogue without uploading or fitting data.

python
AsyncClient.research_datasets(
    *,
    q=None,
    source=None,
    availability=None,
    license=None,
    limit=20,
    cursor=None,
)

Returns: Page dictionary: items, next_cursor, total, catalogue_version, facets.

Errors and limits: Invalid filters/limit, authentication, permission or transport errors.

AsyncClient.submit_backtest#

Submit explicit forecasting models at chronological walk-forward origins. See backtesting for fold/context/index/covariate/final options; no implicit upload or model selection.

python
AsyncClient.submit_backtest(
    history,
    *,
    models,
    horizon,
    idempotency_key=None,
    **options,
)

Returns: Backtest or awaited AsyncBacktest borrowing this client, with durable ID, pinned versions, child jobs and estimates.

Errors and limits: Authentication/permission, workload/capability/budget/capacity/credit refusals, version/idempotency conflicts or TransportError. Replay the identical request/key after uncertain submission.

AsyncClient.submit_batch_predict#

Submit durable prediction on an owned dataset using a pinned predictor.

python
AsyncClient.submit_batch_predict(
    predictor_id,
    dataset_id,
    *,
    probabilities=False,
    idempotency_key=None,
)

Returns: Job/AsyncJob with durable ID.

Errors and limits: Availability/envelope/capacity and idempotency conflicts; does not silently resubmit.

AsyncClient.submit_decision#

Submit a decision request with per-variable interventions and methods. Prefer client.decisions.create for DataFrame inputs.

python
AsyncClient.submit_decision(request, *, idempotency_key=None)

Returns: DecisionJob or awaited AsyncDecisionJob. Save its ID; result() returns DecisionResult.

Errors and limits: Invalid inputs, unsupported model capabilities, capacity, credits or idempotency conflict; mutations never auto-retry.

AsyncClient.submit_discover#

Submit target-free observational discovery without converting the native graph.

python
AsyncClient.submit_discover(
    dataset_id,
    *,
    model='arrow',
    configuration='default',
    seed=0,
    constraints=None,
    model_version=None,
    idempotency_key=None,
)

Returns: Job/AsyncJob. Facade jobs own job.client until explicitly closed.

Errors and limits: Schema/unsupported constraints, task/model/worker availability, authentication, capacity or execution errors.

AsyncClient.submit_evaluation#

Cross-validate models on a dataset ID, or upload a DataFrame, array, CSV or Parquet table with its target first. Empty models lets Welt choose every eligible model. Options are checked locally before any upload.

python
AsyncClient.submit_evaluation(
    data_or_dataset,
    target=None,
    *,
    task,
    models=None,
    folds=None,
    split='auto',
    group_column=None,
    fold_column=None,
    seed=0,
    primary_metric=None,
    positive_class=None,
    sample_rows=None,
    max_credits=None,
    idempotency_key=None,
)

Returns: Evaluation (await for AsyncClient: AsyncEvaluation) with its ID, models, skipped models and estimated_credits.

Errors and limits: ValueError for invalid options, targets or split columns before upload; InvalidInputError for server refusals (codes invalid_input, workload_limit, budget_exceeded, no_eligible_models with error.details); ModelUnavailableError; ConflictError for a reused key with different inputs; NotFoundError code evaluations_unavailable on a server without evaluations; TransportError names the dataset ID and key for a replay. Not retried automatically.

AsyncClient.submit_fit#

Submit durable preparation immediately. Estimator submission uploads; Client submission reuses a dataset ID.

python
AsyncClient.submit_fit(
    dataset_id,
    *,
    model,
    task,
    configuration='default',
    seed=0,
    idempotency_key=None,
)

Returns: Job (or awaited AsyncJob); estimator jobs own job.client, which callers close explicitly.

Errors and limits: Schema/target validation, authentication, permissions, limits, availability or capacity errors. Retain the returned job ID before waiting.

AsyncClient.submit_forecast#

Submit one raw POST /v1/forecasts request (DEC-085) with a replay key and optional paired model/configuration version guards. Prefer Forecast, which validates history, limits and results.

python
AsyncClient.submit_forecast(
    request,
    *,
    idempotency_key=None,
    expected_model_version=None,
    expected_configuration_version=None,
)

Returns: Job or awaited AsyncJob. Job.result() returns the forecasting result dictionary; forecast_job(job.id) returns a validated ForecastResult.

Errors and limits: Input/envelope (workload_limit), unsupported capability, worker availability, capacity, version (409) or idempotency conflicts. Mutations never auto-retry; replay the same body and key after a transport failure.

AsyncClient.submit_model_run#

Submit one bounded hidden-model run with an explicit task payload and replay key.

python
AsyncClient.submit_model_run(
    payload,
    *,
    idempotency_key=None,
    expected_model_version=None,
    expected_configuration_version=None,
)

Returns: Job or awaited AsyncJob. Job.result() returns the task-specific result dictionary.

Errors and limits: Input/envelope, licence scope, worker availability, capacity or idempotency conflicts. No fitted predictor is created; resubmission with a new key executes again.

AsyncClient.upload#

Create a private workspace dataset from explicit columns and rows; target=None keeps every column for discovery.

python
AsyncClient.upload(*, columns, rows, name='SDK dataset', target=None)

Returns: Dataset dictionary with a durable id.

Errors and limits: Authentication, permission, schema/target, or workload-limit errors.

AsyncClient.upload_file#

Hash a local CSV/Parquet file, verify resume metadata, skip acknowledged chunks and complete.

python
AsyncClient.upload_file(
    path,
    *,
    target=None,
    schema=None,
    format=None,
    upload_id=None,
)

Returns: Dataset dictionary; uses bounded chunk memory.

Errors and limits: Local file/metadata ValueError; remote errors. Use create_upload and retain its ID for recovery. Async local hashing/reads are blocking disk I/O.

AsyncClient.upload_session#

Inspect an owned upload and acknowledged chunks.

python
AsyncClient.upload_session(upload_id)

Returns: Upload metadata/progress dictionary.

Errors and limits: NotFoundError for another tenant; explicit expired/failed status.

AsyncClient.usage#

Inspect operation, lifecycle and attempt workload metadata; count operation IDs rather than events.

python
AsyncClient.usage()

Returns: List of usage dictionaries, including nullable credits and rate_card_version accounting fields. credits records the operation's reservation until settlement, then its net credit charge; null means unpriced, not a promise of free execution, and differs from zero. Usage contains no raw prediction payloads or quality scores. Read current rates with pricing() and manage credits in Workspace Billing.

Errors and limits: Authentication, permission or transport errors.

AsyncClient.workspace#

Inspect the credential workspace, role, metadata and resolved limits.

python
AsyncClient.workspace()

Returns: Workspace dictionary (await for AsyncClient).

Errors and limits: Missing/invalid credential or workspace selection mismatch; no account-wide authority.

AsyncJob#

python
AsyncJob(client, job_id)
Parameter Default Description
client required The AsyncClient that owns the HTTP connection.
job_id required Durable job ID returned at submission.

AsyncJob.cancel#

Explicitly request remote cancellation of this job.

python
AsyncJob.cancel()

Returns: Server job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError or job conflict; cancellation races with completion.

AsyncJob.inspect#

Read the durable job state and server-reported stages.

python
AsyncJob.inspect()

Returns: Job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError, transport or service errors.

AsyncJob.result#

Poll until completion within a local waiting budget; never resubmit or implicitly cancel.

python
AsyncJob.result(*, timeout=600, poll_interval=0.25)

Returns: Supervised fit: predictor dictionary. Predict or model_run: result dictionary. Discovery: CausalResult. Batch prediction: manifest dictionary for succeeded or partially_completed jobs, with row_count, successful_ranges, failed_ranges, result_reference and expires_at. Ranges are zero-based [start, stop), with stop excluded. Inspect failed_ranges before using the result; retrieve ordered predictions, probabilities and per-range errors separately through client.batch_payload(job.id, result_reference=manifest["result_reference"]). Failed rows have null predictions; partial completion is not success for every row.

Errors and limits: JobTimeoutError with job_id for reconnect; typed failed/cancelled job errors. Synchronous request phase budgets are cooperative, not a hard wall-clock interrupt. Batch payload retrieval requires current workspace authorization and unexpired retention; no third-party download URL is followed.

CausalDiscovery#

python
CausalDiscovery(
    model='arrow',
    configuration='default',
    base_url=None,
    api_key=None,
    random_state=0,
    timeout=600,
)
Parameter Default Description
model 'arrow' Catalogue discovery model ID: arrow, cdfm or avici.
configuration 'default' Named model configuration from the catalogue.
base_url None Welt API address. None uses WELT_BASE_URL, then https://welt.ergodic.dev.
api_key None Explicit key. None uses WELT_API_KEY, then access saved by welt login or connect(save=True).
random_state 0 Unsigned 32-bit seed recorded with the discovery job.
timeout 600 Seconds a blocking call waits locally. When it runs out, the server job keeps running.

CausalDiscovery.discover#

Submit and wait for native observational discovery. Facade closes its temporary client.

python
CausalDiscovery.discover(
    X=None,
    *,
    dataset_id=None,
    constraints=None,
    model_version=None,
    idempotency_key=None,
)

Returns: CausalResult with native graph type, marks, variables, scores reference and pinned provenance.

Errors and limits: Discovery validation/remote errors and JobTimeoutError. Timeout preserves durable work.

CausalDiscovery.set_params#

Set sklearn constructor parameters; a changed model/configuration requires a new fit.

python
CausalDiscovery.set_params(**params)

Returns: The same estimator (self).

Errors and limits: ValueError for an invalid parameter. Does not mutate existing pinned server artifacts.

CausalDiscovery.submit_discover#

Submit target-free observational discovery without converting the native graph.

python
CausalDiscovery.submit_discover(
    X=None,
    *,
    dataset_id=None,
    constraints=None,
    model_version=None,
    idempotency_key=None,
)

Returns: Job/AsyncJob. Facade jobs own job.client until explicitly closed.

Errors and limits: Schema/unsupported constraints, task/model/worker availability, authentication, capacity or execution errors.

CausalResult#

python
CausalResult(payload)
Parameter Default Description
payload required Native result payload. Usually obtained from discover() or causal_result(), not built by hand.

Immutable native result. Read id, dataset_id, job_id, variables, edge_marks, native_graph_type, model_version, configuration_version, score_reference, decoder, assumptions and diagnostics. The result retains no HTTP client or credentials. Scores remain a separate authenticated read.

CausalResult.to_dict#

Return an independent JSON-compatible copy of the result.

python
CausalResult.to_dict()

Returns: Dictionary of the result fields; job_id remains a separate property. Causal and forecasting results keep the native wire fields; a univariate Forecast fit returns the 0.13-shaped univariate_forecasting view on either route, derived from the server result on the forecasting route.

Errors and limits: No remote call; mutations do not affect the immutable result.

CausalResult.to_ergodic#

Convert only a declared native DAG locally, preserving isolates and direction; never project directed graphs.

python
CausalResult.to_ergodic()

Returns: ergodic.MixedGraph (install welt-client[ergodic]). Use to_adjacency(order=list(result.variables)) for original axes.

Errors and limits: OptionalDependencyError when ergodic is missing or reads no supported graph format (ergodic.GRAPH_FORMAT); UnsupportedGraphConversionError for every non-declared-DAG graph.

Forecast#

python
Forecast(
    model='chronos-2',
    configuration='default',
    base_url=None,
    api_key=None,
    workspace=None,
    timeout=600,
    client=None,
)
Parameter Default Description
model 'chronos-2' Forecast model ID.
configuration 'default' Model configuration. This version accepts only 'default'.
base_url None Welt API address. None uses WELT_BASE_URL, then https://welt.ergodic.dev.
api_key None Explicit key. None uses WELT_API_KEY, then access saved by welt login or connect(save=True).
workspace None Workspace ID or slug that the credential must belong to. None uses WELT_WORKSPACE when set.
timeout 600 Seconds a blocking prediction waits locally. The run keeps going when it runs out.
client None An existing welt.Client to borrow (for example with your own transport) instead of opening one per call. Mutually exclusive with base_url, api_key and workspace; never closed by the estimator or its jobs; clones share it.

Zero-shot local history context, not a durable Predictor. See forecasting for input/time/version/ownership rules and backtesting for explicit walk-forward evaluation. No automatic cross-validation or score call.

fit parameters. history: a long-format DataFrame (one row per series ID and time, any order), a workspace dataset ID (or a dataset dictionary with id; the server validates its rows), a Series with a DatetimeIndex, or an array with start and frequency_seconds. time: the time column. target: one column name or a list, forecast jointly. id: the series column; absent means one series. past_covariates: columns observed in the history only. future_covariates: columns also known for the horizon, supplied through forecast(future=...). categorical: covariates holding string or integer categories; missing cells are allowed in past covariates only. frequency: {"unit", "every"} with unit second, minute, hour, day, week, month, quarter or year, or an alias from welt.forecast.FREQUENCY_ALIASES (s, min/T, h/H, D, W, M/MS/ME, Q/QS/QE, Y/YS/YE/A/AS, optionally prefixed by a multiple such as 15min); without it the spacing is checked locally and the server infers it. Long-format naive timestamps are read as UTC; the univariate form (array, Series, or one string target without id or covariates) requires timezone-aware times and at least 16 observations.

forecast parameters. horizon: steps after each series' last observation, within a published envelope. future: required exactly when the fit named future covariates; a DataFrame with exactly the time, id and future covariate columns and horizon rows per series at its next timestamps, or a workspace dataset ID. quantile_levels: an increasing subset of the levels the model publishes (by default the 21 native levels 0.01, 0.05, 0.10, …, 0.95, 0.99); the request default is (0.1, 0.5, 0.9). cross_learning: True lets series share information. DataFrame tables travel inline; a body above welt.forecast.MAX_REQUEST_BYTES (10 MiB, the default body limit of the Welt API; the server does not publish its limit, so a deployment override of WELT_HTTP_BODY_BYTES is not reflected) is refused locally with InvalidInputError (workload_limit): upload the table (for example Client.upload_file) and pass its dataset ID. With client=, pickling drops the client; set estimator.client again after unpickling.

Forecast.backtest#

Submit and wait for an explicit backtest of this fitted context. Optional final_horizon forecasts from its end without entering scores.

python
Forecast.backtest(horizon, *, folds=5, **options)

Returns: Backtest; close owned clients after reading. Borrowed clients stay open.

Errors and limits: Authentication/permission, workload/capability/budget/capacity/credit refusals, version/idempotency conflicts or TransportError. Replay the identical request/key after uncertain submission. Local timeout preserves server work and backtest reconnect ID.

Forecast.fit#

Copy and validate local history (long-format DataFrame with time, optional id, one or more targets and past/future/categorical covariates; one Series/array; or an existing workspace dataset ID, whose rows only the server validates), then resolve the route, workspace/model versions and published limits. Long-format naive timestamps are read as UTC; the univariate form still requires timezone-aware times. No history upload, predictor or training job.

python
Forecast.fit(
    history,
    *,
    time=None,
    target=None,
    id=None,
    past_covariates=(),
    future_covariates=(),
    categorical=(),
    frequency=None,
    start=None,
    frequency_seconds=None,
)

Returns: The same fitted Forecast (self); zero-shot context only.

Errors and limits: ValueError before transport for invalid history/time/frequency/parameters; InvalidInputError (a ValueError; workload_limit) when no published envelope or min_context admits the history, or unsupported_capability when panels, covariates, dataset histories or calendar frequencies meet a server without the forecasting task, or a panel meets a model whose configuration declares supports_panels false (Timestral: one series per request); authentication or metadata errors. Failed refit clears old context.

Forecast.forecast#

Submit one guarded POST /v1/forecasts request for every series and target, wait within timeout and validate the result against the request.

python
Forecast.forecast(
    horizon,
    *,
    future=None,
    quantile_levels=(0.1, 0.5, 0.9),
    cross_learning=False,
    idempotency_key=None,
)

Returns: Immutable ForecastResult. Long-format and dataset fits: task forecasting with series, to_frame() in long format and rearranged_steps. Univariate fits: the 0.13-shaped univariate_forecasting result.

Errors and limits: Invalid horizon/levels/future, published-envelope limits (InvalidInputError workload_limit), unsupported capability on servers without the forecasting task, version conflicts, availability, capacity, execution, JobTimeoutError or InvalidForecastResultError.

Forecast.predict#

Submit one guarded run for a single series and target with copied history (POST /v1/forecasts when the server offers forecasting, otherwise the legacy model run); wait within timeout.

python
Forecast.predict(horizon, future=None, *, idempotency_key=None)

Returns: numpy.ndarray, shape (horizon,), containing native medians.

Errors and limits: Unfitted or changed context/connection, a panel or several targets (use forecast), invalid horizon/levels/future, published-envelope limits (InvalidInputError workload_limit), version conflicts, availability, capacity, execution, JobTimeoutError or InvalidForecastResultError.

Forecast.predict_details#

Submit one guarded run, wait and validate native provenance and exact request expectations.

python
Forecast.predict_details(
    horizon,
    *,
    future=None,
    quantile_levels=(0.1, 0.5, 0.9),
    idempotency_key=None,
)

Returns: Immutable ForecastResult; properties and conversions share this one run. Univariate fits keep the 0.13 to_dict() schema and UTC-indexed to_frame() on either route.

Errors and limits: Unfitted or changed context/connection, a panel or several targets (use forecast), invalid horizon/levels/future, published-envelope limits (InvalidInputError workload_limit), version conflicts, availability, capacity, execution, JobTimeoutError or InvalidForecastResultError.

Forecast.predict_quantiles#

Submit one guarded zero-shot forecast for a single series and target with owned history and native quantile levels; future supplies known future covariates.

python
Forecast.predict_quantiles(
    horizon,
    *,
    future=None,
    quantile_levels=(0.1, 0.5, 0.9),
    idempotency_key=None,
)

Returns: numpy.ndarray, shape (horizon, n_quantiles), in requested level order.

Errors and limits: Unfitted or changed context/connection, a panel or several targets (use forecast), invalid horizon/levels/future, published-envelope limits (InvalidInputError workload_limit), version conflicts, availability, capacity, execution, JobTimeoutError or InvalidForecastResultError.

Forecast.set_params#

Set sklearn constructor parameters; a changed model/configuration requires a new fit.

python
Forecast.set_params(**params)

Returns: The same estimator (self).

Errors and limits: ValueError for an invalid parameter. Does not mutate existing pinned server artifacts.

Forecast.submit_backtest#

Evaluate this fitted copied context with its pinned model/configuration at walk-forward origins. Does not change context or weights.

python
Forecast.submit_backtest(horizon, *, folds=5, **options)

Returns: Backtest. It owns only an estimator-created client; close it or use a context manager.

Errors and limits: Authentication/permission, workload/capability/budget/capacity/credit refusals, version/idempotency conflicts or TransportError. Replay the identical request/key after uncertain submission.

Forecast.submit_forecast#

Submit one guarded forecast without waiting; retain job.id. DataFrame tables travel inline; dataset IDs travel by reference. Replaying the same call with the same idempotency_key sends the same body and reconnects.

python
Forecast.submit_forecast(
    horizon,
    *,
    future=None,
    quantile_levels=(0.1, 0.5, 0.9),
    cross_learning=False,
    idempotency_key=None,
)

Returns: ForecastJob owning its new client, or borrowing Forecast(client=…); close explicitly or use a context manager.

Errors and limits: Same as forecast; InvalidInputError (workload_limit) before any request when the encoded body exceeds MAX_REQUEST_BYTES (the default 10 MiB body limit of the API; a deployment override is not reflected).

Forecast.submit_predict#

Submit one guarded durable forecast without waiting; retain job.id.

python
Forecast.submit_predict(
    horizon,
    *,
    future=None,
    quantile_levels=(0.1, 0.5, 0.9),
    idempotency_key=None,
)

Returns: ForecastJob owning its new client, or borrowing Forecast(client=…); close explicitly or use a context manager.

Errors and limits: Unfitted or changed context/connection, a panel or several targets (use forecast), invalid horizon/levels/future, published-envelope limits (InvalidInputError workload_limit), version conflicts, availability, capacity, execution, JobTimeoutError or InvalidForecastResultError.

ForecastResult#

python
ForecastResult(payload, *, job_id, _mapped=False, _rearranged=0)
Parameter Default Description
payload required A forecasting or univariate_forecasting result payload, validated on construction.
job_id required ID of the run that produced it.

Immutable result with job_id, task, model_id, model_version, configuration, horizon, frequency, cross_learning, columns, quantile_levels, rearranged_steps and series (ForecastSeries with id, target, context_length, timestamps, predictions and quantiles) properties. timestamps, predictions and quantiles are also available directly for a single series and target. Results of univariate fits keep the 0.13 univariate_forecasting to_dict() schema and UTC-indexed to_frame() on either route (frequency_seconds is None for calendar frequencies; rearranged_steps stays on the property). Unknown additional fields in a forecasting result are ignored; documented fields are required. Arrays/dictionaries are owned copies; native medians and quantiles carry no calibrated coverage claim.

ForecastResult.to_dict#

Return an independent JSON-compatible copy of the result.

python
ForecastResult.to_dict()

Returns: Dictionary of the result fields; job_id remains a separate property. Causal and forecasting results keep the native wire fields; a univariate Forecast fit returns the 0.13-shaped univariate_forecasting view on either route, derived from the server result on the forecasting route.

Errors and limits: No remote call; mutations do not affect the immutable result.

ForecastResult.to_frame#

Copy native future UTC rows into a DataFrame; no remote call.

python
ForecastResult.to_frame()

Returns: Forecasting results: long pandas.DataFrame with id, target, timestamp (UTC), median and q_<level> columns, one row per series, target and step. Legacy univariate results: UTC-indexed median and q_<level> columns.

Errors and limits: No result repair beyond the server-reported rearranged_steps, no calibrated coverage or evaluation claim.

ForecastSeries#

python
ForecastSeries(
    *,
    id,
    target,
    context_length,
    quantile_levels,
    timestamps,
    predictions,
    quantiles,
)
Parameter Default Description
id required Series ID rendered as a string; None without an id column.
target required Target column; None for model-run results.
context_length required Observations the model used for this series.
quantile_levels required Quantile levels, in the column order of quantiles.
timestamps required Future UTC timestamps (ISO 8601), one per horizon step.
predictions required Native medians, one per step.
quantiles required Native quantile rows, one per step.

One (series ID, target) forecast of a ForecastResult, from result.series; not built by hand. Properties timestamps (UTC DatetimeIndex), predictions (shape (horizon,)) and quantiles (shape (horizon, n_quantiles)) return owned copies; id, target, context_length and quantile_levels are plain values.

ForecastJob#

python
ForecastJob(job, *, expected=None, owns_client=False)
Parameter Default Description
job required Underlying Job handle.
expected None Request expectations the result must match.
owns_client False True when closing this job should also close its client.

ForecastJob.cancel#

Validate the forecast task/identity before explicitly requesting remote cancellation.

python
ForecastJob.cancel()

Returns: Validated server job metadata (await for AsyncForecastJob).

Errors and limits: Task/version/provenance validation, authentication, permission, NotFoundError or job conflict; cancellation may race completion.

ForecastJob.close#

Close an estimator-submitted job’s owned client. Reconnected handles borrow and leave their client open.

python
ForecastJob.close()

Returns: None; no cancellation or deletion.

Errors and limits: Local cleanup only.

ForecastJob.inspect#

Read the durable job state and server-reported stages.

python
ForecastJob.inspect()

Returns: Job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError, transport or service errors.

ForecastJob.result#

Wait within a local budget, validate durable task/version/result identities and preserve native values.

python
ForecastJob.result(*, timeout=600, poll_interval=0.25)

Returns: ForecastResult (await for AsyncForecastJob). Estimator jobs also validate exact submitted context/horizon/future times/levels; reconnects cannot reconstruct missing original context.

Errors and limits: Typed remote errors, JobTimeoutError retaining job_id, or InvalidForecastResultError. No resubmission, repair or implicit cancellation.

AsyncForecastJob#

python
AsyncForecastJob(job)
Parameter Default Description
job required Underlying AsyncJob handle.

AsyncForecastJob.aclose#

Finish a reconnected async handle; its borrowed AsyncClient remains open.

python
AsyncForecastJob.aclose()

Returns: Awaited None; no cancellation or deletion.

Errors and limits: Local cleanup only.

AsyncForecastJob.cancel#

Validate the forecast task/identity before explicitly requesting remote cancellation.

python
AsyncForecastJob.cancel()

Returns: Validated server job metadata (await for AsyncForecastJob).

Errors and limits: Task/version/provenance validation, authentication, permission, NotFoundError or job conflict; cancellation may race completion.

AsyncForecastJob.inspect#

Read the durable job state and server-reported stages.

python
AsyncForecastJob.inspect()

Returns: Job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError, transport or service errors.

AsyncForecastJob.result#

Wait within a local budget, validate durable task/version/result identities and preserve native values.

python
AsyncForecastJob.result(*, timeout=600, poll_interval=0.25)

Returns: ForecastResult (await for AsyncForecastJob). Estimator jobs also validate exact submitted context/horizon/future times/levels; reconnects cannot reconstruct missing original context.

Errors and limits: Typed remote errors, JobTimeoutError retaining job_id, or InvalidForecastResultError. No resubmission, repair or implicit cancellation.

Evaluation#

python
Evaluation(client, payload)
Parameter Default Description
client required The Client the evaluation borrows for its reads.
payload required Evaluation resource. Usually obtained from evaluate(), submit_evaluation() or evaluation(), not built by hand.

Cross-validated comparison handle; see evaluations. Properties: id, status, stage, finished, task, dataset_id, target, rows, primary_metric, positive_class, classes, models, skipped, estimated_credits, credits (settled, None until then), runtime, comparison, warnings and predictions_expires_at. Values are owned copies. Reads borrow the client.

Evaluation.cancel#

Cancel every unfinished model; reserved credits are released.

python
Evaluation.cancel()

Returns: The same handle with status cancelled, or its final state if already finished.

Errors and limits: NotFoundError; authentication or permission errors; cancellation may race completion.

Evaluation.delete#

Delete a terminal (finished, failed or cancelled) evaluation: results, predictions, report and its links.

python
Evaluation.delete()

Returns: None.

Errors and limits: ConflictError (dependency_conflict) while running; retryable deletion_pending; NotFoundError.

Evaluation.fit#

Submit a new fit of the chosen model (default: the leaderboard's first) on the full stored dataset with the evaluation's seed and the model's current version; warns with EvaluationWarning if that differs from the evaluated version. Not a promotion of a fold context.

python
Evaluation.fit(model_id=None, *, timeout=600, idempotency_key=None)

Returns: Fitted Classifier or Regressor (await for AsyncEvaluation).

Errors and limits: ValueError for an unranked model or an evaluation with split columns; ConflictError before results exist; fit errors and JobTimeoutError.

Evaluation.folds#

Read per-fold metrics for every model and the baseline.

python
Evaluation.folds()

Returns: Long pandas.DataFrame with model_id, fold, rows, metric and value (NaN when undefined).

Errors and limits: ConflictError result_not_ready or result_unavailable; NotFoundError.

Evaluation.predictions#

Read out-of-fold predictions for every evaluated row.

python
Evaluation.predictions()

Returns: pandas.DataFrame with row_index, fold, actual, one column per model and baseline, and <model>:p(<class>) probabilities for classification.

Errors and limits: ResultExpiredError (410) after seven days; ConflictError before results exist.

Evaluation.refresh#

Read the evaluation's current state and per-model progress.

python
Evaluation.refresh()

Returns: The same handle (self), updated (await for AsyncEvaluation).

Errors and limits: NotFoundError after deletion; authentication, permission or transport errors.

Evaluation.report_html#

Read the self-contained HTML report (no script, no external resources); cached once read.

python
Evaluation.report_html()

Returns: HTML document string.

Errors and limits: ConflictError result_not_ready or result_unavailable; NotFoundError.

Create a signed report URL that anyone holding it can open without signing in, for 1–7 days. A key-created link never outlives the key.

python
Evaluation.report_link(days=None)

Returns: ReportLink whose url is returned only now; repr hides it.

Errors and limits: ValueError for days outside 1–7; ConflictError when no report exists; at most 20 live links.

List the evaluation's report links without their URLs.

python
Evaluation.report_links()

Returns: List of ReportLink with url None.

Errors and limits: NotFoundError; authentication or permission errors.

Revoke one report link by ID or ReportLink; it then returns 410.

python
Evaluation.revoke_report_link(link_id)

Returns: None.

Errors and limits: NotFoundError for an unknown link; PermissionDeniedError for a read-only key.

Evaluation.show#

Display the report in Jupyter inside a sandboxed iframe (no script, no network loads, no notebook restyling), or the status of an unfinished evaluation.

python
Evaluation.show()

Returns: None (await for AsyncEvaluation).

Errors and limits: OptionalDependencyError without IPython; report read errors.

Evaluation.summary#

Build the leaderboard locally from the finished evaluation; no request.

python
Evaluation.summary()

Returns: pandas.DataFrame indexed by model_id: ranked models, then the baseline, with name, rank (nullable) and <metric>_mean / <metric>_sd columns.

Errors and limits: ConflictError result_not_ready before it finishes, result_unavailable after failure or cancellation.

Evaluation.to_dict#

Copy the last evaluation resource read from the server.

python
Evaluation.to_dict()

Returns: Independent dictionary with status, provenance (fold_sha256, versions), models, skipped and summary.

Errors and limits: No remote call.

Evaluation.wait#

Poll with backoff until the evaluation finishes; timeout=None waits without a local limit.

python
Evaluation.wait(timeout=600, *, poll_interval=0.25)

Returns: The same finished handle. partially_completed returns with an EvaluationWarning; models[].error explains the rest.

Errors and limits: ExecutionError when no model finished, JobCancelledError after cancellation, JobTimeoutError naming the evaluation. A timeout never cancels.

AsyncEvaluation#

python
AsyncEvaluation(client, payload)
Parameter Default Description
client required The AsyncClient the evaluation borrows for its reads.
payload required Evaluation resource. Usually obtained from the AsyncClient methods, not built by hand.

AsyncEvaluation.cancel#

Cancel every unfinished model; reserved credits are released.

python
AsyncEvaluation.cancel()

Returns: The same handle with status cancelled, or its final state if already finished.

Errors and limits: NotFoundError; authentication or permission errors; cancellation may race completion.

AsyncEvaluation.delete#

Delete a terminal (finished, failed or cancelled) evaluation: results, predictions, report and its links.

python
AsyncEvaluation.delete()

Returns: None.

Errors and limits: ConflictError (dependency_conflict) while running; retryable deletion_pending; NotFoundError.

AsyncEvaluation.fit#

Submit a new fit of the chosen model (default: the leaderboard's first) on the full stored dataset with the evaluation's seed and the model's current version; warns with EvaluationWarning if that differs from the evaluated version. Not a promotion of a fold context.

python
AsyncEvaluation.fit(model_id=None, *, timeout=600, idempotency_key=None)

Returns: Fitted Classifier or Regressor (await for AsyncEvaluation).

Errors and limits: ValueError for an unranked model or an evaluation with split columns; ConflictError before results exist; fit errors and JobTimeoutError.

AsyncEvaluation.folds#

Read per-fold metrics for every model and the baseline.

python
AsyncEvaluation.folds()

Returns: Long pandas.DataFrame with model_id, fold, rows, metric and value (NaN when undefined).

Errors and limits: ConflictError result_not_ready or result_unavailable; NotFoundError.

AsyncEvaluation.predictions#

Read out-of-fold predictions for every evaluated row.

python
AsyncEvaluation.predictions()

Returns: pandas.DataFrame with row_index, fold, actual, one column per model and baseline, and <model>:p(<class>) probabilities for classification.

Errors and limits: ResultExpiredError (410) after seven days; ConflictError before results exist.

AsyncEvaluation.refresh#

Read the evaluation's current state and per-model progress.

python
AsyncEvaluation.refresh()

Returns: The same handle (self), updated (await for AsyncEvaluation).

Errors and limits: NotFoundError after deletion; authentication, permission or transport errors.

AsyncEvaluation.report_html#

Read the self-contained HTML report (no script, no external resources); cached once read.

python
AsyncEvaluation.report_html()

Returns: HTML document string.

Errors and limits: ConflictError result_not_ready or result_unavailable; NotFoundError.

Create a signed report URL that anyone holding it can open without signing in, for 1–7 days. A key-created link never outlives the key.

python
AsyncEvaluation.report_link(days=None)

Returns: ReportLink whose url is returned only now; repr hides it.

Errors and limits: ValueError for days outside 1–7; ConflictError when no report exists; at most 20 live links.

List the evaluation's report links without their URLs.

python
AsyncEvaluation.report_links()

Returns: List of ReportLink with url None.

Errors and limits: NotFoundError; authentication or permission errors.

Revoke one report link by ID or ReportLink; it then returns 410.

python
AsyncEvaluation.revoke_report_link(link_id)

Returns: None.

Errors and limits: NotFoundError for an unknown link; PermissionDeniedError for a read-only key.

AsyncEvaluation.show#

Display the report in Jupyter inside a sandboxed iframe (no script, no network loads, no notebook restyling), or the status of an unfinished evaluation.

python
AsyncEvaluation.show()

Returns: None (await for AsyncEvaluation).

Errors and limits: OptionalDependencyError without IPython; report read errors.

AsyncEvaluation.summary#

Build the leaderboard locally from the finished evaluation; no request.

python
AsyncEvaluation.summary()

Returns: pandas.DataFrame indexed by model_id: ranked models, then the baseline, with name, rank (nullable) and <metric>_mean / <metric>_sd columns.

Errors and limits: ConflictError result_not_ready before it finishes, result_unavailable after failure or cancellation.

AsyncEvaluation.to_dict#

Copy the last evaluation resource read from the server.

python
AsyncEvaluation.to_dict()

Returns: Independent dictionary with status, provenance (fold_sha256, versions), models, skipped and summary.

Errors and limits: No remote call.

AsyncEvaluation.wait#

Poll with backoff until the evaluation finishes; timeout=None waits without a local limit.

python
AsyncEvaluation.wait(timeout=600, *, poll_interval=0.25)

Returns: The same finished handle. partially_completed returns with an EvaluationWarning; models[].error explains the rest.

Errors and limits: ExecutionError when no model finished, JobCancelledError after cancellation, JobTimeoutError naming the evaluation. A timeout never cancels.

python
ReportLink(
    id: str,
    evaluation_id: str,
    url: str | None,
    created_at: str,
    expires_at: str | None,
    revoked: bool,
    created_by: str | None = None,
) -> None
Parameter Default Description
id required Link ID, used to revoke it.
evaluation_id required The evaluation whose report it opens.
url required Signed report URL, returned once at creation; None when listed. Hidden from repr.
created_at required Creation time (ISO 8601).
expires_at required Expiry time (ISO 8601), at most seven days after creation.
revoked required True after revocation.
created_by None Creating credential, when the server reports it.

Backtest#

python
Backtest(client, payload, *, expected_id=None, expected_request=None)
Parameter Default Description
client required Borrowed Client or AsyncClient; estimator-created synchronous handles may own it.
payload required Validated /v1/backtests resource, normally obtained from submission or reconnect.
expected_id None Optional reconnect identity guard; internal callers normally supply it.
expected_request None Optional exact submitted request used to bind initial model/options/version responses.

Backtest.benchmark_predictions#

Read CPU historical or final event rows with original fold/index provenance.

python
Backtest.benchmark_predictions(*, final=False)

Returns: Owned pandas.DataFrame; final=True selects unscored final forecasts. Await for AsyncBacktest.

Errors and limits: Same errors/limits as benchmarks(); point-only models have null quantiles.

Backtest.benchmark_scores#

Read pooled CPU scores for models with every historical unit completed.

python
Backtest.benchmark_scores()

Returns: Owned pandas.DataFrame; await for AsyncBacktest.

Errors and limits: Same errors/limits as benchmarks(); final forecasts are excluded.

Backtest.benchmarks#

Compute or reconnect the optional fast-v1 CPU suite after native jobs finish; one shared 20-second compute deadline.

python
Backtest.benchmarks()

Returns: Validated dictionary with metadata, units, predictions, metrics, complete leaderboard and feature details; await for AsyncBacktest.

Errors and limits: Unsupported suite, busy/not-ready, expiry/auth/transport or invalid_response. Partial CPU results emit BacktestWarning; no native resubmission.

Backtest.cancel#

Cancel unfinished child forecasts and preserve completed outcomes/charges.

python
Backtest.cancel()

Returns: Same handle with current metadata; await for AsyncBacktest.

Errors and limits: Auth/transport/NotFoundError; completion may race cancellation.

Backtest.close#

Close only an estimator-created owned synchronous client; never cancel server work.

python
Backtest.close()

Returns: None.

Errors and limits: Borrowed clients remain open; local cleanup only.

Backtest.delete#

Explicitly delete retained terminal-group plan/inputs/results, preserving datasets and usage.

python
Backtest.delete()

Returns: None; await for AsyncBacktest.

Errors and limits: ConflictError while children run; auth/transport/NotFoundError; repeat deletion is safe.

Backtest.feature_selection#

Inspect direct Elastic Net/Ridge selected features and standardized coefficients by fold, series, target and lead.

python
Backtest.feature_selection()

Returns: Owned pandas.DataFrame; null fold identifies a final fit. Await for AsyncBacktest.

Errors and limits: Same errors/limits as benchmarks(); coefficients are predictive associations, not causal effects.

Backtest.final_predictions#

Read only the separately requested final forecasts, never backtest scores.

python
Backtest.final_predictions()

Returns: Owned long pandas.DataFrame; empty when final_horizon was omitted; await for AsyncBacktest.

Errors and limits: ResultExpiredError, not-ready/auth/transport or invalid_response.

Backtest.metrics#

Read overall, fold, series/target and lead metric detail with eligible counts and undefined reasons.

python
Backtest.metrics()

Returns: Owned pandas.DataFrame; await for AsyncBacktest.

Errors and limits: ResultExpiredError, not-ready/auth/transport or malformed-response error.

Backtest.predictions#

Read historical origin/lead events, including training-only naive references; validate indices, columns and quantiles.

python
Backtest.predictions()

Returns: Owned long pandas.DataFrame; await for AsyncBacktest.

Errors and limits: ResultExpiredError after seven days; not-ready/auth/transport or invalid_response.

Backtest.refresh#

Read current metadata and validate immutable identities/options.

python
Backtest.refresh()

Returns: Same handle, updated; await for AsyncBacktest.

Errors and limits: NotFoundError, auth/transport or invalid_response.

Backtest.report_html#

Read an authenticated self-contained report with no script or external resources; not cached past remote expiry.

python
Backtest.report_html()

Returns: HTML string; await for AsyncBacktest.

Errors and limits: ResultExpiredError, not-ready/auth/transport errors.

Backtest.to_dict#

Copy last-read backtest metadata, versions, split hash, jobs and estimates.

python
Backtest.to_dict()

Returns: Independent dictionary; no remote call.

Errors and limits: No remote call.

Backtest.to_frame#

Build the pooled native leaderboard locally; include_benchmarks=True adds already-fetched complete CPU scores.

python
Backtest.to_frame(*, include_benchmarks=False)

Returns: Owned pandas.DataFrame; no remote call.

Errors and limits: No ranking of incomplete models or final forecasts.

Backtest.wait#

Wait for native jobs and an explicitly requested CPU suite; timeout never cancels or resubmits.

python
Backtest.wait(timeout=600, *, poll_interval=0.25)

Returns: Same handle; partial success emits BacktestWarning.

Errors and limits: JobTimeoutError retains ID and reopen_backtest guidance; failed/cancelled waits raise typed errors.

AsyncBacktest#

python
AsyncBacktest(
    client,
    payload,
    *,
    expected_id=None,
    expected_request=None,
)
Parameter Default Description
client required Borrowed Client or AsyncClient; estimator-created synchronous handles may own it.
payload required Validated /v1/backtests resource, normally obtained from submission or reconnect.
expected_id None Optional reconnect identity guard; internal callers normally supply it.
expected_request None Optional exact submitted request used to bind initial model/options/version responses.

AsyncBacktest.benchmark_predictions#

Read CPU historical or final event rows with original fold/index provenance.

python
AsyncBacktest.benchmark_predictions(*, final=False)

Returns: Owned pandas.DataFrame; final=True selects unscored final forecasts. Await for AsyncBacktest.

Errors and limits: Same errors/limits as benchmarks(); point-only models have null quantiles.

AsyncBacktest.benchmark_scores#

Read pooled CPU scores for models with every historical unit completed.

python
AsyncBacktest.benchmark_scores()

Returns: Owned pandas.DataFrame; await for AsyncBacktest.

Errors and limits: Same errors/limits as benchmarks(); final forecasts are excluded.

AsyncBacktest.benchmarks#

Compute or reconnect the optional fast-v1 CPU suite after native jobs finish; one shared 20-second compute deadline.

python
AsyncBacktest.benchmarks()

Returns: Validated dictionary with metadata, units, predictions, metrics, complete leaderboard and feature details; await for AsyncBacktest.

Errors and limits: Unsupported suite, busy/not-ready, expiry/auth/transport or invalid_response. Partial CPU results emit BacktestWarning; no native resubmission.

AsyncBacktest.cancel#

Cancel unfinished child forecasts and preserve completed outcomes/charges.

python
AsyncBacktest.cancel()

Returns: Same handle with current metadata; await for AsyncBacktest.

Errors and limits: Auth/transport/NotFoundError; completion may race cancellation.

AsyncBacktest.delete#

Explicitly delete retained terminal-group plan/inputs/results, preserving datasets and usage.

python
AsyncBacktest.delete()

Returns: None; await for AsyncBacktest.

Errors and limits: ConflictError while children run; auth/transport/NotFoundError; repeat deletion is safe.

AsyncBacktest.feature_selection#

Inspect direct Elastic Net/Ridge selected features and standardized coefficients by fold, series, target and lead.

python
AsyncBacktest.feature_selection()

Returns: Owned pandas.DataFrame; null fold identifies a final fit. Await for AsyncBacktest.

Errors and limits: Same errors/limits as benchmarks(); coefficients are predictive associations, not causal effects.

AsyncBacktest.final_predictions#

Read only the separately requested final forecasts, never backtest scores.

python
AsyncBacktest.final_predictions()

Returns: Owned long pandas.DataFrame; empty when final_horizon was omitted; await for AsyncBacktest.

Errors and limits: ResultExpiredError, not-ready/auth/transport or invalid_response.

AsyncBacktest.metrics#

Read overall, fold, series/target and lead metric detail with eligible counts and undefined reasons.

python
AsyncBacktest.metrics()

Returns: Owned pandas.DataFrame; await for AsyncBacktest.

Errors and limits: ResultExpiredError, not-ready/auth/transport or malformed-response error.

AsyncBacktest.predictions#

Read historical origin/lead events, including training-only naive references; validate indices, columns and quantiles.

python
AsyncBacktest.predictions()

Returns: Owned long pandas.DataFrame; await for AsyncBacktest.

Errors and limits: ResultExpiredError after seven days; not-ready/auth/transport or invalid_response.

AsyncBacktest.refresh#

Read current metadata and validate immutable identities/options.

python
AsyncBacktest.refresh()

Returns: Same handle, updated; await for AsyncBacktest.

Errors and limits: NotFoundError, auth/transport or invalid_response.

AsyncBacktest.report_html#

Read an authenticated self-contained report with no script or external resources; not cached past remote expiry.

python
AsyncBacktest.report_html()

Returns: HTML string; await for AsyncBacktest.

Errors and limits: ResultExpiredError, not-ready/auth/transport errors.

AsyncBacktest.to_dict#

Copy last-read backtest metadata, versions, split hash, jobs and estimates.

python
AsyncBacktest.to_dict()

Returns: Independent dictionary; no remote call.

Errors and limits: No remote call.

AsyncBacktest.to_frame#

Build the pooled native leaderboard locally; include_benchmarks=True adds already-fetched complete CPU scores.

python
AsyncBacktest.to_frame(*, include_benchmarks=False)

Returns: Owned pandas.DataFrame; no remote call.

Errors and limits: No ranking of incomplete models or final forecasts.

AsyncBacktest.wait#

Wait for native jobs and an explicitly requested CPU suite; timeout never cancels or resubmits.

python
AsyncBacktest.wait(timeout=600, *, poll_interval=0.25)

Returns: Same handle; partial success emits BacktestWarning.

Errors and limits: JobTimeoutError retains ID and reopen_backtest guidance; failed/cancelled waits raise typed errors.

DecisionJob#

python
DecisionJob(client, job_id)
Parameter Default Description
client required The Client that owns the HTTP connection.
job_id required Durable job ID returned at submission.

DecisionJob.cancel#

Explicitly request remote cancellation of this job.

python
DecisionJob.cancel()

Returns: Server job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError or job conflict; cancellation races with completion.

DecisionJob.inspect#

Read the durable job state and server-reported stages.

python
DecisionJob.inspect()

Returns: Job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError, transport or service errors.

DecisionJob.result#

Wait for the durable decision and read its ranked contrasts.

python
DecisionJob.result(*, timeout=600, poll_interval=0.25)

Returns: DecisionResult with population, individual and skipped actions plus provenance.

Errors and limits: Timeout preserves the running job; cancellation, failure, ownership and deletion remain typed errors.

AsyncDecisionJob#

python
AsyncDecisionJob(client, job_id)
Parameter Default Description
client required The AsyncClient that owns the HTTP connection.
job_id required Durable job ID returned at submission.

AsyncDecisionJob.cancel#

Explicitly request remote cancellation of this job.

python
AsyncDecisionJob.cancel()

Returns: Server job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError or job conflict; cancellation races with completion.

AsyncDecisionJob.inspect#

Read the durable job state and server-reported stages.

python
AsyncDecisionJob.inspect()

Returns: Job metadata dictionary (await for AsyncJob).

Errors and limits: Authentication, permissions, NotFoundError, transport or service errors.

AsyncDecisionJob.result#

Wait for the durable decision and read its ranked contrasts.

python
AsyncDecisionJob.result(*, timeout=600, poll_interval=0.25)

Returns: DecisionResult with population, individual and skipped actions plus provenance.

Errors and limits: Timeout preserves the running job; cancellation, failure, ownership and deletion remain typed errors.

DecisionResult#

python
DecisionResult(_data: dict) -> None
Parameter Default Description
_data required Internal payload storage; use DecisionResult.from_dict(payload) to validate and copy a wire result.

DecisionResult.from_dict#

Validate a decision result protocol and ordered finite effects.

python
DecisionResult.from_dict(data)

Returns: DecisionResult containing an independent payload copy.

Errors and limits: ValueError for an unsupported protocol or invalid rankings; no remote call.

DecisionResult.to_dict#

Return an independent JSON-compatible copy of the result.

python
DecisionResult.to_dict()

Returns: Dictionary of the result fields; job_id remains a separate property. Causal and forecasting results keep the native wire fields; a univariate Forecast fit returns the 0.13-shaped univariate_forecasting view on either route, derived from the server result on the forecasting route.

Errors and limits: No remote call; mutations do not affect the immutable result.

Error types#

All remote errors inherit WeltError. Table/schema validation may raise ordinary ValueError before upload. Do not catch every error and silently fit again.

Type Next action
AuthenticationError Configure a missing key locally; replace an invalid, expired or revoked key in Account.
PermissionDeniedError Use a key with the required workspace write/fit/predict permission.
InvalidInputError Check the named schema, explicit target and task limits.
ModelUnavailableError Inspect current task_profiles and worker readiness; no automatic model fallback.
CapacityError / RateLimitError Respect retry_after and workspace admission limits; inspect existing work.
JobTimeoutError / PredictionPendingError Retain job_id and reconnect; local timeout does not cancel.
ExecutionError / JobCancelledError Inspect the durable job and safe request/job IDs; intentional retry needs a new decision.
NotFoundError / ConflictError Check workspace ownership and resource dependencies.
TransportError Inspect existing job state before replaying a mutation; GET retries are bounded.
ResultExpiredError / ResultDeletedError Temporary access expiry and explicit primary deletion are distinct.
InvalidCausalResultError Reject malformed native payload without repair.
UnsupportedGraphConversionError / OptionalDependencyError Preserve native graph; convert declared DAGs only, with welt-client[ergodic] (ergodic>=0.2,<0.3). For load_research_dataset, install welt-client[research].
InvalidForecastResultError Reject malformed, crossed or mismatched native forecast payload without repair.
WeltError (HTTP 402) Inspect status_code and code: insufficient_credits, spend_cap_reached or plan_past_due. Open Workspace Billing to review available credits and pending reservations, the spend cap or unpaid plan. Resolve the cause before intentionally retrying; this is not an automatic backoff or SDK payment operation.
Suggest an edit
Documentation

Search SDK 0.16.5

Search this SDK version by task, method or error.