Skip to content

Commit

Permalink
Merge pull request #151 from microsoft/mitokic/07022024/missing-colum…
Browse files Browse the repository at this point in the history
…n-fix

Fixed bug of having run_type duplicated when joining dataframes
  • Loading branch information
mitokic authored Feb 21, 2024
2 parents dd64b38 + 344dbc0 commit 6681122
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: finnts
Title: Microsoft Finance Time Series Forecasting Framework
Version: 0.4.0
Version: 0.4.0.9000
Authors@R:
c(person(given = "Mike",
family = "Tokic",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# finnts 0.4.0.9000 (DEVELOPMENT VERSION)

## Bug Fixes

- Error in run_type column join in final forecast output

# finnts 0.4.0

## Improvements
Expand Down
4 changes: 0 additions & 4 deletions R/ensemble_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,6 @@ ensemble_models <- function(run_info,
Train_Test_ID = id
) %>%
dplyr::mutate(Train_Test_ID = as.numeric(Train_Test_ID)) %>%
dplyr::left_join(model_train_test_tbl %>%
dplyr::select(Run_Type, Train_Test_ID),
by = "Train_Test_ID"
) %>%
dplyr::left_join(
prep_ensemble_tbl %>%
dplyr::mutate(.row = dplyr::row_number()) %>%
Expand Down
4 changes: 0 additions & 4 deletions R/train_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,6 @@ train_models <- function(run_info,
Train_Test_ID = id
) %>%
dplyr::mutate(Train_Test_ID = as.numeric(Train_Test_ID)) %>%
dplyr::left_join(model_train_test_tbl %>%
dplyr::select(Run_Type, Train_Test_ID),
by = "Train_Test_ID"
) %>%
dplyr::left_join(
prep_data %>%
dplyr::mutate(.row = dplyr::row_number()) %>%
Expand Down

0 comments on commit 6681122

Please sign in to comment.