plot.benchmark: Plot Method for 'benchmark' Class

View source: R/benchmark.R

plot.benchmarkR Documentation

Plot Method for benchmark Class

Description

Plot Method for benchmark Class

Usage

## S3 method for class 'benchmark'
plot(
  x,
  start_from = 1,
  min_loss = NULL,
  type = "iter",
  eps = 1e-10,
  xlog = TRUE,
  ylog = TRUE,
  ...
)

Arguments

x

benchmark class output by benchmark function

start_from

A integer indicating which repetition should be plot out. If that has NA values it will search the following repetitions and plot out the first one without NA.

min_loss

A real number indicating the minimum loss that should be subtracted out when doing plots. If NULL, the minimum loss will be subtracted out.

type

A string indicating the x-axis. "iter" for fpevals and "elapsed" for elapsed time.

eps

A small positive real number setting a lower bound for the standardized loss. Useful when doing log scale plots.

xlog

A bool value indicating whether x should be plotted in log scale

ylog

A bool value indicating whether y should be plotted in log scale

...

Other arguments for plot function.

Examples

## Not run: 
set.seed(54321)
out = benchmark("poissmix", c("raw", "squarem", "daarem", "pem", "qn", "nes"),  ntimes=100)
plot(out)

## End(Not run)


bhtang127/AccelBenchmark documentation built on May 30, 2022, 2:21 a.m.