Skip to content

Commit

Permalink
v2.18.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjota authored Mar 13, 2024
1 parent 1353513 commit e1862b5
Show file tree
Hide file tree
Showing 33 changed files with 943 additions and 914 deletions.
4 changes: 2 additions & 2 deletions datarobot/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: datarobot
Title: 'DataRobot' Predictive Modeling API
Version: 2.18.5
Version: 2.18.6
Description: For working with the 'DataRobot' predictive modeling platform's API <https://www.datarobot.com/>.
Depends: R (>= 3.5), methods, stats
Imports: httr (>= 1.2.0), jsonlite (>= 1.0), yaml (>= 2.1.19)
Expand Down Expand Up @@ -28,6 +28,6 @@ Suggests: lubridate, knitr, testthat, lintr, data.table, AmesHousing,
VignetteBuilder: knitr
RoxygenNote: 7.2.3
NeedsCompilation: no
Packaged: 2023-10-30 22:37:09 UTC; aj
Packaged: 2024-03-13 19:51:54 UTC; aj
Language: en-US
Config/testthat/edition: 2
8 changes: 8 additions & 0 deletions datarobot/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# datarobot v2.18.6

This is a maintenance release to ensure package compatibility with future versions of R.

* Fixed a small issue with the metadata for the "Introduction to Multiclass" vignette.
* Fixed some outstanding code formatting issues in various roxygen docs.

# datarobot v2.18.5

This is a maintenance release.

Bugfixes:

* The functions `ListProjects` now has NULL default values for `limit` and `offset` arguments to maintain backwards compatibility. This fixes compatibility issues with versions of DataRobot before 9.x.

