Learn R Programming

datarobot (version 2.18.6)

StartTuningSession: Create a function to initiate hyperparameter tuning for a particular model.

Description

The advanced tuning feature allows you to manually set model parameters and override the DataRobot default selections.

Usage

StartTuningSession(model)

Value

A function that can be used to tune the model. The function will take model, the model object to tune, and will have individual arguments for each tunable hyperparameter that are each set to the default value for that hyperparameter. Furthermore, the function takes tuningDescription which can be used to describe the hyperparameter tuning taking place for future reference. The function itself will return a job ID that can be used to get the tuned model.

Arguments

model

dataRobotModel. A DataRobot model object to get tuning parameters for.

See Also

RunInteractiveTuning

Examples

Run this code
if (FALSE) {
  projectId <- "59a5af20c80891534e3c2bde"
  modelId <- "5996f820af07fc605e81ead4"
  myXGBModel <- GetModel(projectId, modelId)
  RunTune <- StartTuningSession(myXGBModel)
  tuningJob <- RunTune(myXGBModel, colsample_bytree = 0.4, colsample_bylevel = 0.8)
  tunedModel <- GetModelFromJobId(projectId, tuningJob)
}

Run the code above in your browser using DataLab