write_ModelProperties_json.Rd
Writes a descriptor JSON file for ModelProperties, it will configure the model properties within Model Manager
write_ModelProperties_json(
modelName,
modelDescription = "R model",
modelFunction,
trainTable = " ",
algorithm,
numTargetCategories,
targetEvent,
targetVariable,
eventProbVar,
modeler = " ",
tool = "R",
toolVersion = "default",
path = "./",
noFile = FALSE
)
Name of the model
String describing the model
Classification, Prediction, Segmentation, Analytical or Clustering.
Name of the training table
Algorithm name (Random Forest, GLM, Linear Regression, etc.)
number of possible classes for classification
Target event label eg: "1", "versicolor" etc.
Target variable name
Variable name that has the targetEvent
probability Chance
Modeler's name
Name of the tool used to build the model
Version of the tool used to build the model
file path where to write the json (don't include the filename)
if you don't want to write to a file, only list the output
list
of the mapped properties and values.
'ModelProperties.json' file written to path
write_ModelProperties_json(modelName = "My R Model",
modelDescription = "Awesome Description",
modelFunction = "Classification",
trainTable = " ",
algorithm = "Logistic Regression",
numTargetCategories = 2,
targetEvent = "BAD",
targetVariable = "P_BAD1",
eventProbVar = "P_BAD1",
modeler = "John SAS",
noFile = TRUE)
#> value
#> name My R Model
#> description Awesome Description
#> function Classification
#> scoreCodeType R
#> trainTable
#> trainCodeType R
#> algorithm Logistic Regression
#> targetVariable P_BAD1
#> targetEvent BAD
#> targetLevel Binary
#> eventProbVar P_BAD1
#> modeler John SAS
#> tool R
#> toolVersion 4.4.2