Skip to content

Commit

Permalink
v2.18.4 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjota authored Jul 27, 2023
1 parent 3043eba commit ed44e7f
Show file tree
Hide file tree
Showing 23 changed files with 63 additions and 48 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.3
Version: 2.18.4
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-07-12 19:51:13 UTC; aj
Packaged: 2023-07-25 01:33:05 UTC; aj
Language: en-US
Config/testthat/edition: 2
10 changes: 8 additions & 2 deletions datarobot/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# datarobot v2.18.3
# datarobot v2.18.4

The `datarobot` package is now dependent on R >= 3.5.

Expand All @@ -11,10 +11,11 @@ Enhancements:

* The function `RequestFeatureImpact` now accepts a `rowCount` argument, which will change the sample size used for Feature Impact calculations.
* The un-exported function `datarobot:::UploadData` now takes an optional argument `fileName`.
* The function `ListProjects` now accepts `limit` and `offset` arguments, which allows users to retrieve additional projects.

Bugfixes:

* Fixed an issue where an [undocumented feature](https://github.com/jeroen/curl/pull/290/) in curl==5.0.1 is installed that caused any invocation of `datarobot:::UploadData` (i.e. `SetupProject`) to fail with the error `No method asJSON S3 class: form_file`.
* Fixed an issue where a [new feature](https://github.com/jeroen/curl/pull/290/) in curl==5.0.1 caused invocations of `datarobot:::UploadData` (i.e. `SetupProject`) as well as `datarobot:::UploadPredictionDataset` to fail with the error `No method asJSON S3 class: form_file`.
* Loading the `datarobot` package with `suppressPackageStartupMessages()` will now suppress all messages.

API Changes:
Expand All @@ -37,6 +38,11 @@ Dependency Changes:
Documentation Changes:

* Updated "Introduction to DataRobot" vignette to use Ames, Iowa housing data instead of Boston housing dataset.
* Removed hard links to `lendingclub.com` in vignettes due to issues with the CRAN URL checker.

# datarobot v2.18.3

This release is superseded by v2.18.4.

# datarobot v2.18.2

Expand Down
11 changes: 9 additions & 2 deletions datarobot/R/PredictionDatasets.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2021-2023 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#' Function to upload new data to a DataRobot project for predictions
#'
#' The DataRobot prediction engine requires a CSV file containing the data to be
Expand Down Expand Up @@ -59,9 +67,8 @@ UploadPredictionDataset <- function(project, dataSource, forecastPoint = NULL,
routeString <- UrlJoin("projects", projectId, "predictionDatasets", "urlUploads")
dataList <- list(url = dataSource)
} else {
dataPath <- DataPathFromDataArg(dataSource)
routeString <- UrlJoin("projects", projectId, "predictionDatasets", "fileUploads")
dataList <- list(file = httr::upload_file(dataPath))
dataList <- list(file = UploadData(dataSource))
}
if (!is.null(forecastPoint) && (!is.null(predictionsStartDate) || !is.null(predictionsEndDate))) {
stop(sQuote("forecastPoint"), " cannot be provided along with ", sQuote("predictionsStartDate"),
Expand Down
8 changes: 5 additions & 3 deletions datarobot/R/Projects.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ 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, default: 1000
#' @param offset integer. Optional. This many results will be skipped, default: 0
#'
#' @return An S3 object of class 'projectSummaryList', consisting of the following elements:
#' \itemize{
Expand Down Expand Up @@ -78,9 +80,9 @@ DeleteProject <- function(project) {
#' ListProjects(filter = list("projectName" = "TimeSeries"))
#' }
#' @export
ListProjects <- function(filter = NULL) {
ListProjects <- function(filter = NULL, limit = 1000, offset = 0) {
routeString <- "projects/"
params <- NULL
params <- list(offset = offset, limit = limit)
if (!is.null(filter)) {
if (!is.list(filter)) {
stop("`filter` must be a list.")
Expand All @@ -89,7 +91,7 @@ ListProjects <- function(filter = NULL) {
if (length(filter$projectName) != 1) {
stop("`projectName` must be a character vector of length 1.")
}
params <- list("projectName" = filter$projectName)
params$projectName <- filter$projectName
}
}
returnValue <- DataRobotGET(routeString, query = params)
Expand Down
4 changes: 2 additions & 2 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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Advanced Tuning for Models</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Advanced Tuning for Models</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
2 changes: 1 addition & 1 deletion datarobot/inst/doc/AdvancedVignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ConnectToDataRobot(endpoint = "http://<YOUR DR SERVER>/api/v2", token = "<YOUR A

## Data

We will be using the [Lending Club dataset](https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv), a sample dataset related to credit scoring open-sourced by LendingClub (https://www.lendingclub.com/). We can create a project with this dataset like this:
We will be using the [Lending Club dataset](https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv), a sample dataset related to credit scoring open-sourced by LendingClub. We can create a project with this dataset like this:

```{r results = "asis", message = FALSE, warning = FALSE, eval = FALSE}
lendingClubURL <- "https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv"
Expand Down
10 changes: 5 additions & 5 deletions datarobot/inst/doc/AdvancedVignette.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions datarobot/inst/doc/Calendars.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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Calendars</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Introduction to Calendars</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/ComparingSubsets.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Ron Pearson" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Using Many Models to Compare Datasets</title>

Expand Down Expand Up @@ -363,7 +363,7 @@

<h1 class="title toc-ignore">Using Many Models to Compare Datasets</h1>
<h4 class="author">Ron Pearson</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/ComplianceDocumentation.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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Compliance Documentation</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Compliance Documentation</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/DatetimePartitionedProjects.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Sergey Yurgenson, Madeleine Mott, Zach Mayer, Igor Veksler, Thakur Raj Anand" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Datetime Partitioning</title>

Expand Down Expand Up @@ -342,7 +342,7 @@
<h1 class="title toc-ignore">Datetime Partitioning</h1>
<h4 class="author">Sergey Yurgenson, Madeleine Mott, Zach Mayer, Igor
Veksler, Thakur Raj Anand</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/Deployment.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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Model Deployment</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Introduction to Model Deployment</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/IntroductionToDataRobot.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Ron Pearson, Peter Hurford, Matt Harris" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to the DataRobot R Package</title>

Expand Down Expand Up @@ -342,7 +342,7 @@
<h1 class="title toc-ignore">Introduction to the DataRobot R
Package</h1>
<h4 class="author">Ron Pearson, Peter Hurford, Matt Harris</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/Multiclass.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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Multiclass</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Introduction to Multiclass</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/PartialDependence.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Ron Pearson" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Interpreting Predictive Models Using Partial Dependence Plots</title>

Expand Down Expand Up @@ -364,7 +364,7 @@
<h1 class="title toc-ignore">Interpreting Predictive Models Using
Partial Dependence Plots</h1>
<h4 class="author">Ron Pearson</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
2 changes: 1 addition & 1 deletion datarobot/inst/doc/PredictionExplanations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ConnectToDataRobot(endpoint = endpoint, token = apiToken)
```

## Data
We would be using a sample dataset related to credit scoring open sourced by LendingClub (https://www.lendingclub.com/). Below is the information related to the variables.
We would be using a sample dataset related to credit scoring open sourced by LendingClub. Below is the information related to the variables.

```{r echo = FALSE, results = "asis", message = FALSE, warning = FALSE}
Lending <- fread("https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv")
Expand Down
8 changes: 4 additions & 4 deletions datarobot/inst/doc/PredictionExplanations.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Peter Hurford, Colin Priest, Sergey Yurgenson, Thakur Raj Anand" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Prediction Explanations</title>

Expand Down Expand Up @@ -343,7 +343,7 @@ <h1 class="title toc-ignore">Introduction to Prediction
Explanations</h1>
<h4 class="author">Peter Hurford, Colin Priest, Sergey Yurgenson, Thakur
Raj Anand</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down Expand Up @@ -416,8 +416,8 @@ <h2>Connecting to DataRobot</h2>
<div id="data" class="section level2">
<h2>Data</h2>
<p>We would be using a sample dataset related to credit scoring open
sourced by LendingClub (<a href="https://www.lendingclub.com/" class="uri">https://www.lendingclub.com/</a>). Below is the information
related to the variables.</p>
sourced by LendingClub. Below is the information related to the
variables.</p>
<table style="width:100%;">
<colgroup>
<col width="20%" />
Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/RatingTables.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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Rating Tables</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Introduction to Rating Tables</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/TimeSeries.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Peter Hurford, Madeleine Mott" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Time Series</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Introduction to Time Series</h1>
<h4 class="author">Peter Hurford, Madeleine Mott</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/TrainingPredictions.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-07-12" />
<meta name="date" content="2023-07-24" />

<title>Introduction to Training Predictions</title>

Expand Down Expand Up @@ -341,7 +341,7 @@

<h1 class="title toc-ignore">Introduction to Training Predictions</h1>
<h4 class="author">Peter Hurford</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
4 changes: 2 additions & 2 deletions datarobot/inst/doc/VariableImportance.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Ron Pearson" />

<meta name="date" content="2023-07-12" />
<meta name="date" content="2023-07-24" />

<title>Assessing Variable Importance for Predictive Models of Arbitrary Type</title>

Expand Down Expand Up @@ -364,7 +364,7 @@
<h1 class="title toc-ignore">Assessing Variable Importance for
Predictive Models of Arbitrary Type</h1>
<h4 class="author">Ron Pearson</h4>
<h4 class="date">2023-07-12</h4>
<h4 class="date">2023-07-24</h4>



Expand Down
2 changes: 1 addition & 1 deletion datarobot/vignettes/AdvancedVignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ConnectToDataRobot(endpoint = "http://<YOUR DR SERVER>/api/v2", token = "<YOUR A

## Data

We will be using the [Lending Club dataset](https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv), a sample dataset related to credit scoring open-sourced by LendingClub (https://www.lendingclub.com/). We can create a project with this dataset like this:
We will be using the [Lending Club dataset](https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv), a sample dataset related to credit scoring open-sourced by LendingClub. We can create a project with this dataset like this:

```{r results = "asis", message = FALSE, warning = FALSE, eval = FALSE}
lendingClubURL <- "https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv"
Expand Down
2 changes: 1 addition & 1 deletion datarobot/vignettes/PredictionExplanations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ConnectToDataRobot(endpoint = endpoint, token = apiToken)
```

## Data
We would be using a sample dataset related to credit scoring open sourced by LendingClub (https://www.lendingclub.com/). Below is the information related to the variables.
We would be using a sample dataset related to credit scoring open sourced by LendingClub. Below is the information related to the variables.

```{r echo = FALSE, results = "asis", message = FALSE, warning = FALSE}
Lending <- fread("https://s3.amazonaws.com/datarobot_public_datasets/10K_Lending_Club_Loans.csv")
Expand Down

0 comments on commit ed44e7f

Please sign in to comment.