Lilio

Latest version: v0.4.2

Safety actively analyzes 623965 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.2

Changed
- Consistent output type of train-test split as input ([62](https://github.com/AI4S2S/lilio/pull/62)).
- Corrected s2spy.time to lilio ([65](https://github.com/AI4S2S/lilio/pull/64))

0.4.0

With this release, Lilio now supports use of [Dask](https://docs.dask.org/en/stable/) in resampling!
For more details on the changes, see the overview below:

Changed
- Bokeh >= 3.0.0 is now required for interactive plotting, instead of <= 2.4.3.
- Do note that dask.distributed still requires bokeh < 3.

Added
- Lilio's resample now supports use of dask. A tutorial on how to make use of this has been added to the documentation ([52](https://github.com/AI4S2S/lilio/pull/52)).
- When resampling xarray data, information such as the lilio version, calendar anchor date, the exact calendar, etc. are now added to the attributes, as well as descriptions and full names for anchor_year, i_interval, and is_target ([49](https://github.com/AI4S2S/lilio/pull/49))

0.3.1

Changed
- `lilio.resample` will now return `xr.DataArray` if the input is `xr.DataArray`.
- For compatibility with DataArray output, the Dataset/DataArray returned by resample now has the coordinates "left_bound" and "right_bound" instead of a single "intervals" coordinate with the "bounds" dimension.
- If your input data has an frequency of less than _twice_ the Calendar's smallest interval length, a UserWarning will be raised.
- If your input data has a frequency less than the Calendar's smallest interval length, a ValueError will be raised.
- In the output of `resample()`, the column/coordinate `target` has been renamed to `is_target` to avoid clashing with a possibly commonly used name by users.
- The input data into `resample()` is now checked for the existance of reserved names, such as "anchor_year" or "i_interval", to avoid overwriting these and cause unpredictable behavior.

0.3.0

First release of Lilio as a split off from `s2spy`.

Lilio generates calendars to resample timeseries into training and target data for machine learning.
It is named after [the inventor](https://en.wikipedia.org/wiki/Aloysius_Lilius) of the [Gregorian Calendar](https://en.wikipedia.org/wiki/Gregorian_calendar).

Fixed
- Fixed a bug in Matplotlib calendar visualization related to the anchor date.

Changed
- The `CustomCalendar` has been renamed to `Calendar`.
- The `AdventCalendar`, `MonthlyCalendar` and `WeeklyCalendar` have been removed as classes. Instead there are functions that generate a standard `Calendar`.

Added
- Resampling now supports many methods (e.g. median, min, std) as well as user-defined functions.
- A "calendar shifter" to create a list of staggered calendars.

Dev changes
- Lilio makes use of ['hatch'](https://hatch.pypa.io/) now.
- Building the package has moved to hatchling
- Environments and scripts are set up to handle linting and docs building.
- Ruff is now used as a linter.
- Notebooks have been moved to the docs folder. Notebooks needs to be cleaned to pass the CI.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.