Skip to main content
Skip table of contents

tw.forecast

class tw.forecast

High-level controller for the forecast workflow. Wraps the low-level class: `tw.endpoints.forecast` endpoints and handles job submission, polling, and result retrieval in a single blocking call.

Methods

forecast.build_model()

Build a forecast model. Submits a model-building job, polls until it completes, and returns the resulting model together with job metadata.

forecast.predict()

Generate forecasts using a previously built model. Submits a prediction job, polls until it completes, and returns the forecast results together with job metadata.

forecast.rca()

Run root-cause analysis (RCA) on forecast results. Submits an RCA job, polls until it completes, and returns the RCA table together with job metadata.

Example Usage

CODE
import tangent_works

tw = tangent_works.API(
    server = "https://api.tangent.works/",
    token = TANGENT_LICENSE_TOKEN
)

tw_forecast = tw.forecast

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.