# datarobot v2.18.4
Expand Down
3 changes: 2 additions & 1 deletion datarobot/R/Enums.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,9 @@ MulticlassDeploymentAccuracyMetric <- namedEnumList(c(
#'
#' All possible deployment accuracy metrics. Added in DataRobot API 2.18.
#'
#' For usage, see `\code{DeploymentAccuracy} and `code{DeploymentAccuracyOverTime}.
#' For usage, see `DeploymentAccuracy` and `DeploymentAccuracyOverTime`.
#' @export
#' @md
DeploymentAccuracyMetric <- {
# Combine and dedupe the different metric types
DeploymentAccuracyMetric <- c(
Expand Down
2 changes: 1 addition & 1 deletion datarobot/R/GetPredictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ SelectDesiredPredictions <- function(parsedPredictionResponse, type, classPrefix
#' The contents of the return vector depends on the modeling
#' task - binary classification, multiclass classification, or regression;
#' whether or not the underlying data is time series, multiseries, cross-series, or not
#' time series; and the value of the /code{type} parameter. For non-time-series regression tasks,
#' time series; and the value of the \code{type} parameter. For non-time-series regression tasks,
#' the type parameter is ignored and a vector of numerical predictions of the response
#' variable is returned.
#'
Expand Down
4 changes: 2 additions & 2 deletions datarobot/R/ListModelJobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ListModelJobs <- function(project, status = NULL) {
#' @return list with following elements:
#' \itemize{
#' \item status character. Model job status; an element of \code{JobStatus}, e.g.
#' \code{JobStatus$Queue.}
#' \code{JobStatus$Queue}.
#' \item processes list. List of character vectors describing any preprocessing applied.
#' \item projectId character. The unique identifier for the project.
#' \item modelId character. The unique identifier for the related model.
Expand All @@ -77,7 +77,7 @@ ListModelJobs <- function(project, status = NULL) {
#' the model.
#' \item modelType character. string specifying the model this job builds.
#' \item modelCategory character. What kind of model this is - \code{prime} for DataRobot Prime
#' models, /code{blend} for blender models, and /code{model} for other models.
#' models, \code{blend} for blender models, and \code{model} for other models.
#' \item featurelistId character. Id of the featurelist used in fitting the model.
#' \item blueprintId character. Id of the DataRobot blueprint on which the model is based.
#' \item modelJobId character. Id of the job.
Expand Down
2 changes: 1 addition & 1 deletion datarobot/R/MultiSeries.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ RequestMultiSeriesDetection <- function(project, dateColumn, multiseriesIdColumn
#'
#' Note that this function no longer needs to be called directly, but is called
#' indirectly as a part of \code{SetTarget} (which itself is called indirectly as part of
#' \code{StartProject}) when you pass a /code{crossSeriesGroupByColumn} using
#' \code{StartProject}) when you pass a \code{crossSeriesGroupByColumn} using
#' \code{CreateDatetimePartitionSpecification}.
#'
#' @inheritParams RequestMultiSeriesDetection
Expand Down
2 changes: 1 addition & 1 deletion datarobot/R/PredictionDatasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ DeletePredictionDataset <- function(project, datasetId) {
#' Request predictions from a model against a previously uploaded dataset
#'
#' Prediction intervals can now be returned for predictions with datetime models.
#' Use `includePredictionIntervals = TRUE` in calls to /code{Predict} or /code{RequestPredictions}.
#' Use `includePredictionIntervals = TRUE` in calls to \code{Predict} or \code{RequestPredictions}.
#' For each model, prediction intervals estimate the range of values DataRobot expects actual values
#' of the target to fall within. They are similar to a confidence interval of a prediction, but are
#' based on the residual errors measured during the backtesting for the selected model.
Expand Down
9 changes: 6 additions & 3 deletions datarobot/R/Projects.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ DeleteProject <- function(project) {
#' @param filter list. Optional. A named list that can be used to specify various filters.
#' Currently `projectName` is supported which will filter returned projects for projects with
#' names containing the specified string.
#' @param limit integer. Optional. At most this many results are returned. Invoking `ListProjects` with this value against DataRobot 8.x (API 2.28) or older will throw an error.
#' @param offset integer. Optional. This many results will be skipped. Invoking `ListProjects` with this value against DataRobot 8.x (API 2.28) or older will throw an error.
#' @param limit integer. Optional. At most this many results are returned. Invoking `ListProjects`
#' with this value against DataRobot 8.x (API 2.28) or older will throw an error.
#' @param offset integer. Optional. This many results will be skipped. Invoking `ListProjects` with
#' this value against DataRobot 8.x (API 2.28) or older will throw an error.
#'
#' @return An S3 object of class 'projectSummaryList', consisting of the following elements:
#' \itemize{
Expand Down Expand Up @@ -82,7 +84,8 @@ DeleteProject <- function(project) {
#' @export
ListProjects <- function(filter = NULL, limit = NULL, offset = NULL) {
routeString <- "projects/"
# We do not automatically pass the limit and offset arguments to ensure backwards compatibility for DataRobot < 9.0
# We do not automatically pass the limit and offset arguments to ensure backwards compatibility
# for DataRobot < 9.0
params <- list()
params$limit <- limit
params$offset <- offset
Expand Down
8 changes: 4 additions & 4 deletions datarobot/R/StartRetryWaiter.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#' @param delay integer. Initial delay between tries (in seconds).
#' @param maxdelay integer. Maximum delay (in seconds) between tries.
#' @return function which gets the waiter status. This function returns a list with these items:
#' /itemize{
#' /item index numeric. How many times we have waited.
#' /item secondsWaited numeric. How long (in seconds) since we started the timer.
#' /item stillTrying logical. Whether we should keep trying or give up (logical)
#' \itemize{
#' \item index numeric. How many times we have waited.
#' \item secondsWaited numeric. How long (in seconds) since we started the timer.
#' \item stillTrying logical. Whether we should keep trying or give up (logical)
#' }
StartRetryWaiter <- function(timeout = NULL, delay = .1, maxdelay = 1.0) {
if (is.null(timeout)) {
Expand Down
115 changes: 58 additions & 57 deletions datarobot/inst/doc/AdvancedTuning.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Peter Hurford" />

<meta name="date" content="2023-10-30" />
<meta name="date" content="2024-03-13" />

<title>Advanced Tuning for Models</title>

Expand All @@ -31,23 +31,23 @@
</script>

<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>



<style type="text/css">
code {
white-space: pre;
}
.sourceCode {
overflow: visible;
}
code {
white-space: pre;
}
.sourceCode {
overflow: visible;
}
</style>
<style type="text/css" data-origin="pandoc">
pre > code.sourceCode { white-space: pre; position: relative; }
Expand All @@ -65,54 +65,55 @@
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; }
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.at { color: #7d9029; }
code span.bn { color: #40a070; }
code span.bu { color: #008000; }
code span.cf { color: #007020; font-weight: bold; }
code span.ch { color: #4070a0; }
code span.cn { color: #880000; }
code span.co { color: #60a0b0; font-style: italic; }
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.do { color: #ba2121; font-style: italic; }
code span.dt { color: #902000; }
code span.dv { color: #40a070; }
code span.er { color: #ff0000; font-weight: bold; }
code span.ex { }
code span.fl { color: #40a070; }
code span.fu { color: #06287e; }
code span.im { color: #008000; font-weight: bold; }
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.kw { color: #007020; font-weight: bold; }
code span.op { color: #666666; }
code span.ot { color: #007020; }
code span.pp { color: #bc7a00; }
code span.sc { color: #4070a0; }
code span.ss { color: #bb6688; }
code span.st { color: #4070a0; }
code span.va { color: #19177c; }
code span.vs { color: #4070a0; }
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; }
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */

</style>
<script>
// apply pandoc div.sourceCode style to pre.sourceCode instead
Expand Down Expand Up @@ -340,7 +341,7 @@

<h1 class="title toc-ignore">Advanced Tuning for Models</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-10-30</h4>
<h4 class="date">2024-03-13</h4>



Expand Down
Loading

0 comments on commit e1862b5

Please sign in to comment.