instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
unionai-oss__pandera__2158
unionai-oss/pandera
2,158
defect
48ba659ee3970a3fb101459419afedfdc0a960f5
c0da8058242b0fb19c2e56f0a450252b8a117c8d
Support Python 3.14
Hi there :) This week, [Python 3.14 was released](https://www.python.org/downloads/release/python-3140/). So we've been trying to check if we can support it already in the packages we maintain. One of these attempts is https://github.com/iiasa/ixmp4/pull/209, which is now running into an error with pandera/pandas....
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index c3102b0c2..f02483687 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "...
2
1
0
[{"id": "G0", "claim": "Under Python 3.14 (PEP 649/749 lazy annotations), an unrelated beartype integration test hits a KeyError 'Hexspeak' at `field = attrs[field_name]` in `BaseModel._collect_fields`, which the PR's `__init_subclass__` fix does not appear to cover.", "category": "correctness", "verdict": "uncertain",...
null
unionai-oss__pandera__2204
unionai-oss/pandera
2,204
defect
82096dd7974de7531532ea7734c70030c27b859b
6adbd7090a26d8fad1a9db7dd1ec2c8d7979257b
feature/1078: Added Support For List, Dict, And Tuples Of Dataframes
Supports nested types, as per the discussion in #1078
diff --git a/pandera/decorators.py b/pandera/decorators.py index ca4c6992d..961ce1e5f 100644 --- a/pandera/decorators.py +++ b/pandera/decorators.py @@ -5,10 +5,13 @@ import sys import types from collections.abc import Callable, Iterable -from typing import ( +from typing import ( # noqa Any, + Dict, + L...
1
1
1
[{"id": "G0", "claim": "The docs should be updated with examples of the new list/dict/tuple-of-DataFrames support, on the decorators.md page.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unionai-oss__pandera__2225
unionai-oss/pandera
2,225
defect
7614754cb29f3495b1c1bc342e79176ebfa815be
cd517393d381d92aec46cb37e11c1d87a36c6732
Replace `pre-commit` with `prek` and fix existing violations
This PR migrates the repository’s Git hook management from `pre-commit` to `prek`. `prek` is fully compatible with the existing `.pre-commit-config.yaml` but offers better speed (uses uv under the hood) and usability. See also: [Why prek?](https://prek.j178.dev/#why-prek)
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a0af06213..a12efe3f9 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -79,18 +79,18 @@ Moreover to add new extra dependencies in `pyproject.toml`, it is necessary to add it to the `dependencies` and `[project.optional-dependencie...
1
1
1
[{"id": "G0", "claim": "The CI workflow's install step still installs pre_commit while the run steps invoke prek, so prek needs to be installed there and pre_commit removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unionai-oss__pandera__240
unionai-oss/pandera
240
defect
c2f9a6250aaba29b5ba0e3a5226c7a4fe4252a64
9f48a60c656b36773500cb4834db499ff67b7965
Additional and optional from_yaml column properties; addresses pandera-dev#239
Modified io.py to allow for more from_yaml Column-specific properties with DataFrameSchemas.
diff --git a/pandera/io.py b/pandera/io.py index 6936eeaa1..934a53033 100644 --- a/pandera/io.py +++ b/pandera/io.py @@ -3,6 +3,7 @@ import yaml from functools import partial from pathlib import Path +from collections import ChainMap import pandas as pd @@ -132,9 +133,17 @@ def _deserialize_component_stats(seri...
2
2
1
[{"id": "G0", "claim": "Replace the repetitive per-key ChainMap conditionals in _deserialize_component_stats with a dict comprehension over the optional keys.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a unit test for the new functionali...
null
unionai-oss__pandera__645
unionai-oss/pandera
645
defect
70d55ee20bc375007dfd4ae2c0fc7823fc6e207f
b4d9002235ada2045d5e746edd806558bb581aba
Reuse coerce in engines.utils
As discussed in #642, this PR let `numpy_pandas_coercible` call the `coerce` method to replicate closely the error that was raised in the first place when coercing the whole series. It's achieved by introducing a `_coerce()` proxy that does not attempt to catch errors, the public `coerce` takes care of catching an...
diff --git a/pandera/engines/numpy_engine.py b/pandera/engines/numpy_engine.py index fa8c0b232..7643e05de 100644 --- a/pandera/engines/numpy_engine.py +++ b/pandera/engines/numpy_engine.py @@ -43,12 +43,16 @@ def __post_init__(self): self, "type", np.dtype(self.type) ) # pragma: no cover + d...
1
1
0
[{"id": "G0", "claim": "The coercion API should be renamed so that `coerce` becomes `try_coerce` (the public method that raises ParserError on failure) and `_coerce` becomes `coerce` (the pure coercion logic exposed as a public method that extended dtypes must implement).", "category": "design", "verdict": "supported",...
null
unionai-oss__pandera__758
unionai-oss/pandera
758
defect
9448d0a80b8dd02910f9cc553ce00349584b107f
57c16fa54298f1dadcfdac96ab34e52fa4bc4b27
Add option to disallow duplicate column names
Closes #707 - I've interpreted this as something to add to the `DataFrameSchema` and then feed through to the `SchemaModel` config, I hope that's right. @cosmicBboy I've attempted this in the spot that seemed logical to me, I'm not sure if that's the "right" spot though. Similarly with tests, I've made a best gue...
diff --git a/pandera/model.py b/pandera/model.py index 138058eb5..d2c16728f 100644 --- a/pandera/model.py +++ b/pandera/model.py @@ -98,6 +98,9 @@ class BaseConfig: # pylint:disable=R0903 #: validate MultiIndex in order multiindex_ordered: bool = True + #: make sure dataframe column names are unique + ...
3
3
2
[{"id": "G0", "claim": "Add a docstring entry for the new allow_duplicate_column_names parameter in the DataFrameSchema __init__ docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the option to an affirmative name consistent with pan...
null
unionai-oss__pandera__772
unionai-oss/pandera
772
defect
e721dfad872780a7d6170ae8e5e126667ddda6fd
0ec4627a7679e69e36c5fde637311f34e25afe9d
implement coercion-on-initialization for DataFrame[SchemaModel] types
The PR: - better naming in `DataFrameBase.__setattr__` method - assign validated data to `self.__dict__` so that coercion occurs after dataframe init - add test case
diff --git a/pandera/typing/common.py b/pandera/typing/common.py index bcb96cf2e..f1dd63741 100644 --- a/pandera/typing/common.py +++ b/pandera/typing/common.py @@ -159,14 +159,13 @@ def __setattr__(self, name: str, value: Any) -> None: # prevent the double validation problem by preventing checks for ...
2
2
0
[{"id": "G0", "claim": "The line `Schema.Config.coerce = False` at the end of test_validate_coerce_on_init looks unneeded since the SchemaNoCoerce subclass is used for the non-coercing case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Questio...
null
unionai-oss__pandera__798
unionai-oss/pandera
798
defect
35c0610ae44a0ab7759fdf292ea0cd6acb205254
71ac1b2e7c921395d7998ce8dcabc74cafb023ef
Support for logical data types
Fixes #788 So far Pandera only support physical data types, i.e. have a 1-1 relationship with pandas/numpy dtypes. Logical data types represent [the abstracted understanding of that data](https://dylan-profiler.github.io/visions/visions/background/data_type_view.html#decoupling-physical-and-logical-types). The u...
diff --git a/pandera/dtypes.py b/pandera/dtypes.py index 0f70f08bc..eb688571f 100644 --- a/pandera/dtypes.py +++ b/pandera/dtypes.py @@ -21,6 +21,8 @@ class DataType(ABC): continuous: Optional[bool] = None """Whether the number data type is continuous.""" + is_logical: bool = False + def __init__(se...
5
3
3
[{"id": "G0", "claim": "Consider a DataType subclass for LogicalDataType with two separate methods (check_dtype for the current check interface, check_value for checking an actual value), which might provide a cleaner interface for the check method.", "category": "design", "verdict": "opposed", "priority": "P2", "scope...
null
unionai-oss__pandera__901
unionai-oss/pandera
901
defect
1958782c6e083f36c8483a09fd9d4e2b050de2ca
7c92917d9984824648361804a36ada20f91af83b
Bugfix/882 coercing twice
This fixes the coercing twice bug described in #882 + shows all errors even if coercion fails. @cosmicBboy About your message here: > In summary, if a column cannot be coerced to the intended type, in this case float, pandera won't apply any of the downstream Checks to that column (which is why the nullability che...
diff --git a/pandera/schema_components.py b/pandera/schema_components.py index 4557da078..9459411ef 100644 --- a/pandera/schema_components.py +++ b/pandera/schema_components.py @@ -202,10 +202,10 @@ def validate_column(check_obj, column_name): ) for column_name in column_keys_to_check: - ...
4
2
2
[{"id": "G0", "claim": "The purpose of adding the {\"check\": \"dtype('float64')\", \"failure_case\": \"object\"} case to the frictionless schema test is unclear and should be explained or justified.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The MI...
null
unionai-oss__pandera__938
unionai-oss/pandera
938
defect
a66d71f8918205403bb10f2289d392e362ba9650
579ec3dd9dbed54d23495700b9b076bc4aa313d0
Fix #937
FIx #937
diff --git a/pandera/schema_components.py b/pandera/schema_components.py index 4557da078..4ce860879 100644 --- a/pandera/schema_components.py +++ b/pandera/schema_components.py @@ -585,7 +585,19 @@ def coerce_dtype(self, obj: pd.MultiIndex) -> pd.MultiIndex: multiindex_cls = ps.MultiIndex return m...
2
1
1
[{"id": "G0", "claim": "Add an early return in the pyspark special case at line 581 so the code does not need to special-case pyspark again below on line 599.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the stricter check type(v).__module__...
null
unionai-oss__pandera__995
unionai-oss/pandera
995
defect
38881b6f0ec6da436a6167413acc6da105bb9aa4
51793188d21611d297fb7aec7da7feb908fbf4c9
Add Union support to `check_types`: Bugfix/977
Fixes #977 This PR adds support for `Union[DataFrame[S1], DataFrame[S2]]` in the `check_types` decorator. This was done by the following additions 1. `annotated_schema_models` was updated to type of `Dict[str, Iterable[Tuple[Union[SchemaModel, None], Union[AnnotationInfo, None]]]]. Specifically this could be a...
diff --git a/pandera/decorators.py b/pandera/decorators.py index 32b92b70e..c0a1f86b8 100644 --- a/pandera/decorators.py +++ b/pandera/decorators.py @@ -9,6 +9,7 @@ Any, Callable, Dict, + Iterable, List, NoReturn, Optional, @@ -24,6 +25,7 @@ from pydantic import validate_arguments f...
1
1
1
[{"id": "G0", "claim": "The pull request needs documentation for Union of DataFrame[SchemaModel] in check_types — a header in the schema_models docs page with a happy-path example, expected failure behavior (one schema fails vs. both fail), and any missed caveats.", "category": "documentation", "verdict": "supported", ...
null
unionlabs__union__4226
unionlabs/union
4,226
defect
5f61568bd25a9779963ed59f20911c9e4593706e
9cb377878d8e9b19736d4a0d2cf128c1b197be30
feat(cosmwasm): ibc-union/zkgm access control
- add rate limit operators on zkgm - add whitelist based relayers on ibc-union
diff --git a/cosmwasm/ibc-union/app/ucs03-zkgm/src/contract.rs b/cosmwasm/ibc-union/app/ucs03-zkgm/src/contract.rs index 85a55bf49fc..90e8d459b8c 100644 --- a/cosmwasm/ibc-union/app/ucs03-zkgm/src/contract.rs +++ b/cosmwasm/ibc-union/app/ucs03-zkgm/src/contract.rs @@ -5,8 +5,8 @@ use alloy::{primitives::U256, sol_types...
3
2
1
[{"id": "G0", "claim": "AddRelayer and RemoveRelayer have their storage operations backwards: adding a relayer deletes the whitelist entry while removing one writes it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Encoding the WhitelistedRelayers ...
null
uniplaces__carbon__24
uniplaces/carbon
24
defect
54b1b3d52e8d36c843b4c6d8a3e2127a094e3cc0
825622f32a039587b61ddcf82b1ce96de98ae610
Changes in "DiffIn..." functions and also testcase fix
DiffInMonth and DiffInYear were returning 1 for different month and years even if the interval was less than 1 hour.
diff --git a/carbon.go b/carbon.go index 1c0ad9f..e66fb40 100644 --- a/carbon.go +++ b/carbon.go @@ -18,6 +18,7 @@ package carbon import ( "errors" "math" + "strings" "time" ) @@ -32,6 +33,8 @@ const ( yearsPerCenturies = 100 yearsPerDecade = 10 weeksPerLongYear = 53 + daysInLeapYear = 366 + days...
3
1
0
[{"id": "G0", "claim": "In DiffInYears and DiffInMonths the fall-through `return absValue(abs, 0)` can simply be `return 0`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DiffInString should diff the dates and then format the result using the c...
null
uniplaces__carbon__78
uniplaces/carbon
78
defect
2bcf7066a98fa41aa6617a8989a94d74fa49066e
d3f77b482a9da307cf79135ed874a69fb8370263
Add Carbon Period functionality
Adds a simple Carbon Period functionality https://carbon.nesbot.com/docs/#api-period that only accepts 1. Start date 2. period in days 3. End date It returns an array of `Carbon`.
diff --git a/carbonPeriod.go b/carbonPeriod.go new file mode 100644 index 0000000..1d8d0c2 --- /dev/null +++ b/carbonPeriod.go @@ -0,0 +1,29 @@ +package carbon + +import "errors" + +// Period returns an array of Carbon dates by accepting start date, number of +// days, and end date. Useful for generating a recurring da...
1
1
1
[{"id": "G0", "claim": "The loop should stop and return when try is equal to the end date (using try.Gte(end.Time)) instead of only when try is after it, so that a date exactly equal to end is not included in the returned period.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
unit8co__darts__1139
unit8co/darts
1,139
defect
5ceac6877cb32642033c6a07d4cfd9ced5ec7aa6
6da635c0e4579d714772a6310b4b1ad827b078b6
Feature/historical retrain on condition
Addresses [#135](https://github.com/unit8co/darts/issues/135) and [#623](https://github.com/unit8co/darts/issues/623) ### Summary Implemented support for new types in `retrain` argument of `historical_forecasts` method. Now it accepts `bool`, (positive) `int` and `Callable` (returning a `bool`) data types. The...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a80e0c4e77..575b657f23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Darts is still in an early development phase and we cannot always guarantee back ## [Unreleased](https://github.com/unit8co/darts/tree/master) [Full Changelog](https://github.com/unit8c...
10
9
2
[{"id": "G0", "claim": "The docstring describes the callable's `pred_time` argument as a `pd.Timestamp` that is the next timestamp to predict (retraining happens before), when it is actually a `pd.Timestamp or int` giving the forecast time (end of the training series), which would mislead users writing retrain callable...
null
unit8co__darts__1191
unit8co/darts
1,191
defect
1c49f86be1ba7628544cd9e651be0e328f73723a
08bb701aa77643adb54105e247befb743234a52c
Feat/improve integer indexes
Solves https://github.com/unit8co/darts/issues/974 and fixes a series of small issues we had with integer-indexed series: * The function `TimeSeries.get_index_at_point()` was not behaving as expected on integer-indexed series with index not starting at 0 * The historical forecasts was having an issue when building ...
diff --git a/darts/models/forecasting/forecasting_model.py b/darts/models/forecasting/forecasting_model.py index 822275fae7..c86b1cecf3 100644 --- a/darts/models/forecasting/forecasting_model.py +++ b/darts/models/forecasting/forecasting_model.py @@ -525,7 +525,7 @@ def historical_forecasts( pd.Ran...
15
14
1
[{"id": "G0", "claim": "historical_forecasts builds the forecast RangeIndex with step=stride, ignoring the step of an input series that already has a RangeIndex with step > 1; it should use series.freq * stride as suggested.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
unit8co__darts__1244
unit8co/darts
1,244
defect
06824b29c094250b55bd121cd44d42dac87f08af
3240558a38f4ef2fd0d6f9c9040124b1a3019288
fix documentation to match pytorch-lightning
<!-- Please mention an issue this pull request addresses. --> the `gpus` arg in PyTorch Lightning has been deprecated in favor of `devices` fixed broken PyTorch Lightning link https://pytorch-lightning.readthedocs.io/en/stable/common/trainer.html#gpus
diff --git a/darts/models/forecasting/block_rnn_model.py b/darts/models/forecasting/block_rnn_model.py index db475e7ad7..d663fc0a4e 100644 --- a/darts/models/forecasting/block_rnn_model.py +++ b/darts/models/forecasting/block_rnn_model.py @@ -222,13 +222,13 @@ def __init__( .. deprecated:: v0.17.0 ...
2
2
1
[{"id": "G0", "claim": "The code that builds the PyTorch Lightning trainer params still adds the deprecated \"gpus\" key; it should check the pytorch-lightning version and add \"gpus\" or \"devices\" accordingly, otherwise the deprecation warning will not disappear.", "category": "correctness", "verdict": "supported", ...
null
unit8co__darts__1265
unit8co/darts
1,265
defect
1e055a3094378a897a0095cf5b943f1f71adcf4f
a6572f6cdef9bf6ab20caf559bdd1278fe6cf949
Fix/ts gaps
Fixes #629, #647 and #1225 ### Summary Took code suggested by @phubermi in #629, corrected it and added the corresponding tests.
diff --git a/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/.ipynb_checkpoints/Untitled-checkpoint.ipynb deleted file mode 100644 index 363fcab7ed..0000000000 --- a/.ipynb_checkpoints/Untitled-checkpoint.ipynb +++ /dev/null @@ -1,6 +0,0 @@ -{ - "cells": [], - "metadata": {}, - "nbformat": 4, - "nbformat_minor": 5 -} di...
4
4
1
[{"id": "G0", "claim": "The integer-index branch of the gap-size computation should keep the division by self._freq, since freq can be greater than 1 (e.g. timestamps 0, 2, 4 with freq=2) and gap_size must count NaN time steps.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
unit8co__darts__1333
unit8co/darts
1,333
defect
eb88e655d750fb3e7938795e455b3a5249e02fbe
f7bd59a4f48725c7af38e322e5c2bf5ee92d047d
backtest can accept a list of callable as metrics functions
Fixes #1330. ### Summary Added the support of a sequence of callable as metric function to be applied to measure the distance between the ground-truth and the prediction during backtesting. The model does not have to be retrained to obtain values for each metric function. ### Other Information - The backtes...
diff --git a/darts/models/forecasting/forecasting_model.py b/darts/models/forecasting/forecasting_model.py index 70319293a2..cc344813b0 100644 --- a/darts/models/forecasting/forecasting_model.py +++ b/darts/models/forecasting/forecasting_model.py @@ -548,7 +548,10 @@ def backtest( retrain: Union[bool, int, Cal...
1
1
0
[{"id": "G0", "claim": "The docstring added for the `reduction` parameter of `backtest` wrongly states that the function receives the argument `axis = 1` when providing several time-series; it should say it receives `axis = 0` when providing several metric functions.", "category": "documentation", "verdict": "supported...
null
unit8co__darts__1343
unit8co/darts
1,343
defect
cab33a1b072ca35ae0a324bf9a1f52d29dbf5c2c
3c5a6ff2df0326843e47fd18d3fe2e0ecfea09a8
Make DatetimeIndex timezone naive for compatibility with xarray/numpy engine
Fixes #1052 and #648. Xarray relies on numpy engine, which is not timezone aware. Causes issues for plotting and resampling. ### Summary When constructing a `TimeSeries` from a `pd.DataFrame` or a `pd.Series` with a `DatetimeIndex` containing timezone information, this attribute is dropped without conversion using ...
diff --git a/darts/tests/test_timeseries.py b/darts/tests/test_timeseries.py index 933d8c84bc..b123a3d889 100644 --- a/darts/tests/test_timeseries.py +++ b/darts/tests/test_timeseries.py @@ -1773,6 +1773,55 @@ def test_time_col_convert_datetime_strings(self): self.assertEqual(ts.time_index.dtype, "datetime64[n...
3
3
1
[{"id": "G0", "claim": "The timezone-naivety check in from_series() is redundant because any issue will be caught later when from_series() calls from_dataframe(), and its type check should have been on pd_series.index rather than pd_series.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
unit8co__darts__1350
unit8co/darts
1,350
defect
1547d5b5c4b03b9fb860ccbb2fff361bf4a635fb
26eb76663903d89acdd7c06a12eefc5bb7c3617e
Fix/nan in resample
Fixes #1237. ### Summary Added kwargs to `TimeSeries.resample` to be able to pass arguments to the `xarray.resample` method and give the possibility to the user to shift the start of the resampling to avoid getting `nan` at the beginning of the resampled `TimeSeries`. ### Other Information Write an example in t...
diff --git a/darts/tests/test_timeseries.py b/darts/tests/test_timeseries.py index 933d8c84bc..1b42bb2aa2 100644 --- a/darts/tests/test_timeseries.py +++ b/darts/tests/test_timeseries.py @@ -839,6 +839,17 @@ def test_resample_timeseries(self): resampled_timeseries.pd_series().at[pd.Timestamp("20130109")], ...
1
1
0
[{"id": "G0", "claim": "The kwargs docstring should reference the xarray resample() documentation as a formatted reST link instead of a bare parenthesised URL.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unit8co__darts__1412
unit8co/darts
1,412
defect
bcf9abf6686bf8872026064cbe883beb6ac8e0ef
d827fa72174c852bd84128d7da951f8fc61e7289
Feat/static covs regression
Fixes #[1021](https://github.com/unit8co/darts/issues/1021). ### Summary - adds static covariates to the features table generated both for fit() and predict(). - It accomodates for the cases where the static covariates have different dimensions between series in a sequence and to the case where the training serie...
diff --git a/darts/models/forecasting/regression_model.py b/darts/models/forecasting/regression_model.py index 1d5a8d7d2e..cae35e0113 100644 --- a/darts/models/forecasting/regression_model.py +++ b/darts/models/forecasting/regression_model.py @@ -325,8 +325,70 @@ def _create_lagged_data( multi_models=self....
3
3
1
[{"id": "G0", "claim": "The 0-padding behaviour for series lacking static covariates should be clearly documented (e.g. in the main RegressionModel docstring), since it can bias results when not all series have static covariates.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
unit8co__darts__1419
unit8co/darts
1,419
defect
d6a74c00128f5897fe0bb068e11b7c4540799d66
0a62b2240934979195536ee5520637910e70a333
Feature: Add support for logistic growth to Prophet
Fixes #628 and #178 ### Summary Adds support for logistic growth to `Prophet` and a corresponding unit-test. This PR adds the function `Prophet.set_capacity` to allow setting `cap` and `floor` parameters needed. `Prophet.set_capacity` takes two arguments (`cap` and `floor`), which may be either numbers or Cal...
diff --git a/darts/models/forecasting/prophet_model.py b/darts/models/forecasting/prophet_model.py index 9fef1e9319..41d4165fc2 100644 --- a/darts/models/forecasting/prophet_model.py +++ b/darts/models/forecasting/prophet_model.py @@ -5,7 +5,7 @@ import logging import re -from typing import List, Optional, Union +f...
3
3
1
[{"id": "G0", "claim": "The `is_logistic` flag could be set with a single boolean expression instead of the two-step if-statement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Receive `cap` and `floor` as (optional) arguments of `__init__` ins...
null
unit8co__darts__1476
unit8co/darts
1,476
defect
7753a6b0acfbcfe8dfd2581ce01a7294bd44fe0b
13260650ec8c79d724171ca7705ecfb40a3df5ce
Improvement/statsforecastets: make sf_ets probabilistic + add future_covariate support for sf_ets + add AutoTheta
This is the first time I make contribution to a library like this, so please forgive me if I forgot to do something obvious! Main changes: - StatsForecastETS is now probabilistic. - StatsForecasETS now uses future_covariates through first performing OLS and then perform ETS on the in-sample residuals. - Moved S...
diff --git a/darts/models/__init__.py b/darts/models/__init__.py index cc982fe94b..855ebe9f27 100644 --- a/darts/models/__init__.py +++ b/darts/models/__init__.py @@ -89,8 +89,10 @@ class NotImportedCatBoostModel: try: from darts.models.forecasting.croston import Croston - from darts.models.forecasting.sf_au...
10
10
5
[{"id": "G0", "claim": "Add StatsForecastAutoTheta to the model imports in darts/models/__init__.py so that all forecasting models are exported there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the AutoCES reference from the sf_models.py ...
null
unit8co__darts__1527
unit8co/darts
1,527
defect
e1c8d34b43f11d51e9b3fa34780ea8394fafb277
3eb1c702e455493222b7ed835ab82f16d2009cde
Feat/timeseries integer index
<!-- Please mention an issue this pull request addresses. --> Addresses #1491 fixes #1226, fixes #1528. ### Summary - adds support for Integer indexed input to `TimeSeries.from_*` factory methods (dataframes/series/xarrays/times_and_values, ...) if the index can be converted to a pandas RangeIndex. We basically ha...
diff --git a/darts/tests/test_timeseries.py b/darts/tests/test_timeseries.py index 57c217d63d..975e4a2368 100644 --- a/darts/tests/test_timeseries.py +++ b/darts/tests/test_timeseries.py @@ -4,6 +4,7 @@ import numpy as np import pandas as pd +import pytest import xarray as xr from scipy.stats import kurtosis, ske...
3
3
1
[{"id": "G0", "claim": "The new comment mentioning an Int64Index (soon to be NumericIndex) should be updated, since the code uses an integer Index and Int64Index is going to be deprecated by pandas soon.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
unit8co__darts__1553
unit8co/darts
1,553
defect
31528a44ead07a686d5c57fb655f2fc2fd80ee27
1fd44fc1a8021e63997b94dd8f25cc6f8f418d4d
fix quantile detector when low/high threshold are the same
Fixes #1551. Fix the issue raised by [philippspengler](https://github.com/philippspengler): Describe the bug The QuantileDetector class raises an error during fitting when the time series has low variation. To Reproduce series = TimeSeries.from_series(pd.Series([96.0, 96.0, 96.0, 96.0, 96.0, 96.0, 96.0, 96.0,...
diff --git a/darts/ad/detectors/threshold_detector.py b/darts/ad/detectors/threshold_detector.py index 3ab77997bf..b924927856 100644 --- a/darts/ad/detectors/threshold_detector.py +++ b/darts/ad/detectors/threshold_detector.py @@ -91,12 +91,12 @@ def _prep_thresholds(q): raise_if_not( all( ...
2
2
1
[{"id": "G0", "claim": "The ThresholdDetector error message should read \"must be lower than or equal to\" instead of the ungrammatical \"must be lower or equal than\", per the reviewer's suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
unit8co__darts__1609
unit8co/darts
1,609
defect
fdc5a31af1e69cec9f1b59b3164f2b49c7108ec9
3c4161e1549079b1db7a0ac179b0c21ed9822c8e
implementing changes for exposing Lightning Tuner's LR finder
Fixes #1503. ### Summary As proposed in the linked issue [here](https://github.com/unit8co/darts/issues/1503), this PR implements a lightweight setting for the `fit()` methods of the `TorchForecastingModel`s to just do a "setup" run, and return gracefully without being interrupted and without running the main tra...
diff --git a/darts/models/forecasting/torch_forecasting_model.py b/darts/models/forecasting/torch_forecasting_model.py index b361d4f998..b87cc03cff 100644 --- a/darts/models/forecasting/torch_forecasting_model.py +++ b/darts/models/forecasting/torch_forecasting_model.py @@ -347,6 +347,8 @@ def __init__( # pl...
4
3
2
[{"id": "G0", "claim": "Add a private method (or methods) that performs the training setup and returns the data loaders, called by both fit_from_dataset and lr_find, so the public fit API is not extended with a setup_only parameter and users do not have to call fit(setup_only=True) before lr_find.", "category": "design...
null
unit8co__darts__1651
unit8co/darts
1,651
defect
95f4d4fe5c75c17835486b8e0b8ffe6479b9eb8d
80d7735aa1e7ddd680e65a46d81d051279e0a87b
Fix/ptl version 200
### Summary fixes the issues with the new PyTorch-Lightning=2.0.0 release: - fixes minor issue when checking for ptl>=1.6.0 - fixes precision issues from their new naming convention (see [here](https://lightning.ai/docs/pytorch/stable/generated/CHANGELOG.html#changed) - fixes a failing probablistic NBEATSModel test...
diff --git a/darts/models/forecasting/pl_forecasting_module.py b/darts/models/forecasting/pl_forecasting_module.py index 0eef89aca4..49b7f7de38 100644 --- a/darts/models/forecasting/pl_forecasting_module.py +++ b/darts/models/forecasting/pl_forecasting_module.py @@ -21,7 +21,7 @@ # Check whether we are running pytor...
1
1
0
[{"id": "G0", "claim": "Remove the debugging print(model_cls) added to test_probabilistic_forecast_accuracy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unit8co__darts__1660
unit8co/darts
1,660
defect
be21ed8d0cce935532cccba1f0172d17a44f057e
23282fdd56ee7b4387f610615f75fbae08112059
[BUG-FIX] RegressionEnsembleModel : Error Furture covariates/Past Covariates…
… FutureCovariates | Suggested With Code Fix [BUG-FIX] RegressionEnsembleModel : Error when trying to predict with FutureCovariates | Suggested With Code Fix #1621 Fixes #. 1. In regression_ensemble_model.py : <Bug> While fitting the model the code did not fit with past/future covariates. 2. <Fix> : Code ha...
diff --git a/darts/models/forecasting/regression_ensemble_model.py b/darts/models/forecasting/regression_ensemble_model.py index 514b56c52f..afb5379476 100644 --- a/darts/models/forecasting/regression_ensemble_model.py +++ b/darts/models/forecasting/regression_ensemble_model.py @@ -149,7 +149,12 @@ def fit( ...
2
2
1
[{"id": "G0", "claim": "The if/elif/else branch added for non-global ensembles can be removed (LocalForecastingModels do not support past covariates, and passing None covariates is harmless) in favour of the reviewer's simpler kwargs-based fit call.", "category": "design", "verdict": "supported", "priority": "P2", "sco...
null
unit8co__darts__1754
unit8co/darts
1,754
defect
83e9171d99681b025cdaa1c0b1d176d2f0a59f1b
1673bb83e2589f16f88f8c5cd75c45a56940bce9
Add support for PathLike objects to model save() and load()
<!-- Please mention an issue this pull request addresses. --> Fixes #1751. ### Summary <!-- Provide a general description of the code changes in your pull request. If your pull request is not ready to merge, please create a draft and ask for comments. --> Added support for `PathLike` objects to the `save()` a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5367893426..a8aee53755 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ## [Unreleased](https://github.com/unit8co/darts/tree/master) [Full Changelog](https://github.com/unit8co...
2
2
1
[{"id": "G0", "claim": "The changelog entry for this PR was added to the release 0.24.0 section instead of a new bullet point in the unreleased section, and the reviewer asks that this be addressed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
unit8co__darts__1829
unit8co/darts
1,829
defect
8e93720e6277726089058cf4d039b97de0f57c34
c3ad7ce3813b6f4dbe016152cbb8e29b3fc6b8d7
Fix #1049 - add prior_scale and mode arguments to prophet model's add_seasonality
<!-- Please mention an issue this pull request addresses. --> Fixes #1049 . ### Summary When fitting a prophet model, the add_seasonality function will now properly add the prior_scale and mode to the custom seasonality, in accordance with the behaviour described in the docs. ### Other Information <!-- If ...
diff --git a/darts/models/forecasting/prophet_model.py b/darts/models/forecasting/prophet_model.py index 60890aacf3..6f26b44547 100644 --- a/darts/models/forecasting/prophet_model.py +++ b/darts/models/forecasting/prophet_model.py @@ -186,6 +186,8 @@ def _fit(self, series: TimeSeries, future_covariates: Optional[TimeSe...
3
3
0
[{"id": "G0", "claim": "The pull request does not fully address the linked issue #1049 because `condition_name` remains unsupported, and the reviewer asks to also cover conditional seasonalities in this PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G2", "cl...
null
unit8co__darts__1969
unit8co/darts
1,969
defect
27278c10ef99b156415e7685066d34e4b7666e9e
4269e58cc8cc0f4ccc5266176873c09af086d155
add rin to all torch models
Fixes #1121 ### Summary - adds `RINorm` to all TorchForecastingModels with model creation parameter `use_reversible_instance_norm` - moves the logic to the PLForecastingModule base level, including a wrapper around the forward method. All models except RNN and Transformer have better performance with RIN. Hav...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c7cdc9db33..d8f0431bea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Improved** - `TimeSeries` with a `RangeIndex` starting in the negative start are now supported by `his...
2
2
2
[{"id": "G0", "claim": "The RINorm article is missing from the references section of the docstrings in this model and pretty much all the other models.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "RINorm may not be suitable for recurrent archite...
null
unit8co__darts__2196
unit8co/darts
2,196
defect
0b4dcf06ee568fd5e8456d30e8a8650958a5b096
e70d237fb839b4a48658409444326f90189a3bdd
Feat/improve timeseries
## Summary Refactor time series constructor and methods for performance boosts - avoids checking whether all time steps available, as freq is already well defined - avoids raise_if_* since they always compute the (formatted) strings - improves slicing with integers - improves slicing with Timestamps - improves `f...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d23107988e..8f2740ffb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For users of the library: **Improved** +- Improvements to `TimeSeries`: [#2196](https://github.co...
8
7
1
[{"id": "G0", "claim": "The new from_group_dataframe tests should be restructured: exception tests and behaviour tests separated, both parametrized with pytest.mark.parametrize, more exception tests added, and the near-duplicate ts_groupsX chunks split into distinct small tests.", "category": "testing", "verdict": "sup...
null
unit8co__darts__2267
unit8co/darts
2,267
defect
b9e6d8b021dfb343fabf38fd1e44735b047ad113
25b2a85f7ca9dacf43260fe6931c8a2f1fc6757a
Add optional inverse transform in historical forecast
Edit: Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2260. ### Summary - `InvertibleDataTransformer` now supports ...
diff --git a/darts/models/forecasting/forecasting_model.py b/darts/models/forecasting/forecasting_model.py index feb609de8c..a4905a8a5b 100644 --- a/darts/models/forecasting/forecasting_model.py +++ b/darts/models/forecasting/forecasting_model.py @@ -21,7 +21,7 @@ import time from abc import ABC, ABCMeta, abstractmet...
6
6
1
[{"id": "G0", "claim": "The empty-list check inside the private _inverse_transform_forecasts_list is unnecessary and should be moved to the caller before the method is invoked.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The early return for a fl...
null
unit8co__darts__2441
unit8co/darts
2,441
defect
54f39f7727011a4d72f525bc838ff8cd9e2405d1
bf495b494b6236dd7b1984424c09834a0d6d8efe
Added the IQR Detector
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Closes #2319. ##...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 23dffe1b4e..d466f12a04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For users of the library: **Improved** +- Added IQRDetector, allowing for detecting anomalies using ...
8
8
3
[{"id": "G0", "claim": "The docstring's extra information about `scale` (single value, length-1 sequences, Infinity) can probably be removed to keep the docstring lean.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `scale` parameter should no...
null
unit8co__darts__2445
unit8co/darts
2,445
defect
54f39f7727011a4d72f525bc838ff8cd9e2405d1
12ed634161ad82312a354d08df75ef3eaf43e236
fix the sample_weights bug
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2439. ### Summary fixes the sample_weights bug by making conditional ...
diff --git a/darts/models/forecasting/regression_model.py b/darts/models/forecasting/regression_model.py index 79227114fe..b44938c9ea 100644 --- a/darts/models/forecasting/regression_model.py +++ b/darts/models/forecasting/regression_model.py @@ -27,6 +27,7 @@ if their static covariates do not have the same size, the ...
4
4
1
[{"id": "G0", "claim": "The fit call should be written only once, collecting sample_weight into a kwargs dict and logging a clearer warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a unit test in darts/tests/models/forecasting/test_re...
null
unit8co__darts__2465
unit8co/darts
2,465
defect
22c617b521ea4f2eeabea2f67f5ecac98feede91
119f0335faa95c77955090f111d9d8ec66b5f538
Fix/RegressionEnsembleModel save and load
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2437. ###...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d5021e30d0..ef34015d95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For users of the library: **Improved** + - Added `IQRDetector`, that allows to detect anomalies u...
6
6
4
[{"id": "G0", "claim": "The checkpoint-save confirmation `print(path_ptl_ckpt + \" is saved!\")` in `save` should be a proper log (or removed) rather than a bare print.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The module-level `from darts....
null
unit8co__darts__2476
unit8co/darts
2,476
defect
a9c180a82e7187fc2f601ca1cef1aae6a9c56003
e4ed442686fc38ce5cbd23ce077794af74c2801c
Allow broadcasting single-sample TimeSeries onto multi-sample TimeSeries
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2475 ### ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d5021e30d0..d60d3d6a97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ## [Unreleased](https://github.com/unit8co/darts/tree/master) +- Added support for broadcasting single-...
6
5
1
[{"id": "G0", "claim": "Allow `other` to broadcast onto (T, C, S) from the shapes (T, C, 1), (T, 1, 1) and (T, 1, S), with `other` required to be three-dimensional.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Check the broadcasting operations against ...
null
unit8co__darts__2512
unit8co/darts
2,512
defect
14eefc5cbd78837d9c808edbd103bf03847141b2
0737e3ef41babcecb1b6154148a24551c9cf9f52
Fix/bug time series.from group dataframe 2491
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2491 ### Summary In the function "from_grou_dataframe()" there was a...
diff --git a/darts/tests/test_timeseries.py b/darts/tests/test_timeseries.py index bd5e1b1562..43cdbfc627 100644 --- a/darts/tests/test_timeseries.py +++ b/darts/tests/test_timeseries.py @@ -165,6 +165,31 @@ def test_integer_range_indexing(self): # getting index for idx should return i s.t., series[i].time == ...
4
3
0
[{"id": "G0", "claim": "Rename the test function from `test_grom_group_dataframe` to `test_from_group_dataframe` (typo in the test's name).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case where the time column contains pd.Timestam...
null
unit8co__darts__2520
unit8co/darts
2,520
defect
14eefc5cbd78837d9c808edbd103bf03847141b2
aa144312149618814f3e49855b409a8945b2e889
Fix/bug 2491 revisited
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [ ] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2512 . ##...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1af0eb8734..884a173cb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Fixed** +- Fixed a bug when using `from_group_dataframe()`, where the resulting time index was not ...
3
3
0
[{"id": "G0", "claim": "The redundant `if not df.index.is_monotonic_increasing:` guard before sorting should be replaced with a plain `else:` branch, as offered in the suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dtype-ha...
null
unit8co__darts__2588
unit8co/darts
2,588
defect
a674ed26401d4bdc83742549cdb4d016ee730f9f
38236dc39665746fb4f257d5906621ba221818fb
Fix/hfc opti reg prob
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2461. ### Summary Thanks to #2534, the reshaping of the features logi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dc9b945be3..aa963e8f53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Fixed** - Fixed a bug when using `darts.utils.data.tabularization.create_lagged_component_names()` w...
1
1
0
[{"id": "G0", "claim": "The added test logic is the same for both parametrized modes, so it can simply be checked for only one of the two.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unit8co__darts__2592
unit8co/darts
2,592
defect
d9095894c895343fd86b54a1c667051671727083
5153fd9899d1f077a836b0ac8f27fe520ec1904b
Feat/slice intersect multi series
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2042. ###...
diff --git a/darts/tests/test_timeseries.py b/darts/tests/test_timeseries.py index 10cd710ba9..daefbfd317 100644 --- a/darts/tests/test_timeseries.py +++ b/darts/tests/test_timeseries.py @@ -10,6 +10,7 @@ from scipy.stats import kurtosis, skew from darts import TimeSeries, concatenate +from darts.timeseries import ...
10
8
0
[{"id": "G0", "claim": "Rename the new module-level `intersect()` function to `slice_intersect` so it carries the same name as the `TimeSeries.slice_intersect` method (as `concatenate` does).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite `TimeSe...
null
unit8co__darts__2611
unit8co/darts
2,611
defect
47dd2fcfe6f7337c8c3a8d7e80b8eed269f85208
627407745533ed00be9573acf984957105c7dd7d
Imp/Add new model StatsForecastAutoTBATS
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2609. ###...
diff --git a/darts/models/__init__.py b/darts/models/__init__.py index 17640b195d..877debc4b0 100644 --- a/darts/models/__init__.py +++ b/darts/models/__init__.py @@ -88,6 +88,7 @@ from darts.models.forecasting.sf_auto_arima import StatsForecastAutoARIMA from darts.models.forecasting.sf_auto_ces import StatsF...
6
6
2
[{"id": "G0", "claim": "In the model docstring the parameter names use_boxcox, use_trend, use_damped_trend and use_arma_errors should be wrapped in backticks so they render as code.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An entry for the n...
null
unit8co__darts__2648
unit8co/darts
2,648
defect
c52ec830eb82d4fd2c1314c1459ceba36a24d15d
bf8150f35939835a71ae5e3e8a52531739498c63
Feat/Add-metric-WMAPE
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2641. ###...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0956a0a4a0..483c9f3735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - New model: `StatsForecastAutoTBATS`. This model offers the [AutoTBATS](https://nixtlaverse.nixtla.io/st...
3
3
0
[{"id": "G0", "claim": "The `wmape` docstring is missing a blank line before the `References` heading.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The CHANGELOG entry should read 'Added new time aggregated metric `wmape()` (Weighted Mean Absolu...
null
unit8co__darts__2659
unit8co/darts
2,659
defect
d6371b5f06a470aa4879f7028d9d21d19bca284c
554deffbe5b7c6623c17ec2abf0720f9e48d67ff
Catboost native multi-output with RMSE
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #1306 ### ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 328386da63..fd70cf3d21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - Added more resampling methods to `TimeSeries.resample()`. This allows to aggregate values when down-sam...
7
7
2
[{"id": "G0", "claim": "Rename `_native_support_multioutput` to `_supports_native_multioutput`, make it a `@property` (updating how it is called downstream), and move it to the bottom of the file where the other private properties live.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
unit8co__darts__2716
unit8co/darts
2,716
defect
fabba0a8af1ca1f4973de76b1c0748c6fb5c1ca2
873a1120dce9bc2e662e3f4056057ca43ac66ef0
feat: adding support for getting estimator based on quantile
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2596. ### Summary - added logic to retrieve estimator based on quanti...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c133fca52f..4df55d062a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - Made method `ForecastingModel.untrained_model()` public. Use this method to get a new (untrained) model...
1
1
1
[{"id": "G0", "claim": "Let `get_estimator` handle all the logic and remove `get_multioutput_estimator` instead of keeping two overlapping public methods.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unit8co__darts__2766
unit8co/darts
2,766
defect
837ebc8335055f8076c8980d5f07be0361dc5372
5f15cbbc6c4e89f14b5fa8f8e33f01c839a03818
Narwhalify_from_group_dataframe
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2730. ###...
diff --git a/darts/tests/test_timeseries_static_covariates.py b/darts/tests/test_timeseries_static_covariates.py index 354c00d7ae..747396fdc8 100644 --- a/darts/tests/test_timeseries_static_covariates.py +++ b/darts/tests/test_timeseries_static_covariates.py @@ -126,10 +126,10 @@ def test_from_group_dataframe(self, ind...
1
1
1
[{"id": "G0", "claim": "Using a `set()` to compute the default `value_cols` might change the order of the columns, which is not desired.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unit8co__darts__2895
unit8co/darts
2,895
defect
8821f5109a59605f25a0a259c3f36ac31d094ac8
f86a676aee6c3f66775526626091353b7457eb12
fix: properly save naive model
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2839. ### Summary This PR fixes the save for naive models. Previously, naive m...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c54caa04a0..845ab281f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Fixed** +- Fixed a bug when saving a naive model directly after fitting it (without performing pred...
4
4
1
[{"id": "G0", "claim": "The CHANGELOG entry should point at the pull request (#2895) directly instead of the issue (#2839), as the project convention.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Testing GlobalNaiveDrift and GlobalNaiveAggregate...
null
unit8co__darts__2898
unit8co/darts
2,898
defect
b870cb61fd695056b00c5fe104a858c820161f30
c194d5d9af5bd6d11218c689d1bd3f2b18f69ba0
Feature/ Skip resampling in TFT to provide speed-up
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2897. ###...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 16822cbbce..30533af569 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Improved** +- Added hyperparameter `skip_resampling` in `TFTModel` to skip resampling operations on...
4
4
1
[{"id": "G0", "claim": "Integrate the new `_ProjectNorm` module into `_ResampleNorm` instead of keeping a dedicated near-identical module, with a parameter controlling which resampling is used, and add documentation explaining why one would choose projection over time-distributed interpolation.", "category": "design", ...
null
unit8co__darts__2903
unit8co/darts
2,903
defect
87bf4cc2a32c87ead0f4bc8f12bdece037a3d1c2
318a55f5ee43e315a4a3647056f5a0fcf5d4b53f
Feat/Add-option-load_best-to-TorchForecastingModel
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2902. ###...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cafd19a94..2aca714d02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - `from_group_dataframe()` now supports creating `TimeSeries` from **additional DataFrame backends** (Pol...
8
8
3
[{"id": "G0", "claim": "The CHANGELOG entry misspells the class name as `TorchForecastinModel`, missing the 'g' in Forecasting.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The main changes inside `def _train` are missing test coverage, and test...
null
unit8co__darts__2904
unit8co/darts
2,904
defect
8821f5109a59605f25a0a259c3f36ac31d094ac8
ddfeb2061aa137663f56d788b80715e844bf1b8c
Feat/exp smoothing add argument
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](https://github.com/unit8co/darts/CHANGELOG.md). Fixes #2891. ***Summary*** This PR adds suppor...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c54caa04a0..14b30a993c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - `from_group_dataframe()` now supports creating `TimeSeries` from **additional DataFrame backends** (Pol...
4
3
0
[{"id": "G0", "claim": "The changelog entry should be slightly reworded and link directly to the pull request instead of the issue.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `error` parameter's default should be `None` to match the defaul...
null
unit8co__darts__2906
unit8co/darts
2,906
defect
193bb3b492e46de60ddd9617f7f8134509623304
7a7ef99365568029586906b00e3a58c4de4adf2f
Devops/slim flavour requirements
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2896 . ### Summary Moved XGBoost and StatsForecast to the `notorch` f...
diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 92355481c4..45d08221bf 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -33,7 +33,7 @@ jobs: matrix: os: [macos-14, ubuntu-latest] python-version: ['3.10'] - flavour: ['all']...
10
10
3
[{"id": "G0", "claim": "The `import prophet` inside the GBM_AVAILABLE try block of darts/tests/conftest.py should be removed because prophet is not a gradient boosting model.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Other test modules that ski...
null
unit8co__darts__2908
unit8co/darts
2,908
defect
cf3a3968839543a708f17555179b7dbd426c059e
c4dd9f47e8c8597ac06733e6145ed26ebc6407c5
Improved parameter validation for `TorchForecastingModel`
Fixes #2843 ### Summary Simple improvement to consider parameters of the full class inheritance of the checked class instead of specific classes for `TorchForecastingModel`
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c2236556c..11513e60fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For developers of the library: + - Reworked the `_validate_model_params` function of `TorchForeca...
4
4
1
[{"id": "G0", "claim": "Add a unit test (using the example from the original issue) covering the reworked inheritance-aware parameter validation and try to improve code coverage with it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add an entry to CHA...
null
unit8co__darts__2984
unit8co/darts
2,984
defect
27b46d21fd8dc3e14876a314974098984e516c54
58621bc3ae569642332234471a04a0945bc81668
Fix/smape
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2983 https:/...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1fb96e3a..21c063ac37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Fixed** +- Updated s(m)ape to not raise a ValueError when actuals and predictions are zero for the ...
3
3
2
[{"id": "G0", "claim": "The smape docstring line added by the PR reads 'operations progress.s' (a stray trailing 's') and should read 'operations progress.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sape docstring still carries a stale '...
null
unit8co__darts__2987
unit8co/darts
2,987
defect
27b46d21fd8dc3e14876a314974098984e516c54
f09033e8ecd928bc47a705d96e350ccf340ff836
Fix/max_samples_per_ts
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2986. ### Summary This PR fixes a bug in `ShiftedTorchTrainingDataset...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1fb96e3a..1b2dfba6cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Fixed** +- Fixed a bug in `TorchTrainingDataset` where `max_samples_per_ts` was not acting as an up...
1
1
0
[{"id": "G0", "claim": "The CHANGELOG entry should reference the pull request number (#2987) instead of the issue number (#2986).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unit8co__darts__2989
unit8co/darts
2,989
defect
27b46d21fd8dc3e14876a314974098984e516c54
e4cf1fbcae8699629cefbe19b4526aaa169aad18
Fix: StaticCovariatesTransformer cols_cat order differing from column order
Checklist before merging this PR: - [X] Mentioned all issues that this PR fixes or addresses. - [X] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2988. ### Summary Fixed a bug in `StaticCovariatesTransformer` where ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1fb96e3a..63abedfab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Fixed** +- Fixed bug in `StaticCovariatesTransformer` where one-hot encoded column names were incor...
3
3
0
[{"id": "G0", "claim": "The numerical columns (cols_num) should be handled the same way as the categorical columns, ideally via a common interface (combining _infer_static_cov_dtypes() and _create_component_masks() into one method) that orders both column lists in input-data order.", "category": "maintainability", "ver...
null
unit8co__darts__2994
unit8co/darts
2,994
defect
27b46d21fd8dc3e14876a314974098984e516c54
59781d866dda88924247b2a6d9ee2ecb1da18997
Feat/autc score metric
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2970 . ##...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1fb96e3a..bc6283e9db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For users of the library: **Improved** - + - Implemented a new metric called `autc` (area under t...
5
5
2
[{"id": "G0", "claim": "The plot_tolerance_curve docstring should drop the \"Examples\" and incomplete \"Raises\" sections and optionally add a References section, to match the other plot_* functions in statistics.py.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
unit8co__darts__2996
unit8co/darts
2,996
defect
892c16d9d3382249672ce2497661f37aab560816
51ea1705189204cc5cde19be2c1bff13db4a6c0a
handle static covariates timeseries
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #2966. ### Summary Added support for automatic serialization and deser...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d86176497e..25fd6b0818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Improved** +- `TimeSeries.to_json()` and `TimeSeries.from_json()` now support serialization and des...
4
4
1
[{"id": "G0", "claim": "The `import json` statements inside `to_json()` and `from_json()` should be global (module-level) imports instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `to_json()` implementation can be a bit less verbose si...
null
unit8co__darts__3000
unit8co/darts
3,000
defect
f4438430ba406c7c1c6f1f39dbfd5e463e2c5c51
0b2f66558ce5fdeca7c59dfb3bd6e01d278ebe6e
Feat/add to group dataframe() function
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2965. ###...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d97cefb5ca..281edbcdfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - Includes automatic downsampling for large series (configurable via `downsample_threshold` parameter)...
6
5
3
[{"id": "G0", "claim": "In the stochastic branch `columns` is a list, so `columns = columns.append(...)` returns None and this will fail; the reviewer asks to remove the line in both the static-covariate and metadata blocks and, if possible, normalize columns to always be a list.", "category": "correctness", "verdict":...
null
unit8co__darts__3023
unit8co/darts
3,023
defect
e6f180d15da6a28c0cc019aa7b3c793e8620ac4f
da73f74d6f2e4db40589f4b7e95f492347833bb3
Feature: Allow specifying a subset of columns to apply the data transformer on
Checklist before merging this PR: - [X] Mentioned all issues that this PR fixes or addresses. - [X] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #3020 ### ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dfdd5158d5..fb3295cd76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co **Improved** + - Added a `columns` parameter to data transformers to allow specifying a subset of col...
10
10
2
[{"id": "G0", "claim": "The `raise_log` calls added by this PR pass a bare string where an `Exception` (e.g. `ValueError`) is expected and omit the module logger; all such call sites should wrap the message in `ValueError` and pass the logger.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop...
null
unit8co__darts__3032
unit8co/darts
3,032
defect
fdce8f2cf1349974ad6c0d81ffc121e72288a75b
7f21c20f0476f3c619d554cc735bafc6e8605d86
[Feature] CatBoost MultiQuantile support
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #2967. ###...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d5a1578195..1e66a72ff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For users of the library: **Improved** +- 🔴 Added native multi-quantile support for `CatBoostMode...
4
3
1
[{"id": "G0", "claim": "The renamed variable 'outputs' in CatBoostModel._format_samples should be reverted because it holds rows in X / samples / features, not model outputs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Either revert the updat...
null
unit8co__darts__3056
unit8co/darts
3,056
defect
5d9404e101876d7dfaecd23c582118dad54b0366
2428bb3fc3fd938e13fbd3cb1987fea91d021ab3
[Feature] XGBoost native multiquantile regression
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). Fixes #3047 ### Summary Analogously to #3032 adds multiquantile regression ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d8291bf29e..65522e9927 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co ### For users of the library: - Added native multi-quantile support for `CatBoostModel` by using CatBo...
6
6
0
[{"id": "G0", "claim": "The MultiQuantile branch in `_set_likelihood` should be written the same way as the Poisson/Quantile branches above, using `elif likelihood == LikelihoodType.MultiQuantile.value:` instead of an isinstance check, and the subclass-ordering comment removed.", "category": "design", "verdict": "suppo...
null
unit8co__darts__3058
unit8co/darts
3,058
defect
5d9404e101876d7dfaecd23c582118dad54b0366
8307c5f950900b174b28174125c0565c36004478
Allow StatsForecastModel to accept model as string or class
## Summary `StatsForecastModel` now accepts `model` as a string name, a class, or an instance. This follows the same pattern already used by `NeuralForecastModel` and makes it much easier to define models via config files or without importing every statsforecast model class. ## Changes Updated `darts/models/forecast...
diff --git a/darts/models/forecasting/sf_model.py b/darts/models/forecasting/sf_model.py index b7dbb6b3a8..531b353227 100644 --- a/darts/models/forecasting/sf_model.py +++ b/darts/models/forecasting/sf_model.py @@ -3,11 +3,13 @@ ------------------ """ +import warnings + import numpy as np from statsforecast.model...
6
6
2
[{"id": "G0", "claim": "The `AutoARIMA` import in the `StatsForecastModel` docstring example is no longer necessary and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example comment should drop the parenthetical clarificati...
null
unit8co__darts__3059
unit8co/darts
3,059
defect
5d9404e101876d7dfaecd23c582118dad54b0366
d1c5fe8336dc52973d82ed30287d69228ef5ea43
Handle zero error scale gracefully in scaled metrics
## Summary Scaled metrics (`ase`, `sse`, `mase`, `msse`, `rmsse`) previously raised a hard `ValueError` when the insample series had zero error scale (i.e., constant or perfectly seasonal signals). This made batch evaluation pipelines brittle — a single problematic series would abort the entire run. There are two dis...
diff --git a/darts/metrics/metrics.py b/darts/metrics/metrics.py index 32d33b6b8f..9d400d67d2 100644 --- a/darts/metrics/metrics.py +++ b/darts/metrics/metrics.py @@ -20,6 +20,7 @@ _confusion_matrix, _get_error_scale, _get_quantile_intervals, + _safe_scaled_divide, _get_tolerance_levels, _ge...
4
4
1
[{"id": "G0", "claim": "The zero-scale warning in _safe_scaled_divide should be emitted via logger.warning(<xyz>) per the library's standard approach, which would also remove the inline warnings import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
unit8co__darts__3084
unit8co/darts
3,084
defect
415edfa7e375f1697d52a82cd7e6ec9c59a1d6f3
b4fc5a463be02742eb00fc68e5a4f9a8acab6568
Feature/add `name` parameter to all metric functions
Checklist before merging this PR: - [x] Mentioned all issues that this PR fixes or addresses. - [x] Summarized the updates of this PR under **Summary**. - [x] Added an entry under **Unreleased** in the [Changelog](../CHANGELOG.md). <!-- Please mention an issue this pull request addresses. --> Fixes #3083 . ##...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8120dc1fe8..1236647d5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,8 @@ but cannot always guarantee backwards compatibility. Changes that may **break co - `"warn"` (default) raises a warning and returns `np.nan` for non-zero forecast errors, and `1.0` othe...
5
5
2
[{"id": "G0", "claim": "The `name` parameter should default to `None` in all metrics instead of a hardcoded metric name, so the progress bar can handle the missing-name logic and explicit vs default names can be distinguished.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
unit8co__darts__743
unit8co/darts
743
defect
ddc84a2621db0e16786b63f23cad897260e514d6
6797647fdcca4b79c039802a0481741f40a8644e
Feat/kalman forecaster
Fixes: #661 #735 * Introduces `KalmanForecaster`, a new forecasting model based on `KalmanFilter` * Improved `KalmanFilter` to handle missing values * Improved `KalmanFilter` to return a series with columns names matching that of the original series * Improved `ForecastingModel`s to return predicted series with ...
diff --git a/darts/models/__init__.py b/darts/models/__init__.py index 75e2c63ae5..3abd5d50d7 100644 --- a/darts/models/__init__.py +++ b/darts/models/__init__.py @@ -14,6 +14,7 @@ from darts.models.forecasting.arima import ARIMA from darts.models.forecasting.fft import FFT from darts.models.forecasting.varima impor...
5
3
2
[{"id": "G0", "claim": "Renaming the columns of the no-copy dataframe obtained with pd_dataframe(copy=False) in fit() may be problematic.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Substituting the previous mean for missing observations during f...
null
unit8co__darts__777
unit8co/darts
777
defect
508d60ae0d801cb2619e1cc1d304d7493c9d8ea6
7b76fc5caf0b847634b1fa7ad0545a77282138cb
Fix/int index warnings
Remove Int64Index support and keep only RangeIndex support. As a consequence, this means that `TimeSeries` cannot have missing dates anymore (which was possible before with Int64Index; RangeIndex do not have holes by construction). I had to adapt * `TimeSeries.from_dataframe()` to handle correctly time columns m...
diff --git a/darts/tests/models/forecasting/test_covariate_index_generators.py b/darts/tests/models/forecasting/test_covariate_index_generators.py index 10e2db1ad6..0e5c6c4c23 100644 --- a/darts/tests/models/forecasting/test_covariate_index_generators.py +++ b/darts/tests/models/forecasting/test_covariate_index_generat...
1
1
0
[{"id": "G0", "claim": "The docstring line added in darts/timeseries.py misspells \"guaranteed\" as \"guaranted\"; the reviewer suggests the corrected spelling.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unit8co__darts__822
unit8co/darts
822
defect
cbe49bf0c0e14e6013b479bea3159180ca470dc9
41bde3d8a08332eb06e3c003f6c408ccf46d2479
return metric score along with untrained best models & params
Fixes #776. ### Summary The gridsearch method also returned the best metric score, aka the minimum error, along with the best model and parameters.
diff --git a/darts/models/forecasting/forecasting_model.py b/darts/models/forecasting/forecasting_model.py index d0346f2034..94129fc061 100644 --- a/darts/models/forecasting/forecasting_model.py +++ b/darts/models/forecasting/forecasting_model.py @@ -569,7 +569,7 @@ def gridsearch( verbose=False, n_jo...
2
1
1
[{"id": "G0", "claim": "Add a short, dedicated unit test in test_backtesting.py that verifies the actual metric score value returned by gridsearch, using a quick model (e.g. Theta), a small series and a small parameter space so it is not long-running.", "category": "testing", "verdict": "supported", "priority": "P1", "...
null
unit8co__darts__845
unit8co/darts
845
defect
0233756543851d73737350b06eb707c5359b8fc3
609d9fc0857d1dd672d605ab12012ae1b578ecb3
Feat/more losses
Add two new PyTorch loss functions (`SmapeLoss` and `MapeLoss`), which can provide different criteria and could for instance be used to replicate some of the M3/M4 competition results.
diff --git a/darts/tests/utils/test_losses.py b/darts/tests/utils/test_losses.py new file mode 100644 index 0000000000..4be7c8fcb6 --- /dev/null +++ b/darts/tests/utils/test_losses.py @@ -0,0 +1,49 @@ +import numpy as np + +from darts.dataprocessing.transformers import Scaler +from darts.datasets import AirPassengersDa...
3
3
2
[{"id": "G0", "claim": "In _divide_no_nan, a -Inf result is not replaced by 0, although the helper is documented to replace Inf results by 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "MapeLoss.forward computes only the mean absolute error, omit...
null
unit8co__darts__853
unit8co/darts
853
defect
0233756543851d73737350b06eb707c5359b8fc3
57809faf80417fb365f7bd0a048646740a27c1fb
Fix/quantile-multiple-ts-prediction
### Summary - Now instances of `RegressionModel` capable of fitting quantiles correctly work with multi TimeSeries input - Registered `RegressionModel` instances capable of fitting quantiles to more tests
diff --git a/darts/models/forecasting/gradient_boosted_model.py b/darts/models/forecasting/gradient_boosted_model.py index 3881c2e549..006880afcd 100644 --- a/darts/models/forecasting/gradient_boosted_model.py +++ b/darts/models/forecasting/gradient_boosted_model.py @@ -91,6 +91,8 @@ def __init__( ) def...
1
1
0
[{"id": "G0", "claim": "The single-series checks in _predict_quantiles and _predict_poisson should test for Sequence rather than list, so other sequence types are handled too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unit8co__darts__968
unit8co/darts
968
defect
155c653a5243af3dd56faad9ffa539bd58c8e050
0446b544215dd9c7c7d305f38c927386e6f4bb7c
Feat/glu variants
<!-- Please mention an issue this pull request addresses. --> Fixes #959 ### Summary Added a components folder to store the feedforward layer and the glu variants. These FFN can be used for any transformer model, i.e., when informer and autoformer are added. ### Other Information Is there any feedback on ...
diff --git a/darts/models/components/__init__.py b/darts/models/components/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/darts/models/components/feed_forward.py b/darts/models/components/feed_forward.py new file mode 100644 index 0000000000..6a7c1a6d7f --- /dev/null +++ b/darts/models/compo...
5
5
1
[{"id": "G0", "claim": "The test_activations tests should fit each model for 1 epoch instead of 2 to keep the test suite fast.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GLU_FFN list should probably be defined in glu_variants directly and import...
null
unit8co__darts__996
unit8co/darts
996
defect
6c90980172f8fa040bcc7305305079d5647c96a0
08d74dd49acbce0b844e921802c4d0eedc0e0a9f
Feat/torchmetrics
<!-- Please mention an issue this pull request addresses. --> Fixes #995. ### Summary Added Torch Metrics to training and validation
diff --git a/darts/models/forecasting/pl_forecasting_module.py b/darts/models/forecasting/pl_forecasting_module.py index 3efb63b8f3..f22b90a09b 100644 --- a/darts/models/forecasting/pl_forecasting_module.py +++ b/darts/models/forecasting/pl_forecasting_module.py @@ -3,11 +3,12 @@ """ from abc import ABC, abstractme...
10
9
3
[{"id": "G0", "claim": "The reviewer asks whether `likelihood.sample(y)` is the correct method for computing metrics under a likelihood, and hrzn notes it makes metrics noisy and asks for a unit test of metrics when the model has a likelihood.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": ...
null
unjs__c12__241
unjs/c12
241
defect
efcfbdd9549dfce6990d659fe0b34df4e6bba135
b83895efcb2639a250e46e52f207058f74d2b001
feat: support `configFileRequired`
<!-- PLEASE DO THIS BEFORE SUBMITTING A PR 1) Make sure there is an issue covering the problem or idea first. If not, please create one. Reference it in the PR via "resolves #12312312" 2) Please keep your changes minimal and split them if you need to. 3) Ensure there is a minimal reproduction attached for bug fi...
diff --git a/README.md b/README.md index 34251e78..2326acb7 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,12 @@ Environment name used for [environment specific configuration](#environment-spec The default is `process.env.NODE_ENV`. You can set `envName` to `false` or an empty string to disable the feature. ...
1
1
1
[{"id": "G0", "claim": "The inspectLoadedConfig callback cannot distinguish a missing config file from an intentionally empty user config (`export default {}`), so an option like `failOnNotFound: true` that throws an error in `loader.ts` is needed.", "category": "design", "verdict": "supported", "priority": "P1", "scop...
null
unjs__c12__256
unjs/c12
256
defect
5e003006a4106ad5d1bb0bcc847b713d6f0edd37
7c214746d4ba9657bcee5a90d49065192b77496c
feat: support scoped env files
Resolves #68 This PR add the possibility to define scoped env files based on the optional property mode. I followed the [same logic Vite is using](https://vite.dev/guide/env-and-mode.html#env-files) to prioritise the env variables. <!-- PLEASE DO THIS BEFORE SUBMITTING A PR 1) Make sure there is an issue co...
diff --git a/README.md b/README.md index e54e60cb..5a1e7a1f 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,18 @@ Load RC config from the workspace directory and the user's home directory. Only Loads `.env` file if enabled. It is disabled by default. +``` +.env always loaded. +.env.local ...
1
1
1
[{"id": "G0", "claim": "Make the scoped env configuration explicit: drop the `mode` option and let `fileName` accept an array of files whose order defines the loading precedence, leaving file naming up to the consumer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unjs__c12__48
unjs/c12
48
defect
4f666301c8a86b2f70af693f5e329c1c711b5b04
5912f97ecc0df60d753eb04a9ec005d9c445bcb9
fix: normalize windows backslash for `configFile` and `source`
fix #47 This fix issue for me on Windows 10, but I can't test it on other platforms
diff --git a/src/loader.ts b/src/loader.ts index c91f9d17..86a54730 100644 --- a/src/loader.ts +++ b/src/loader.ts @@ -218,7 +218,7 @@ async function resolveConfig (source: string, options: LoadConfigOptions): Promi if (isDir) { source = options.configFile; } const res: ResolvedConfig = { config: undefined, cwd }...
1
1
0
[{"id": "G0", "claim": "Check the result of `jiti.resolve()`: it is strange that it does not normalize windows paths given jiti itself uses pathe, so wrapping the call in `resolve()` may not be the right fix.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unjs__hookable__35
unjs/hookable
35
defect
f05c66c9159123d8061eca804058187c604aeacc
3a4bb73eceb23a509f3e23a94b5116a08d5da49d
feat: `callHookParallel` and `callHookWith`
resolves #34
diff --git a/src/hookable.ts b/src/hookable.ts index be935354..e455ec02 100644 --- a/src/hookable.ts +++ b/src/hookable.ts @@ -18,6 +18,7 @@ export class Hookable < // Allow destructuring hook and callHook functions out of instance object this.hook = this.hook.bind(this) this.callHook = this.callHook.bin...
1
1
1
[{"id": "G0", "claim": "Adding a sync variant to the core is an anti-pattern that can break reliability for hook consumers by discarding promises of async hooks; the calling strategy should be configurable instead (e.g. callHookWith(callFn, name, ...args)) so custom checks can access raw returned values without introdu...
null
unjs__jiti__123
unjs/jiti
123
defect
e947becd5b815bfc27d14073a607f2dc72487a6e
e1f2496e34982ce0ee24e9f876120c92d45061c5
fix: workaround for pnpm and `TMPDIR`
Resolves #120 Workaround for pnpm setting an incorrect `TMPDIR`. See https://github.com/pnpm/pnpm/issues/6140 Thinking about it a bit more I worry that introducing this workaround also prevents people from making use of their custom `TMPDIR` - if there is one. I think that more people run `nuxt prepare` using pnp...
diff --git a/src/jiti.ts b/src/jiti.ts index 1d655f70..a24aba63 100644 --- a/src/jiti.ts +++ b/src/jiti.ts @@ -1,7 +1,7 @@ import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs"; import { Module, builtinModules } from "module"; import { performance } from "perf_hooks"; -import { tmpdir, platform } f...
4
3
1
[{"id": "G0", "claim": "The helper should also absorb the join(..., \"node-jiti\") call from jiti.ts and be renamed to getCacheDir.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The workaround drops a legitimate TMPDIR in the common case; it should only...
null
unjs__jiti__128
unjs/jiti
128
defect
671d06904a8198e379bb46b3723282571c672fd1
c3d3a413c10b5a48d05634212361b0014228c2f2
feat: allow resolving `.ts` files with `.js` extension
fix #96
diff --git a/src/jiti.ts b/src/jiti.ts index 5b98d7d3..f7f2b205 100644 --- a/src/jiti.ts +++ b/src/jiti.ts @@ -167,9 +167,6 @@ export default function createJITI( } // Try native require resolve - if ((opts.extensions as string[]).includes(extname(id))) { - return nativeRequire.resolve(id, options);...
2
2
1
[{"id": "G0", "claim": "The js-to-ts extension regex /(c|m)?j(sx?)$/ is too loose and should be made more specific with a dot extension.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A TODO comment should be added noting that the js-extension-to-ts...
null
unjs__jiti__156
unjs/jiti
156
defect
6098284f632d9968f771fd6c84edcdac6fc37d4c
491d2b3256c43281692f6ed387d38f53cadf870b
feat: experimental native bun support
### 🔗 Linked issue resolves #154 ### ❓ Type of change <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a non-breaking change that fixes an issue) - [ ] 👌 ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83292187..1ef13c8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,15 @@ jobs: with: node-version: ${{ matrix.node }} cache: "pnpm" + - uses: oven-sh/setup-bun@v1 + if: ${...
3
1
0
[{"id": "G0", "claim": "The `test:bun` script in package.json should add the `--bun` flag so the tests are guaranteed to run with bun throughout.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Importing .mjs files from TypeScript files reportedly fails,...
null
unjs__jiti__299
unjs/jiti
299
defect
81300ecba62cd8027a74650e8fc10c0a85ac3731
2519ec722793e2a175784e11f18957e75fd21e00
feat: handle `data:` imports (non-native only)
Resolves https://github.com/unjs/jiti/issues/207 Explicitly check for `data:` scheme and use native import to handle it.
diff --git a/src/require.ts b/src/require.ts index 7caf84f2..7f392bf4 100644 --- a/src/require.ts +++ b/src/require.ts @@ -15,11 +15,14 @@ export function jitiRequire( ) { const cache = ctx.parentCache || {}; - // Check for node: and file: protocol + // Check for node:, file:, and data: protocols if (id.star...
1
1
1
[{"id": "G0", "claim": "Sync require of a `data:` URL should not be supported via native require because CJS does not support `data:` URLs (only the async import path is valid).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unjs__jiti__308
unjs/jiti
308
defect
a5cfae93e164c618a7f89208383835792251fcf7
7f3c9e5d04477a3238a080cdb32154f768a7cbf3
feat: support `import.meta.dirname` and `import.meta.filename`
## **This PR**: - [X] Adds support for `import.meta.dirname` and `import.meta.filename`. - [X] Resolves #307. This is just the initial implementation. I would still like to figure out a way to get `import.meta.dirname === __dirname`, though it seems like the issue is coming from `__dirname` and the fact that it ...
diff --git a/src/babel.ts b/src/babel.ts index 182ccb47..a989c9d5 100644 --- a/src/babel.ts +++ b/src/babel.ts @@ -6,15 +6,16 @@ import { transformSync } from "@babel/core"; import proposalDecoratorsPlugin from "@babel/plugin-proposal-decorators"; import syntaxClassPropertiesPlugin from "@babel/plugin-syntax-class-pr...
1
1
0
[{"id": "G0", "claim": "The import.meta.dirname logic is close to the import.meta.url logic, so it would be more performant to merge the two plugins into one and refactor it to use a map to specify the type being spotted.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unjs__jiti__365
unjs/jiti
365
defect
340e2a733c35df66c85667ef254eab672f5de210
87c8d2cf41771696d8468ef6146c0f73fb426478
chore: add defaults in JSDocs
<!-- PLEASE DO THIS BEFORE SUBMITTING A PR 1) Make sure there is an issue covering the problem or idea first. If not, please create one. Reference it in the PR via "resolves #12312312" 2) Please keep your changes minimal and split them if you need to. 3) Ensure there is a minimal reproduction attached for bug fi...
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index a7baf3a4..17940d3f 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -15,9 +15,20 @@ jobs: - uses: actions/checkout@v4 - run: corepack enable - uses: actions/setup-node@v4 + id: s...
2
2
2
[{"id": "G0", "claim": "Revert the changes made to the CI workflow configuration in this pull request, as pi0 will push that work on main instead.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Avoid the unrelated changes to test/fixtures.test.t...
null
unjs__jiti__407
unjs/jiti
407
defect
037c646c80b34eb0044e466f61826375257f7128
3e030a9ea765ebd0a2e9d3c512d46d3320ac5948
build: revert to `terser-webpack-plugin`
<!-- PLEASE DO THIS BEFORE SUBMITTING A PR 1) Make sure there is an issue covering the problem or idea first. If not, please create one. Reference it in the PR via "resolves #12312312" 2) Please keep your changes minimal and split them if you need to. 3) Ensure there is a minimal reproduction attached for bug fi...
diff --git a/package.json b/package.json index 62be8d6f..b72fa398 100644 --- a/package.json +++ b/package.json @@ -120,6 +120,7 @@ "reflect-metadata": "^0.2.2", "solid-js": "^1.9.9", "std-env": "^3.9.0", + "terser-webpack-plugin": "^5.3.14", "tinyexec": "^1.0.1", "ts-loader": "^9.5.4", ...
1
1
0
[{"id": "G0", "claim": "Add a TODO comment marking that TerserPlugin should be migrated to rspack.SwcJsMinimizerRspackPlugin, with a link to this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unjs__jiti__427
unjs/jiti
427
defect
ddb4683d374ec18e396ab42f180ca21c7147b17b
fb58374106436bf74f29695786720779ccfe668c
feat: support opt-in `tsconfigPaths`
**Resolves TypeScript `compilerOptions.paths` aliases at runtime, matching tsc behavior.** Resolves #373 ## Usage ```ts const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); ``` - `true` - auto-discover `tsconfig.json` by walking up from the jiti instance's parent path - `string` - explicit...
diff --git a/README.md b/README.md index 2c957a9f..09dcd7bb 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,18 @@ You can also pass an object to the environment variable for inline config. Examp Custom alias map used to resolve IDs. +### `tsconfigPaths` + +- Type: Boolean | String +- Default: `false` +- Envi...
3
1
1
[{"id": "G0", "claim": "The option should be named `tsconfigPath` (singular) rather than `tsconfigPaths` (plural).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`get-tsconfig` should be moved from devDependencies to runtime dependencies because it is requ...
null
unjs__jiti__52
unjs/jiti
52
defect
56c04cbc06ac05b879dde1390e300614d714c745
e16559a5af29b6800fee35cf63b1fedf140b0783
fix: support resolving with import condition
We had the problem in Nuxt development that `jiti` failed to resolve `estree-walker`, which is due to it only having `exports` field without `main` (https://unpkg.com/browse/estree-walker@3.0.1/package.json). Since we also transpile node modules, making the resolving aware of `exports` by `esm-resolve` package is ab...
diff --git a/package.json b/package.json index 02200326..bc0979e2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "build": "yarn clean && cross-env NODE_ENV=production yarn webpack", "clean": "rm -rf dist", "dev": "yarn clean && yarn webpack --watch", - "jiti": "cross-env JITI_DEBUG=1 ....
3
3
1
[{"id": "G0", "claim": "Use mlly's `resolvePathSync` for resolution instead of the `esm-resolve` package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The resolver's condition set should include `require` first, with a `try/catch` fallback that resolve...
null
unjs__magic-regexp__33
unjs/magic-regexp
33
defect
6131ac605d4af213477500dc79f794f10f8687f6
80888a6544e98e8034d8ab31e1cef04fee64f8c9
feat: update `IfSingle` and `wrap` to not wrap wrapped input
`IfSingle` type and `wrap` helper function still wrap input which is already wrapped with `( )` ```ts oneOrMore(exactly('a').as('groupName')) // ((?<groupName>a))+ ``` and rename `IfSingle` type to `Wrap`
diff --git a/src/core/inputs.ts b/src/core/inputs.ts index ec2d8a9b..3d5b2194 100644 --- a/src/core/inputs.ts +++ b/src/core/inputs.ts @@ -2,7 +2,7 @@ import { createInput, Input } from './internal' import type { GetValue, EscapeChar } from './types/escape' import type { Join } from './types/join' import type { MapT...
3
3
0
[{"id": "G0", "claim": "The two conditions in `wrap`'s return could be simplified or combined into one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wrap test could use the simpler regexp `/^(\\(.*\\)|\\\\?.)$/` instead of the lookbehind-h...
null
unjs__magic-regexp__77
unjs/magic-regexp
77
defect
4249f8d4faf9cd78e60ec9ef9c23c6ff3801c6fc
75120c4050745ad3c94e8a4aeb7bb22120170bc4
feat: implement `letter.lowercase` and `letter.uppercase`
Pretty trivial implementation! However, something is wonky in the changes to the typings tests I introduced in c2200a478fbceb25fcd88f274e064ab7068c9acb... The tests were broken by introducing `lowercase` and `uppercase` properties to `letter`, and when I tried reproducing a minimal example of it on typescriptlang.o...
diff --git a/docs/content/2.getting-started/2.usage.md b/docs/content/2.getting-started/2.usage.md index 12275f6f..a85f91c3 100644 --- a/docs/content/2.getting-started/2.usage.md +++ b/docs/content/2.getting-started/2.usage.md @@ -39,8 +39,8 @@ There are a range of helpers that can be used to activate pattern matching,...
2
2
1
[{"id": "G0", "claim": "The type generation for the new inputs is broken at the moment, and the API might be reconsidered as three parallel inputs (letter.any, letter.lowercase, letter.uppercase).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the...
null
unjs__unbuild__214
unjs/unbuild
214
defect
19eb751d2696dc80c11b9aa7c5fd0b24985e93a5
adec05b9cf1b9c8bf4f163089cb80eef1f56f178
fix: respect directory separator when matching entries
fix #213
diff --git a/src/auto.ts b/src/auto.ts index c97b6279..9a14c92a 100644 --- a/src/auto.ts +++ b/src/auto.ts @@ -125,9 +125,9 @@ export function inferEntries( if (source) { return source; } - const SOURCE_RE = new RegExp(`${d}${isDir ? "" : "\\.\\w+"}$`); + const SOURCE_RE = new RegExp(`/...
2
2
1
[{"id": "G0", "claim": "SOURCE_RE should also match entry files not prefixed with a directory separator (at root level), e.g. via the suggested (?<=/|$) lookbehind instead of the S1 capture-group regex that requires a `/` before the entry.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
unjs__unbuild__33
unjs/unbuild
33
defect
03d705617177ef0efbab0f0b6a5c6b7bb3f062b5
282f10abbba56534a462f2bc3ebb291a904d98b7
feat: validate build outputs against `package.json`
resolves #6 **Possible future steps:** - [ ] ensure that at least one file is present in `package.json` - [ ] ensure that types are mentioned in `package.json` if `declaration: true` - [ ] validate `exports` _schema_ - e.g. https://github.com/unjs/defu/commit/f9296a5f6618c8f3f2131b35d9ae8a14d723565a
diff --git a/src/build.ts b/src/build.ts index 1f61b436..21c49382 100644 --- a/src/build.ts +++ b/src/build.ts @@ -9,7 +9,7 @@ import prettyBytes from 'pretty-bytes' import mkdirp from 'mkdirp' import { dumpObject, rmdir, tryRequire, resolvePreset } from './utils' import type { BuildContext, BuildConfig, BuildOption...
3
3
0
[{"id": "G0", "claim": "The extractExportFilenames helper should be moved to utils as it is becoming a shared util.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The warning should read 'Potential missing package.json files' instead of 'Potenti...
null
unjs__unbuild__389
unjs/unbuild
389
defect
3b5ec7e3ba830b392af7fb116ff79f4c1709009b
51aa2dbc87e8316e764f4250732858bf52ed1697
feat: support `copy` builder
<!--- ☝️ PR title should follow conventional commits (https://conventionalcommits.org) --> ### 🔗 Linked issue - Resolves: https://github.com/unjs/unbuild/issues/266 ### ❓ Type of change <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [ ] 📖 Documenta...
diff --git a/package.json b/package.json index 7a07c001..bdb2769d 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "consola": "^3.2.3", "defu": "^6.1.4", "esbuild": "^0.20.2", + "fs-extra": "^11.2.0", "globby": "^14.0.1", "hookable": "^5.5.3", "jiti": "^1.21.0", @@ -56,6 +...
2
2
1
[{"id": "G0", "claim": "The copy builder should use Node's native fs.copyFile instead of fs-extra's copy, and also opt into fs.cp when available for better performance.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If an entry's outDir has no subdir, st...
null
unjs__unplugin__145
unjs/unplugin
145
defect
a0bc6c3747321b2766e796c6ea793593485657d2
5c2662f316dbafaa27afb21948dd7bce336054ac
fix: ensure consistent `id`s across hooks and bundlers
This PR fixes a behavior where the passed `id` args aren't the same across bundlers and hook calls. It also adds tests to ensure this behavior. In detail: - Don't run the `resolveId` hook in esbuild when the module is marked as external. (mirrors rollup's behavior) - Run `load` for all loaded modules in webpack. I...
diff --git a/src/esbuild/index.ts b/src/esbuild/index.ts index ccd773b7..7dbba7a5 100644 --- a/src/esbuild/index.ts +++ b/src/esbuild/index.ts @@ -94,6 +94,12 @@ export function getEsbuildPlugin <UserOptions = {}> ( if (plugin.resolveId) { onResolve({ filter: onResolveFilter }, async (args) =>...
3
2
2
[{"id": "G0", "claim": "The webpack load-hook rule's `include` returning `true` for every module applies the hooks to every module, and the reviewer asks whether an internal map (e.g. for the encodedId) can be used so the hooks do not apply to every module.", "category": "performance", "verdict": "opposed", "priority":...
null
unjs__unplugin__176
unjs/unplugin
176
defect
4c0828d24e6fffa3f3d956c08dc8496e982a2739
cb924c1a634d14f572e28365c2223ac368c779df
feat: support nested plugins
closes #173
diff --git a/package.json b/package.json index 01686dee..d9b9f228 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "test:build": "jiti scripts/buildFixtures.ts" }, "dependencies": { + "@antfu/utils": "^0.5.2", "acorn": "^8.8.0", "chokidar": "^3.5.3", "webpack-sources": "^3.2.3...
2
2
1
[{"id": "G0", "claim": "Since the PR only needs `toArray` from @antfu/utils, it should inline that helper instead of importing it from the package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add more tests exercising nested plugins, doc...
null
unjs__unplugin__179
unjs/unplugin
179
defect
ab8fe749ce4a78f9a6366e1fff4e930609015bd7
75cdc114ca6f7a6e783bdba223e027e44556b849
feat: add `writeBundle` hook
This PR adds the most basic form of the `writeBundle` hook. The reason for having it even in that form is that the `buildEnd` hook is called before any files have been written to disk and the added `writeBundle` hook could be used to have plugin code run after bundles have been written. Also adds some tests to ve...
diff --git a/README.md b/README.md index 167fa7cf..50630645 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Currently supports: | [`transform`](https://rollupjs.org/guide/en/#transformers) | ✅ | ✅ | ✅ | ✅ | ✅ <sup>3</sup> | | [`watchChange`](https://rollupjs.org/guide/en/#watchchange) | ✅ | ✅ | ✅ | ✅ | ✅ | ...
1
1
0
[{"id": "G0", "claim": "The README should have a note saying that the writeBundle hook does not pass any arguments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unjs__unplugin__345
unjs/unplugin
345
defect
39c0b22a30bdd7112962e377c39d2a24dcbc5847
184ca8c0d0560813cb957cea782210143eec88a3
feat: esbuild support for addWatchFile and getWatchFiles
<!--- ☝️ PR title should follow conventional commits (https://conventionalcommits.org) --> ### 🔗 Linked issue #53 (for esbuild) ### ❓ Type of change <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [x] 📖 Documentation (updates to the documentation, r...
diff --git a/README.md b/README.md index 5c2f8cc4..87726b81 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,14 @@ Currently supports: | Hook | Rollup | Vite | Webpack 4 | Webpack 5 | esbuild | Rspack | | ---------------------------------------...
3
3
2
[{"id": "G0", "claim": "The no-op addWatchFile outside supported hooks should warn users and the limitation should be documented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unrelated README formatting changes made by the pull request should ...
null
unjs__unplugin__354
unjs/unplugin
354
defect
1e712c79b04421f774abf3c94325efeb1f524578
de77c9d54512d6478d47990c7769157da24056ed
fix: not include everything for rspack
Now we're constrained to loading only those that come from unplugin
diff --git a/package.json b/package.json index 098934169..b60f17a86 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "@ampproject/remapping": "^2.2.1", "@antfu/eslint-config": "^1.0.0-beta.29", "@antfu/ni": "^0.21.8", - "@rspack/cli": "^0.3.8", - "@rspack/core": "^0.3.8", + "@rspac...
1
1
1
[{"id": "G0", "claim": "Update the pinned rspack canary devDependencies (@rspack/cli and @rspack/core) to the now-released 0.4.1.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unjs__unplugin__388
unjs/unplugin
388
defect
e3da9f8d9b6c82b7e51f611e3a67bd3646920303
9781764c3777b1c1daa119119fe75a859d4077a9
feat: support resolveId for rspack
<!-- PLEASE DO THIS BEFORE SUBMITTING A PR 1) Make sure there is an issue covering the problem or idea first. If not, please create one. Reference it in the PR via "resolves #12312312" 2) Please keep your changes minimal and split them if you need to. 3) Ensure there is a minimal reproduction attached for bug fi...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2be6cf08..28d8c921c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,4 +64,3 @@ jobs: if: ${{ matrix.node == 16 }} env: IS_WEBPACK_4: 'true' - SKIP_RSPACK: 'true' diff --git a/docs/gu...
3
2
1
[{"id": "G0", "claim": "The pull request's CI is failing, and the maintainer asks what is causing it.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "src/rspack/utils.ts should import ResolvedUnpluginOptions from '../src/types' instead of the non-rel...
null
unjs__unplugin__492
unjs/unplugin
492
defect
1abcd47b10921ac8ef88fe863401d6772587ac45
e2a9b7933b4c1f8fa05cc3704bda73c799b00af9
test: add test for esbuild/utils.ts
<!-- PLEASE DO THIS BEFORE SUBMITTING A PR 1) Make sure there is an issue covering the problem or idea first. If not, please create one. Reference it in the PR via "resolves #12312312" 2) Please keep your changes minimal and split them if you need to. 3) Ensure there is a minimal reproduction attached for bug fi...
diff --git a/test/unit-tests/esbuild/utils.test.ts b/test/unit-tests/esbuild/utils.test.ts new file mode 100644 index 00000000..97cdd708 --- /dev/null +++ b/test/unit-tests/esbuild/utils.test.ts @@ -0,0 +1,216 @@ +import { Buffer } from 'node:buffer' +import { describe, expect, it, vi } from 'vitest' +import { + combi...
2
1
0
[{"id": "G0", "claim": "There is an extra space in the test description 'when loader is Loader, should return expected' that should be removed for consistency.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using async on the describe block for createBui...
null
unlock-protocol__unlock__14822
unlock-protocol/unlock
14,822
defect
3a59258aec2fc14b1149875011fec80517228fa8
f901e6d4c3bfe0b8f14be0ff7c05c5ab4c8c22fe
Privy
# Description A couple of months ago, we introduced Unlock Accounts 2.0 to improve our existing Unlock Accounts. At the time, the main goal was to add support for Google and Email magic links to existing passwords. For this we use Coinbase's wallet as a service... but they are deprecating this so we need to replace ...
diff --git a/docs/docs/governance/unlock-dao/unlock-dao.md b/docs/docs/governance/unlock-dao/unlock-dao.md index 80bd056f2a0..270da89e7de 100644 --- a/docs/docs/governance/unlock-dao/unlock-dao.md +++ b/docs/docs/governance/unlock-dao/unlock-dao.md @@ -8,8 +8,8 @@ sidebar_position: 1 Collectively, [Unlock Protocol G...
4
3
0
[{"id": "G0", "claim": "Changing the sign-out label to 'Sign out now' in Disconnect.tsx is not needed and should be reverted.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G8", "claim": "A lot of the code in useProvider.ts needs/can be removed.", "category": "maintain...
null
unlock-protocol__unlock__14833
unlock-protocol/unlock
14,833
defect
2fe7027e928379a0fc99390a35529dfa4648f673
e3705e27ce4eb182722dd523d641555870815020
feature(locksmith): Update access control for `checkoutConfigs`
# Description This PR introduces changes to transition the access control mechanism for checkout configurations from relying on the `createdBy` field to using **lock managers**. Previously, a user could only list, or edit a checkout config if they were its creator. With this update, **lock managers** are now grante...
diff --git a/locksmith/src/controllers/v2/checkoutController.ts b/locksmith/src/controllers/v2/checkoutController.ts index 8cacd37c542..ce5ae0c4e4e 100644 --- a/locksmith/src/controllers/v2/checkoutController.ts +++ b/locksmith/src/controllers/v2/checkoutController.ts @@ -1,94 +1,136 @@ import { RequestHandler } from ...
11
11
5
[{"id": "G0", "claim": "A lock entry in a checkout config may have no `network`, in which case `extractLockInfo` should fall back to the config's root-level `network` instead of using an undefined value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
unlock-protocol__unlock__15261
unlock-protocol/unlock
15,261
defect
89115563ba84c74324718ce6d9a61bacbeb19907
26aefa4aaa45e4c0e45e846d46ffa62477b39e93
feature(subgraphs): Add `creationTransactionHash` to lock entity in subgraph
# Description This PR introduces an update to our subgraph by adding the `creationTransactionHash` field to the `lock` entity. # Issues Fixes # Refs # # Checklist: - [x] 1 PR, 1 purpose: my Pull Request applies to a single purpose - [x] I have commented my code, particularly in hard-to-understand areas - ...
diff --git a/subgraph/schema.graphql b/subgraph/schema.graphql index 1ae3f96c050..a4223a7f94c 100644 --- a/subgraph/schema.graphql +++ b/subgraph/schema.graphql @@ -45,6 +45,8 @@ type Lock @entity { The primary reason for this role is to support additional purchase mechanisms beyond direct key purchases like credit-...
1
1
1
[{"id": "G0", "claim": "The new Lock field should be named `creationTransactionHash` instead of `transactionHash` in subgraph/schema.graphql.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null