forked from tinkoff-ai/etna
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
306 lines (279 loc) · 13.2 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
[tool.poetry]
name = "etna"
version = "2.10.0"
repository = "https://github.com/etna-team/etna"
readme = "README.md"
description = "ETNA is the first python open source framework of T-Bank AI Center. It is designed to make working with time series simple, productive, and fun."
license = "Apache-2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License"
]
packages = [
{ include = "etna", from = "." },
]
authors = [
"Andrey Alekseev <[email protected]>",
"Julia Shenshina <[email protected]>",
"Martin Gabdushev <[email protected]>",
"Albina Munirova <[email protected]>",
"Artem Levashov <[email protected]>",
"Alexey Podkidyshev <[email protected]>",
"Nikita Barinov <[email protected]>",
"Dmitry Bunin <[email protected]>",
"Alexander Chikov <[email protected]>",
"Artem Makhin <[email protected]>"
]
[tool.poetry.dependencies]
python = ">=3.10.0, <3.13.0"
scikit-learn = ">=1.4, <2"
pandas = ">=2.0.0,<2.2.0"
catboost = "^1"
ruptures = "^1.1.5"
numba = ">=0.53.1"
seaborn = ">=0.11.1,<1"
statsmodels = "^0.14"
pmdarima = ">=2.0.4"
dill = "^0.3.4"
toml = "^0.10.2"
loguru = ">=0.7"
hydra-slayer = ">=0.5"
typer = ">=0.12"
omegaconf = "^2.1.1"
holidays = ">=0.40"
boto3 = "^1.5"
botocore = "*"
scipy = ">=1.12,<1.15" # https://github.com/blue-yonder/tsfresh/issues/1098, this currently limits scipy version
Bottleneck = "^1.3.4"
numpy = "<2"
joblib = "*"
plotly = "*"
hydra_slayer = "*"
matplotlib = "*"
typing_extensions = "^4.1.0"
tbats = "^1.1.0"
Deprecated = "1.2.13"
types-Deprecated = "1.2.9"
prophet = {version = "^1.0", optional = true}
torch = {version = "^2", optional = true}
lightning = {version = "*", optional = true}
einops = {version = "*", optional = true}
wandb = {version = ">=0.16", optional = true}
clearml = {version = "^1.15", optional = true}
tensorboard = {version = "^2.12.0", optional = true}
optuna = {version = "^4", optional = true}
statsforecast = {version = "^2", optional = true}
transformers = {version = ">=4.42,<5", optional = true}
accelerate = {version = "^1", optional = true}
huggingface-hub = {version = ">=0.23", optional = true}
jax = {version = ">0.4.28,<1", optional = true}
jaxlib = {version = ">0.4.25,<1", optional = true}
utilsforecast = {version = ">=0.1.10,<1", optional = true}
sphinx-mathjax-offline = {version = "^0.0.2", optional = true}
nbsphinx = {version = "^0.9.0", optional = true}
Sphinx = {version = "^6.2", optional = true}
pydata-sphinx-theme = {version = "^0.13.3", optional = true}
myst-parser = {version = "^1.0", optional = true}
GitPython = {version = "^3.1.20", optional = true}
sphinx-design = {version = "^0.5.0", optional = true}
pytest = {version = "^7.3", optional = true}
pytest-cov = {version = "^4.0", optional = true}
pytest-shard = {version = "^0.1.2", optional = true}
black = {extras = ["jupyter"], version = "^22.3.0", optional = true}
isort = {version = "^5.8.0", optional = true}
flake8 = {version = "^3.9.2", optional = true}
pep8-naming = {version = "^0.12.1", optional = true}
flake8-bugbear = {version = "^22.4.25", optional = true}
flake8-comprehensions = {version = "^3.9.0", optional = true}
flake8-docstrings = {version = "^1.6.0", optional = true}
mypy = {version = ">=0.950,<2", optional = true}
types-PyYAML = {version = "^6.0.0", optional = true}
codespell = {version = "^2.0.0", optional = true}
nbqa = {extras = ["isort"], version = "^1.7.0", optional = true}
click = {version = ">=8.0.1, <8.1", optional = true}
semver = {version = "^2.13.0", optional = true}
ipywidgets = {version = "^7.6.5", optional = true}
jupyter = {version = "*", optional = true}
nbconvert = {version = "*", optional = true}
pyts = {version = "^0.12.0", optional = true}
tsfresh = {version = "~0.20.0", optional = true}
types-setuptools = {version = "^65.7.0", optional = true}
[tool.poetry.extras]
# optional deps
prophet = ["prophet"]
torch = ["torch", "lightning", "einops"]
wandb = ["wandb"]
clearml = ["clearml", "tensorboard"]
auto = ["optuna"]
classification = ["pyts", "tsfresh"]
statsforecast = ["statsforecast"]
chronos = ["torch", "transformers", "accelerate", "huggingface-hub"]
timesfm = ["torch", "jax", "jaxlib", "huggingface-hub", "utilsforecast"]
# dev deps
release = ["click", "semver"]
docs = ["Sphinx", "nbsphinx", "sphinx-mathjax-offline", "myst-parser", "GitPython", "pydata-sphinx-theme", "sphinx-design", "jupyter"]
tests = ["pytest-cov", "pytest", "pytest-shard"]
jupyter = ["jupyter", "nbconvert", "black", "ipywidgets"]
style = ["black", "isort", "flake8", "pep8-naming", "flake8-docstrings", "mypy", "types-PyYAML", "codespell", "flake8-bugbear", "flake8-comprehensions", "types-setuptools", "nbqa"]
all = [
"prophet",
"torch", "lightning", "einops",
"wandb", "clearml", "tensorboard",
"optuna",
"pyts", "tsfresh",
"statsforecast",
"transformers", "accelerate", "huggingface-hub",
"jax", "jaxlib", "utilsforecast"
]
all-dev = [
"prophet",
"torch", "lightning", "einops",
"wandb", "clearml", "tensorboard",
"optuna",
"click", "semver",
"Sphinx", "nbsphinx", "sphinx-mathjax-offline", "myst-parser", "GitPython", "pydata-sphinx-theme", "sphinx-design",
"pytest-cov", "pytest", "pytest-shard",
"black", "isort", "flake8", "pep8-naming", "flake8-docstrings", "mypy", "types-PyYAML", "codespell", "flake8-bugbear", "flake8-comprehensions", "types-setuptools", "nbqa",
"click", "semver",
"jupyter", "nbconvert", "ipywidgets",
"pyts", "tsfresh",
"statsforecast",
"transformers", "accelerate", "huggingface-hub",
"jax", "jaxlib", "utilsforecast"
]
[tool.poetry.scripts]
etna = "etna.commands.__main__:app"
[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| etna/libs
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.pytest.ini_options]
minversion = "6.0"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER"
filterwarnings = [
"error",
"ignore: pkg_resources is deprecated as an API",
"ignore: Deprecated call to `pkg_resources.declare_namespace",
# etna warnings
"ignore: TSDataset freq can't be inferred",
"ignore: You probably set wrong freq. Discovered freq in you data",
"ignore: Some regressors don't have enough values",
"ignore: Segments contains NaNs in the last timestamps",
"ignore: Given top_k=.* is bigger than n_features=.*. Transform will not filter",
"ignore: Given top_k=.* is less than n_segments=.*. Algo will filter data without Gale-Shapley run.",
"ignore: This model doesn't work with exogenous features",
"ignore: Some of external objects in input parameters could be not",
# external warnings
"ignore: Attribute 'logging_metrics' is an instance of `nn.Module` and is already",
"ignore: Attribute 'loss' is an instance of `nn.Module` and is already",
"ignore: Maximum Likelihood optimization failed to converge. Check mle_retvals",
"ignore: Optimization failed to converge. Check mle_retvals",
"ignore: No frequency information was provided, so inferred frequency .* will be used",
"ignore: Non-stationary starting autoregressive parameters found. Using zeros as starting parameters.",
"ignore: You defined a `validation_step` but have no `val_dataloader`. Skipping val",
"ignore: invalid value encountered in double_scalars",
"ignore: invalid value encountered in expm1",
"ignore: Arrays of bytes/strings is being converted to decimal numbers if",
"ignore: The dataloader, train_dataloader, does not have many workers which may",
"ignore: Creating a tensor from a list of numpy.ndarrays",
"ignore: ReduceLROnPlateau conditioned on metric val_loss which is not available but strict",
"ignore: Checkpoint directory .* exists and is not empty",
"ignore: distutils Version classes are deprecated.",
"ignore: invalid escape sequence", # mostly due to LaTeX in docstrings
"ignore:(.|\n)*A value is trying to be set on a copy of a slice from a DataFrame", # SettingWithCopyWarning
"ignore: New behaviour in v1.1.5.* a small bias is added", # ruptures: normal cost
"ignore: Dynamic prediction specified to begin during out-of-sample forecasting period, and so has no effect.",
"ignore: `ModuleAvailableCache` is a special case of `RequirementCache`.", # lightning_utilities
"ignore: `sentry_sdk.Hub` is deprecated and will be removed in a future major release.",
"ignore::DeprecationWarning:holidays",
"ignore:This property will be removed in 2.0.0.", # torchmetrics
"ignore: numpy.ufunc size changed, may indicate binary incompatibility",
"ignore: Jupyter is migrating its paths to use standard platformdirs",
"ignore: Argument `closed` is deprecated in favor of `inclusive`",
"ignore: In a future version, `df.* = newvals` will attempt to set the values inplace instead of always setting a new array",
"ignore: In a future version, DataFrame.*mean.* will return a scalar mean over the entire DataFrame",
"ignore: The behavior of indexing on a MultiIndex with a nested sequence of labels is deprecated and will change in a future version",
"ignore: Non-invertible starting MA parameters found",
"ignore: Optimization did not converge :tbats.error.ModelWarning.ModelWarning",
"ignore: The behavior of Timestamp.utcfromtimestamp is deprecated", # prophet
"ignore: Starting from v1.9.0, `tensorboardX` has been removed as a dependency",
"ignore: the `interpolation=` argument to percentile was renamed to `method=`", # pandas: old version uses deprecated numpy parameter
"ignore: Implicitly cleaning up <TemporaryDirectory",
"ignore: dropout option adds dropout after all but last recurrent layer",
"ignore::matplotlib._api.deprecation.MatplotlibDeprecationWarning:pydev", # Pycharm debugging
"ignore: X does not have valid feature names, but IsolationForest was fitted with feature names", # fixed here https://github.com/scikit-learn/scikit-learn/issues/25844
"ignore: Series.__getitem__ treating keys as positions is deprecated", # pandas deprecated
"ignore: enable_nested_tensor is True, but self.use_nested_tensor is False because encoder_layer.self_attn.batch_first was not True", # torch patchts
"ignore: GPU available but not used", # lightning for mac
"ignore: 'force_all_finite' was renamed to 'ensure_all_finite' in 1.6 and will be removed in 1.8.", # sklearn
"ignore: DataFrame.groupby with axis=1 is deprecated", # pandas
"ignore: Conversion of an array with ndim > 0 to a scalar is deprecated", # numpy in Prophet
"ignore: DataFrame.fillna with 'method' is deprecated and will raise in a future version",
"ignore: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas",
"ignore: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas",
"ignore: The provided callable <.*> is currently using DataFrameGroupBy..*", # pandas deprecated
"ignore: The provided callable <.*> is currently using DataFrame.*",
"ignore: The provided callable <.*> is currently using SeriesGroupBy..*",
"ignore: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated",
"ignore: Non-integer 'periods' in pd.date_range, pd.timedelta_range, pd.period_range, and pd.interval_range",
"ignore: suggest_uniform has been deprecated in v3.0.0. This feature will be removed in v6.0.0", # optuna
"ignore: .* bool will be deprecated in a future version", # matplotlib
"ignore: invalid value encountered in divide",
"ignore: The argument 'infer_datetime_format' is deprecated and will be removed in a future version.", # pandas.pydata
"ignore: Could not infer format, so each element will be parsed individually",
"ignore: datetime.datetime.utcfromtimestamp.* is deprecated and scheduled for removal in a future version", # python 3.12
"ignore: os.fork.* was called", # os.fork() is incompatible with multithreaded code, and JAX is multithreaded, so this will likely lead to a deadlock.
"ignore: The 'train_dataloader' does not have many workers which may be a bottleneck" # lightning
]
markers = [
"smoke"
]
[tool.coverage.report]
exclude_lines = [
'^ +assert_never\(.*?\)$',
]
[tool.mypy]
ignore_missing_imports = true
strict_optional = true
files = "etna/"
exclude = "etna/libs"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"