Skip to content

Commit

Permalink
fix merging mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Dec 22, 2023
1 parent 07dd58a commit a52d831
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/Estimator.R
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ gridCvDeep <- function(mappedData,
}

modelParams$catFeatures <- dataset$get_cat_features()$max()
modelParams$numFeatures <- dataset$get_numerical_features()$max()
modelParams$numFeatures <- dataset$get_numerical_features()$len()

estimatorSettings <- fillEstimatorSettings(modelSettings$estimatorSettings,
fitParams,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-Estimator.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
catFeatures <- smallDataset$dataset$get_cat_features()$max()
numFeatures <- smallDataset$dataset$get_numerical_features()$max()
numFeatures <- smallDataset$dataset$get_numerical_features()$len()

modelParameters <- list(
cat_features = catFeatures,
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-LRFinder.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ test_that("LR finder works with device specified by a function", {
model = "ResNet",
modelParameters =
list(cat_features = dataset$get_cat_features()$max(),
num_features = dataset$get_numerical_features()$max(),
size_embedding = 8L,
num_features = dataset$get_numerical_features()$len(),
size_embedding = 8L,
size_hidden = 16L,
num_layers = 1L,
hidden_factor = 1L),
Expand Down

0 comments on commit a52d831

Please sign in to comment.