mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
R replace warning with message
This commit is contained in:
parent
4b185bf001
commit
4c235d9505
1 changed files with 3 additions and 3 deletions
|
|
@ -446,7 +446,7 @@ set_changepoints <- function(m) {
|
||||||
hist.size <- floor(nrow(m$history) * .8)
|
hist.size <- floor(nrow(m$history) * .8)
|
||||||
if (m$n.changepoints + 1 > hist.size) {
|
if (m$n.changepoints + 1 > hist.size) {
|
||||||
m$n.changepoints <- hist.size - 1
|
m$n.changepoints <- hist.size - 1
|
||||||
warning('n.changepoints greater than number of observations. Using ',
|
message('n.changepoints greater than number of observations. Using ',
|
||||||
m$n.changepoints)
|
m$n.changepoints)
|
||||||
}
|
}
|
||||||
if (m$n.changepoints > 0) {
|
if (m$n.changepoints > 0) {
|
||||||
|
|
@ -734,10 +734,10 @@ parse_seasonality_args <- function(m, name, arg, auto.disable, default.order) {
|
||||||
if (arg == 'auto') {
|
if (arg == 'auto') {
|
||||||
fourier.order <- 0
|
fourier.order <- 0
|
||||||
if (name %in% names(m$seasonalities)) {
|
if (name %in% names(m$seasonalities)) {
|
||||||
warning('Found custom seasonality named "', name,
|
message('Found custom seasonality named "', name,
|
||||||
'", disabling built-in ', name, ' seasonality.')
|
'", disabling built-in ', name, ' seasonality.')
|
||||||
} else if (auto.disable) {
|
} else if (auto.disable) {
|
||||||
warning('Disabling ', name, ' seasonality. Run prophet with ', name,
|
message('Disabling ', name, ' seasonality. Run prophet with ', name,
|
||||||
'.seasonality=TRUE to override this.')
|
'.seasonality=TRUE to override this.')
|
||||||
} else {
|
} else {
|
||||||
fourier.order <- default.order
|
fourier.order <- default.order
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue