Skip to content

Commit

Permalink
more imputation work
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Dec 5, 2024
1 parent 4e834fc commit d17223c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export(createExecuteSettings)
export(createExistingSplitSettings)
export(createFeatureEngineeringSettings)
export(createGlmModel)
export(createIterativeImputer)
export(createLearningCurve)
export(createLogSettings)
export(createModelDesign)
Expand All @@ -35,7 +36,6 @@ export(createRandomForestFeatureSelection)
export(createRareFeatureRemover)
export(createRestrictPlpDataSettings)
export(createSampleSettings)
export(createSingleImputer)
export(createSklearnImputer)
export(createSplineSettings)
export(createStratifiedImputationSettings)
Expand Down
13 changes: 4 additions & 9 deletions R/PreprocessingData.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ minMaxNormalize <- function(trainData, featureEngineeringSettings, normalized =
)
)

attr(trainData, "metaData")$featureEngineering <- listAppend(
attr(trainData, "metaData")$featureEngineering,
attr(trainData, "metaData")$featureEngineering[["minMaxNormalize"]] ->
featureEngineering
)

return(trainData)
}

Expand Down Expand Up @@ -240,10 +239,8 @@ robustNormalize <- function(trainData, featureEngineeringSettings, normalized =
)
)

attr(trainData, "metaData")$featureEngineering <- listAppend(
attr(trainData, "metaData")$featureEngineering,
attr(trainData, "metaData")$featureEngineering[['robustNormalize']] <-
featureEngineering
)
return(trainData)
}

Expand Down Expand Up @@ -304,10 +301,8 @@ removeRareFeatures <- function(trainData, featureEngineeringSettings, findRare =
findRare = findRare
)
)
attr(trainData, "metaData")$featureEngineering <- listAppend(
attr(trainData, "metaData")$featureEngineering,
attr(trainData, "metaData")$featureEngineering[['removeRare']] <-
featureEngineering
)
return(trainData)
}

Expand Down

0 comments on commit d17223c

Please sign in to comment.