View source: R/DSD_mlbenchData.R
| DSD_mlbenchData | R Documentation |
Provides a convenient stream interface for data sets from the mlbench package.
DSD_mlbenchData(data = NULL, loop = FALSE, random = FALSE, scale = FALSE)
data |
The name of the dataset from mlbench. If missing then a list of all available data sets is shown and returned. |
loop |
logical; loop or not to loop over the data frame. |
random |
logical; should the data be used a random order? |
scale |
logical; apply scaling to the data? |
The DSD_mlbenchData class is designed to be a wrapper class for data
from the mlbench package.
All data is held in memory in either data frame or matrix form. It is served as a stream using the
DSD_Memory class. The stream can be reset to position 1 using reset_stream().
Call DSD_mlbenchData with a missing value for data to get a list of
all available data sets.
Returns a DSD_mlbenchData object which is also of class
DSD_Memory.
Michael Hahsler and Matthew Bolanos
Other DSD:
DSD(),
DSD_BarsAndGaussians(),
DSD_Benchmark(),
DSD_Cubes(),
DSD_Gaussians(),
DSD_MG(),
DSD_Memory(),
DSD_Mixture(),
DSD_NULL(),
DSD_ReadDB(),
DSD_ReadStream(),
DSD_Target(),
DSD_UniformNoise(),
DSD_mlbenchGenerator(),
DSF(),
animate_data(),
close_stream(),
get_points(),
plot.DSD(),
reset_stream()
DSD_mlbenchData()
stream <- DSD_mlbenchData("Shuttle")
stream
get_points(stream, n = 5)
plot(stream, n = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.