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
import tangent_works
tw = tangent_works.API(
server = "https://api.tangent.works/",
token = TANGENT_LICENSE_TOKEN
)
tw_forecast = tw.forecast