Falcon SDK
The official Python SDK for the Falcon-TST forecasting API. Falcon-TST is a family of large-scale time-series foundation models developed by Ant International.
Install
pip install falcon-tst
Usage
import numpy as np
from falcontst import FalconClient
client = FalconClient()
result = client.quantile_predict(
context=np.array([
[1.2, 3.4, 5.6, 7.8, 9.0],
[2.1, 4.3, 6.5, 8.7, 0.9],
]),
prediction_length=3,
model_name="demo_model",
group_ids=np.array([0, 0]),
input_mask=np.array([
[1, 1, 1, 1, 1],
[1, 1, 1, 0, 0],
]),
is_multivariate=False,
)
print(result)
Batch prediction uses the same object fields as quantile_predict, but sends
multiple objects to the batch endpoint:
result = client.batch_predict(
[
{
"context": np.array([[1.2, 3.4, 5.6, 7.8, 9.0]]),
"prediction_length": 3,
"model_name": "demo_model",
"group_ids": np.array([0]),
"input_mask": np.array([[1, 1, 1, 1, 1]]),
"is_multivariate": False,
},
{
"context": np.array([[2.1, 4.3, 6.5, 8.7, 0.9]]),
"prediction_length": 3,
},
]
)
Each context should be a two-dimensional numpy.ndarray. For a single time
series, use np.array([[1.2, 3.4, 5.6]]) instead of np.array([1.2, 3.4, 5.6]).
Release files for falcon-tst 1.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| falcon_tst-1.0.12.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| falcon_tst-1.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / falcon_tst-1.0.12.tar.gz
| Download URL | falcon_tst-1.0.12.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98b1a537074ae3d0b578b36d4570ce03ef5643f5172b7ac78417ecaa5c75e084
|
|
BLAKE2b-256 checksum How to use checksums |
b148f180bc732fbe5c7f1349d22f966d140828e8805708bcbc1e44c3984f60cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / falcon_tst-1.0.12-py3-none-any.whl
| Download URL | falcon_tst-1.0.12-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c5b86f1efe50f79c51484f4b75d7dd3b1bf77b702c6e30692ea3cfdf12e7d59
|
|
BLAKE2b-256 checksum How to use checksums |
605157b398d06b7d474e03463000c1df4252f1cedde417c566ebbceda2f815db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|