mlbench (version 0.5-1)

mlbench.circle: Circle in a Square Problem

Description

The inputs of the circle problem are uniformly distributed on the d-dimensional cube with corners ${\pm 1}$. This is a 2-class problem: The first class is a d-dimensional ball in the middle of the cube, the remainder forms the second class. The size of the ball is chosen such that both classes have equal prior probaility 0.5.

Usage

mlbench.circle(n, d=2)

Arguments

n
number of patterns to create
d
dimension of the circle problem

Value

  • Returns an object of class "mlbench.circle" with components
  • xinput values
  • classesfactor vector of length n with target classes

Examples

Run this code
# 2d example
p<-mlbench.circle(300,2)
plot(p)
#
# 3d example
p<-mlbench.circle(300,3)
plot(p)

Run the code above in your browser using DataCamp Workspace