makeFizzbuzzProblem: Fizzbuzz Classification Problem

Description Usage Arguments Value Examples

View source: R/makeFizzbuzzProblem.R

Description

This problem is inspired by this blog post http://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/. Obviously this is not a serious benchmarking problem, but it isn't totally trivial to solve. Each observation is one number encoded in 32-bit binary. The target if

Usage

1
makeFizzbuzzProblem(n = 10^4, create.task = TRUE)

Arguments

n

[integer(1)]
Number of observations to create. Default is 5000L.

create.task

[logical(1)]
Should a task be created? If TRUE a mlr classification task (see makeClassifTask is returned. Otherwise a data.frame is returned.

Value

ClassifTask | data.frame.

Examples

1
 makeFizzbuzzProblem(1, create.task = FALSE)

ja-thomas/dlbench documentation built on May 18, 2019, 7:15 a.m.