GetPrimeFileFromJobId: Retrieve a specific Prime file from a DataRobot project for...

Description Usage Arguments Value Examples

View source: R/PrimeFiles.R

Description

Retrieve a specific Prime file from a DataRobot project for corresponding jobId

Usage

1
GetPrimeFileFromJobId(project, jobId, maxWait = 600)

Arguments

project

character. Either (1) a character string giving the unique alphanumeric identifier for the project, or (2) a list containing the element projectId with this identifier.

jobId

numeric. Unique integer identifier (return for example by RequestPrimeModel)

maxWait

numeric. maximum time to wait (in sec) before job completed.

Value

List with following elements:

language

Character string. Code programming language

isValid

logical flag indicating if code passed validation

rulesetId

Integer identifier for the ruleset

parentModelId

Unique alphanumeric identifier for the parent model

projectId

Unique alphanumeric identifier for the project

id

Unique alphanumeric identifier for the Prime file

modelId

Unique alphanumeric identifier for the model

Examples

1
2
3
4
5
6
7
8
## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  initialJobs <- GetModelJobs(project)
  job <- initialJobs[[1]]
  modelJobId <- job$modelJobId
  GetPrimeFileFromJobId(projectId, modelJobId)

## End(Not run)

datarobot documentation built on Sept. 21, 2017, 1:05 a.m.