Skip to content

Commit

Permalink
Removed dependency on fable
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Dec 1, 2023
1 parent c61334a commit 663643d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/00_specials.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ common_xregs <- list(
}
origin <- self$origin
}
as.matrix(fable:::trend(self$data, knots, origin))
as.matrix(fable.binary:::trend(self$data, knots, origin))
},
season = function(period = NULL) {
as_model_matrix(fable:::season(self$data, period))
as_model_matrix(fable.binary:::season(self$data, period))
},
fourier = function(period = NULL, K, origin = NULL) {
if (is.null(origin)) {
Expand All @@ -185,7 +185,7 @@ common_xregs <- list(
}
origin <- self$origin
}
as.matrix(fable:::fourier(self$data, period, K, origin))
as.matrix(fable.binary:::fourier(self$data, period, K, origin))
}
)

Expand Down

0 comments on commit 663643d

Please sign in to comment.