Skip to content

Commit 0b74f80

Browse files
authored
Merge pull request #1204 from rstudio/fix-note
Fix note: no visible binding for global variable 'object'
2 parents af909f1 + 0a20882 commit 0b74f80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+100
-100
lines changed

R/Layer.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ Layer <- function(classname, initialize, build = NULL, call = NULL,
109109
layer$`__module__` <- classname
110110

111111
# build the function to be used
112-
f <- function() {
112+
f <- function(object) {
113113
.args <- as.list(match.call())[-c(1)]
114114
.args <- .args[names(.args) != "object"]
115115
create_layer(layer, object, .args)
116116
}
117117
formals(f) <- append(
118-
list(object = quote(expr=)),
118+
formals(f),
119119
formals(initialize)
120120
)
121121
attr(f, "layer") <- layer

R/applications.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ inception_v3_preprocess_input <- function(x) {
238238
#' preprocessing.
239239
#'
240240
#' @section Reference:
241-
#' - [Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning](https://arxiv.org/abs/1602.07261)(http://arxiv.org/abs/1512.00567)
241+
#' - [Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning](https://arxiv.org/abs/1602.07261)(https://arxiv.org/abs/1512.00567)
242242
#'
243243
#' @export
244244
application_inception_resnet_v2 <- function(include_top = TRUE, weights = "imagenet", input_tensor = NULL, input_shape = NULL,

R/callbacks.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ callback_early_stopping <- function(monitor = "val_loss", min_delta = 0, patienc
186186
#' @family callbacks
187187
#'
188188
#' @export
189-
callback_remote_monitor <- function(root = "http://localhost:9000", path = "/publish/epoch/end/",
189+
callback_remote_monitor <- function(root = "https://localhost:9000", path = "/publish/epoch/end/",
190190
field = "data", headers = NULL, send_as_json = FALSE) {
191191

192192
if (!have_requests())
@@ -745,4 +745,4 @@ normalize_callbacks <- function(callbacks) {
745745
callbacks
746746
}
747747

748-
empty_fun <- function(batch, logs = NULL) {}
748+
empty_fun <- function(batch, logs = NULL) {}

man/application_inception_resnet_v2.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/callback_remote_monitor.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/examples/conv_filter_visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
This script can run on CPU in a few minutes.
44
5-
Results example: http://i.imgur.com/4nj4KjN.jpg
5+
Results example: https://i.imgur.com/4nj4KjN.jpg
66
'''
77
from __future__ import print_function
88

vignettes/examples/image_ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def train(run_name, start_epoch, stop_epoch, img_w):
416416
input_shape = (img_w, img_h, 1)
417417

418418
fdir = os.path.dirname(get_file('wordlists.tgz',
419-
origin='http://www.mythic-ai.com/datasets/wordlists.tgz', untar=True))
419+
origin='https://www.mythic-ai.com/datasets/wordlists.tgz', untar=True))
420420

421421
img_gen = TextImageGenerator(monogram_file=os.path.join(fdir, 'wordlist_mono_clean.txt'),
422422
bigram_file=os.path.join(fdir, 'wordlist_bi_clean.txt'),

vignettes/examples/lstm_seq2seq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
# Data download:
3636
3737
English to French sentence pairs.
38-
http://www.manythings.org/anki/fra-eng.zip
38+
https://www.manythings.org/anki/fra-eng.zip
3939
4040
Lots of neat sentence pairs datasets can be found at:
41-
http://www.manythings.org/anki/
41+
https://www.manythings.org/anki/
4242
4343
# References:
4444

vignettes/examples/lstm_stateful.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
of the data, with the window length = "lahead".
2525
This is similar to sklearn's "view_as_windows"
2626
with "window_shape" being a single number
27-
Ref: http://scikit-image.org/docs/0.10.x/api/skimage.util.html#view-as-windows
27+
Ref: https://scikit-image.org/docs/0.10.x/api/skimage.util.html#view-as-windows
2828
2929
When lahead < tsteps, only the stateful LSTM converges because its
3030
statefulness allows it to see beyond the capability that lahead

vignettes/examples/mnist_hierarchical_rnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Results have shown that HRNN outperforms standard
1414
RNNs and may play some role in more sophisticated generation tasks like
1515
summarization or question answering.
16-
- [Hierarchical recurrent neural network for skeleton based action recognition](http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7298714)
16+
- [Hierarchical recurrent neural network for skeleton based action recognition](https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7298714)
1717
Achieved state-of-the-art results on skeleton based action recognition with 3 levels
1818
of bidirectional HRNN combined with fully connected layers.
1919

0 commit comments

Comments
 (0)