-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
… in examples
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Nickalus Redell | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
YEAR: 2019 | ||
COPYRIGHT HOLDER: Nickalus Redell |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
# MIT License | ||
|
||
Copyright (c) 2019 Nickalus Redell | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
YEAR: 2019 | ||
COPYRIGHT HOLDER: Nickalus Redell |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
\donttest{ | ||
# NOAA buoy dataset with gaps in data collection | ||
data("data_buoy_gaps", package = "forecastML") | ||
|
||
# NOAA buoy dataset with gaps in data collection | ||
data("data_buoy_gaps", package = "forecastML") | ||
data_buoy_no_gaps <- fill_gaps(data_buoy_gaps, date_col = 1, frequency = '1 day', | ||
groups = 'buoy_id', static_features = c('lat', 'lon')) | ||
|
||
data_buoy_no_gaps <- fill_gaps(data_buoy_gaps, date_col = 1, frequency = '1 day', | ||
groups = 'buoy_id', static_features = c('lat', 'lon')) | ||
# The returned data.frame has the same number of columns but the time-series | ||
# are now evenly spaced at 1 day apart. Additionally, the unchanging grouping | ||
# columns and static features columns have been filled in for the newly created dataset rows. | ||
dim(data_buoy_gaps) | ||
dim(data_buoy_no_gaps) | ||
|
||
# The returned data.frame has the same number of columns but the time-series | ||
# are now evenly spaced at 1 day apart. Additionally, the unchanging grouping | ||
# columns and static features columns have been filled in for the newly created dataset rows. | ||
dim(data_buoy_gaps) | ||
dim(data_buoy_no_gaps) | ||
|
||
# Running create_lagged_df() is the next step in the forecastML forecasting | ||
# process. If there are long gaps in data collection, like in this buoy dataset, | ||
# and the user-supplied modeling algorithm cannot handle missing outcomes data, | ||
# the best option is to filter these rows out in the user-supplied modeling function | ||
# for train_model() | ||
} | ||
# Running create_lagged_df() is the next step in the forecastML forecasting | ||
# process. If there are long gaps in data collection, like in this buoy dataset, | ||
# and the user-supplied modeling algorithm cannot handle missing outcomes data, | ||
# the best option is to filter these rows out in the user-supplied modeling function | ||
# for train_model() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.