tfhub v0.8.0

0

Monthly downloads

0th

Percentile

Interface to 'TensorFlow' Hub

'TensorFlow' Hub is a library for the publication, discovery, and consumption of reusable parts of machine learning models. A module is a self-contained piece of a 'TensorFlow' graph, along with its weights and assets, that can be reused across different tasks in a process known as transfer learning. Transfer learning train a model with a smaller dataset, improve generalization, and speed up training.

Readme

tfhub

Actions Status

The tfhub package provides R wrappers to TensorFlow Hub.

TensorFlow Hub is a library for reusable machine learning modules.

TensorFlow Hub is a library for the publication, discovery, and consumption of reusable parts of machine learning models. A module is a self-contained piece of a TensorFlow graph, along with its weights and assets, that can be reused across different tasks in a process known as transfer learning. Transfer learning can:

  • Train a model with a smaller dataset,
  • Improve generalization, and
  • Speed up training.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("rstudio/tfhub")

After installing the tfhub package you need to install the TensorFlow Hub python module:

library(tfhub)
install_tfhub()

Go to the website for more information.

Functions in tfhub

Name Description
hub_load Hub Load
hub_sparse_text_embedding_column Module to construct dense representations from sparse text features.
reexports Objects exported from other packages
hub_image_embedding_column Module to construct a dense 1-D representation from the pixels of images.
hub_text_embedding_column Module to construct a dense representation from a text feature.
layer_hub Hub Layer
bake.step_pretrained_text_embedding Bake method for step_pretrained_text_embedding
install_tfhub Install TensorFlow Hub
step_pretrained_text_embedding Pretrained text-embeddings
%>% Pipe operator
prep.step_pretrained_text_embedding Prep method for step_pretrained_text_embedding
No Results!

Vignettes of tfhub

Name
examples/biggan_image_generation.R
examples/biggan_image_generation.Rmd
examples/feature_column.R
examples/feature_column.Rmd
examples/image_classification.R
examples/image_classification.Rmd
examples/index.Rmd
examples/recipes.R
examples/recipes.Rmd
examples/text_classification.R
examples/text_classification.Rmd
examples/using_bert_tfhub.R
hub-with-keras.Rmd
intro.Rmd
key-concepts.Rmd
No Results!

Last month downloads

Details

Type Package
License Apache License 2.0
URL https://github.com/rstudio/tfhub
BugReports https://github.com/rstudio/tfhub/issues
SystemRequirements TensorFlow >= 2.0 (https://www.tensorflow.org/)
Encoding UTF-8
LazyData true
RoxygenNote 7.0.2
VignetteBuilder knitr
Config/reticulate list( packages = list( list(package = "tensorflow", pip = TRUE), list(package = "tensorflow_hub", pip = TRUE) ) )
NeedsCompilation no
Packaged 2020-05-22 20:31:59 UTC; dfalbel
Repository CRAN
Date/Publication 2020-05-22 20:50:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/tfhub)](http://www.rdocumentation.org/packages/tfhub)