https://github.com/nixtla logo
#general
Title
# general
d

Dihong Huang

04/15/2023, 4:21 AM
Does anyone know what maybe the issue here? I couldn’t show the data due to confidentiality but all the static features are numeric and only id, date, y are left.
f

fede (nixtla) (they/them)

04/17/2023, 4:27 PM
hey @Dihong Huang! Thanks for using mlforecast.I saw that you’re passing a set to the
target_transforms
argument. Could you try using a list? (
target_transforms=[Differences([1, 3, 6, 9])]
instead of
target_transforms={Differences([1, 3, 6, 9])}
)
d

Dihong Huang

04/17/2023, 4:38 PM
Thank you! This solves my problem. Also, I wonder if mlforecast supports feature importances when using xgboost and random forest?
f

fede (nixtla) (they/them)

04/17/2023, 8:29 PM
hey @Dihong Huang! cool. Yes, that’s possible. Once the models are fitted, you can access them through the
model_
attribute. And then you can retrieve the feature importance of the features using something like the following: