Repository navigation
v0.2.0
Added
- Country holiday calendars, like Python Prophet's
add_country_holidays. Add
countryHolidays: { country: "US" }tofitand the model learns an effect for each of that
country's public holidays, alongside any events you add yourself. Calendars for 250 countries
are included and work offline, for the years 1995–2060. - Some calendars have known gaps, such as India's Hindu holidays after 2035. These are rejected by
default; passcoverage: "allow-known-gaps"to use the calendar anyway. inspectCountryHolidayslists a country's holiday dates and any known gaps for the years you
ask about, without fitting a model.- A saved model keeps the holiday dates it was trained with, so upgrading Effect Prophet never
changes the forecasts of a model you already saved. CountryHolidayErrorreports every calendar problem, such as an unknown country, a year
outside 1995–2060 or a known gap, with areasonyou can check.- Tracing spans for loading and resolving country calendars.
Changed
- Faster predictions and model saving, for every model.
- The npm package grows from about 350 KB to about 1.28 MB, for the bundled calendars.
Benchmarks
- New benchmarks for country holiday calendars, checked against Python Prophet, with controls
that measure what the calendars themselves cost. npm run benchmark:comparenow summarizes what changed between two runs and flags possible
speed regressions.
Full Changelog: v0.1.1...v0.2.0