Skip to content

v0.2.0

Choose a tag to compare

@jer-k jer-k released this 15 Oct 20:04
· 164 commits to main since this release
919b069

Added

  • Country holiday calendars, like Python Prophet's add_country_holidays. Add
    countryHolidays: { country: "US" } to fit and 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; pass coverage: "allow-known-gaps" to use the calendar anyway.
  • inspectCountryHolidays lists 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.
  • CountryHolidayError reports every calendar problem, such as an unknown country, a year
    outside 1995–2060 or a known gap, with a reason you 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:compare now summarizes what changed between two runs and flags possible
    speed regressions.

Full Changelog: v0.1.1...v0.2.0