Description Usage Arguments Value Examples
View source: R/labeling_fixed_time.R
Labeling time series data on fixed horizont Originally described in the book Advances in Financial Machine Learning, Chapter 3.2, p.43-44.
1 | labeling_fixed_time(prices, threshold = 0.01, horizont = 1L)
|
prices |
vector of prices |
threshold |
double, if return greater (lower )than threshold than 1 (-1), other 0 |
horizont |
integer, number of steps to the future |
vector of labels
1 2 | data("spy")
head(labeling_fixed_time(spy$close, 0.05, 10000))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.