facebook / facebook/prophet

regressor_coefficients not finding regr_names

Open
#2,532 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Make a model; add a regressor; fit the model
`m <- prophet(seasonality.mode = "multiplicative")`

`z<- add_regressor(m, "enr")`

`z<- fit.prophet(z, y)`

Call regressor_coefficients()
`regressor_coefficients(m = z)`

Returns
Error in which(m$train.component.cols[, regr_names] == 1, arr.ind = TRUE)[, :
incorrect number of dimensions

m$train.components.cols is missing a regr_names field that it wants here

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.