knitr::opts_chunk$set( collapse = TRUE, echo = FALSE, comment = "#>" ) library(lattice) library(latticeExtra) library(sgdnet) lattice.options(default.theme = list(fontsize = list(points = 4, text = 8))) plot_benchmarks <- function(data) { p <- xyplot(loss ~ time | dataset + penalty, groups = package, data = data, type = "l", scales = list(relation = "free", draw = FALSE), auto.key = TRUE) useOuterStrips(p) }
This vignette contains benchmarks of sgdnet against other similar packages. The data has been precomputed from scripts that are available at https://github.com/jolars/sgdnet/data-raw/.
The benchmarks were generated as follows:
system.time()
.The benchmarks were run on a dedicated Amazon EC2 m4.large instance.
Note that some of the data sets below are not strictly 100% dense,
despite the specifications below. They are, however, stored in dense
matrix form (the regular matrix
class in R), which makes the packages
ignore any sparsity.
Name Observations Features Density ---------- ---------------- --------- --------- abalone 4,177 8 100% cadata 20,640 8 100% mushroooms 8,124 12 100%
Table: Benchmarking data sets for the gaussian model
plot_benchmarks(benchmarks$gaussian)
In this section, we are going to look at the following datasets:
Name Observations Features Density ---------- ---------------- --------- --------- adult 32,561 123 11% icjnn1 49,990 22 100% mushroooms 8,124 112 19%
Table: Benchmarking data sets for the binomial model.
All of these have been collected from the libsvm binary dataset collection.
plot_benchmarks(benchmarks$binomial)
For the multinomial model, we have these data sets:
Name Observations Classes Features Density
---------- ---------------- -------- --------- ---------
vehicle 846 4 18 100%
dna 2,000 3 180 25%
poker 25,010 10 22 100%
Table: Benchmarking data sets for the multinomial model.
plot_benchmarks(benchmarks$multinomial)
For the multivariate gaussian case, we have these data:
Name Observations Responses Features Density
---------- ---------------- --------- --------- ---------
violence 1,901 18 100 100%
bikes 731 2 29 28%
naval 11,934 2 15 100%
plot_benchmarks(benchmarks$mgaussian)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.