Skip to content

Commit

Permalink
fixes for module
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Apr 30, 2024
1 parent cff3363 commit 7f668e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion R/Estimator.R
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ doCrossValidationImpl <- function(dataset,
fillEstimatorSettings(modelSettings$estimatorSettings,
fitParams,
parameters)
currentEstimatorSettings <- evalEstimatorSettings(currentEstimatorSettings)
currentModelParams$catFeatures <- dataset$get_cat_features()$max()
currentModelParams$numFeatures <- dataset$get_numerical_features()$len()
if (currentEstimatorSettings$findLR) {
Expand Down
2 changes: 1 addition & 1 deletion inst/python/Estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, model, model_parameters, estimator_settings):
self.batch_size = int(estimator_settings.get("batch_size", 1024))
self.prefix = estimator_settings.get("prefix", self.model.name)

if estimator_settings["accumulation_steps"]:
if "accumulation_steps" in estimator_settings.keys() and estimator_settings["accumulation_steps"]:
self.accumulation_steps = int(estimator_settings["accumulation_steps"])
self.sub_batch_size = self.batch_size // self.accumulation_steps
else:
Expand Down

0 comments on commit 7f668e7

Please sign in to comment.