-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamically specifying the formula says 'No supported inverse for this function' #28
Comments
Working on a fix now, something is not correct with the parsing of the formula. A few changes to your example:
library(fasster)
library(fable)
library(tsibble)
# Preparing the data
train <- airquality %>% mutate(
date = as.Date(paste('2018', Month, Day, sep = '-')),
Ozone = round(imputeTS::na.interpolation(Ozone, option = 'stine')),
Solar.R = round(imputeTS::na.interpolation(Solar.R, option = 'stine'))
) %>%
as_tsibble()
# Creating formula
f <- as.formula('Ozone ~ Wind + Temp + Solar.R + trig(12) + poly(1) + ARMA(1, 1)')
# Building fasster without formula parsing
fsModel <- FASSTER(data = train,
formula = Ozone ~ Wind + Temp + Solar.R + trig(12) + poly(1) + ARMA(1, 1))
# Building fasster - throws an error
fsModel <- FASSTER(data = train, formula = f) |
Resolved in tidyverts/fable@4e1521f |
Apologies for the typo. Thanks for the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Great work on the package by the way.
I want to generate my formula dynamically from a list of variable names. So I tried to paste them into a string and convert that into a formula. However, this is throwing an error saying "No supported inverse for this function"
Example:
I am not sure if I am doing anything wrong here. The same formula when passed directly worked perfectly fine.
The text was updated successfully, but these errors were encountered: