DownloadPrimeCode: Download the code of DataRobot Prime model and save it to a...

View source: R/DownloadPrimeCode.R

DownloadPrimeCodeR Documentation

Download the code of DataRobot Prime model and save it to a file.

Description

Training a model using a ruleset is a necessary prerequisite for being able to download the code for a ruleset.

Usage

DownloadPrimeCode(project, primeFileId, filepath)

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.

primeFileId

numeric. Prime file Id (can be acquired using ListPrimeFiles function)

filepath

character. The location to save the file to.

Examples

## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  primeFiles <- ListPrimeFiles(projectId)
  primeFile <- primeFiles[[1]]
  primeFileId <- primeFile$id
  file <- file.path(tempdir(), "primeCode.py")
  DownloadPrimeCode(projectId, primeFileId, file)

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.