Learn R Programming

RemixAutoML (version 0.11.0)

AutoTransformationScore: AutoTransformationScore() is a the complimentary function to AutoTransformationCreate()

Description

AutoTransformationScore() is a the compliment function to AutoTransformationCreate(). Automatically apply or inverse the transformations you identified in AutoTransformationCreate() to other data sets. This is useful for applying transformations to your validation and test data sets for modeling. It's also useful for back-transforming your target and prediction columns after you have build and score your models so you can obtain statistics on the original features.

Usage

AutoTransformationScore(ScoringData, FinalResults, Type = "Inverse",
  TransID = "TestModel", Path = NULL)

Arguments

ScoringData

This is your source data

FinalResults

This is the FinalResults output object from AutoTransformationCreate().

Type

Set to "Inverse" to back-transfrom or "Apply" for applying the transformation.

TransID

Set to a character value that corresponds with your modeling project

Path

Set to the directly where you want to save all of your modeling files

Value

data with transformed columns

See Also

Other Feature Engineering: AutoDataPartition, AutoTransformationCreate, AutoWord2VecModeler, CreateCalendarVariables, CreateHolidayVariables, DT_GDL_Feature_Engineering, DummifyDT, GDL_Feature_Engineering, ModelDataPrep, Partial_DT_GDL_Feature_Engineering, Scoring_GDL_Feature_Engineering, TimeSeriesFill

Examples

Run this code
# NOT RUN {
Correl <- 0.85
N <- 1000
data <- data.table::data.table(Adrian = runif(N))
data[, x1 := qnorm(Adrian)]
data[, x2 := runif(N)]
data[, Adrian1 := log(pnorm(Correl * x1 +
                            sqrt(1-Correl^2) * qnorm(x2)))]
data <- AutoTransformationScore(data,
                                FinalResults,
                                Path = NULL,
                                TransID = "Trans")
# }

Run the code above in your browser using DataLab