{"id":26700,"library":"ai4ts","title":"AI4TS","description":"AI4TS (AI for Time Series) is a Python library for time series forecasting, classification, and anomaly detection using deep learning. Current version: 0.0.3, released 2023-11. The library is in early development with frequent releases.","status":"active","version":"0.0.3","language":"python","source_language":"en","source_url":"https://github.com/WenjieDu/AI4TS","tags":["time-series","forecasting","deep-learning","classification","anomaly-detection"],"install":[{"cmd":"pip install ai4ts","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Deep learning backend","package":"torch","optional":false},{"reason":"Data manipulation","package":"numpy","optional":false}],"imports":[{"note":"TSDataset is under datasets submodule","wrong":"from ai4ts import TSDataset","symbol":"TSDataset","correct":"from ai4ts.datasets import TSDataset"},{"note":"Model classes are under models submodule","wrong":"from ai4ts import TimeSeriesForecaster","symbol":"TimeSeriesForecaster","correct":"from ai4ts.models import TimeSeriesForecaster"}],"quickstart":{"code":"from ai4ts.datasets import TSDataset\nfrom ai4ts.models import TimeSeriesForecaster\nimport torch\n\ndataset = TSDataset()\nX, y = dataset.load_data('airline')\nmodel = TimeSeriesForecaster(input_size=1, hidden_size=64, num_layers=2)\nmodel.train(X, y, epochs=10)","lang":"python","description":"Load a sample dataset and train a simple forecaster."},"warnings":[{"fix":"Pin to exact version and monitor GitHub for changes.","message":"The library is in early alpha (v0.0.3). APIs are unstable and may change without notice.","severity":"gotcha","affected_versions":"<=0.0.3"},{"fix":"Refer to the documentation for your installed version; use `pip show ai4ts` to verify.","message":"Some dataset loading functions use a different signature in GitHub examples vs. installed version. Check version compatibility.","severity":"deprecated","affected_versions":"0.0.3"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install ai4ts` in your active Python environment.","cause":"Library not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'ai4ts'"},{"fix":"Use `from ai4ts.datasets import TSDataset`.","cause":"Incorrect import path; TSDataset is under ai4ts.datasets.","error":"ImportError: cannot import name 'TSDataset' from 'ai4ts'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}