prophet/R/man/smape.Rd
Sam Snarr 2d8e6c7fd1
Added growth='flat' functionality in R (#1778)
* added `flat_growth_init()` function

* added validation for 'flat'

* changed `fit.prophet()` to handle `growth='flat'`

* added `trend='flat'` capabilities to `sample_predictive_trend()` and `fit.prophet()`

* updated STAN code to handle flat trend

* [Syntax fix] Removed unnecessary bracket

* updated documentation

* undid formatting that was accidentally applied by autoformatter

* undid more formatting that was accidentally applied by autoformatter

* added tests

* typo in `sample_predictive_trend()`

* updated notebook with example in R

* updated documentation
2021-01-14 13:53:08 -08:00

22 lines
499 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{smape}
\alias{smape}
\title{Symmetric mean absolute percentage error
based on Chen and Yang (2004) formula}
\usage{
smape(df, w)
}
\arguments{
\item{df}{Cross-validation results dataframe.}
\item{w}{Aggregation window size.}
}
\value{
Array of symmetric mean absolute percent errors.
}
\description{
Symmetric mean absolute percentage error
based on Chen and Yang (2004) formula
}
\keyword{internal}