SampleInstances: Sample instances (without replacement) from the set of...

Description Usage Arguments Value Author(s)

View source: R/SampleInstances.R

Description

Returns a randomly sampled subset of instances, so that repetitions do not occur. If the number of available instances in instance.list is smaller than N, it will return a vector containing less than N indices (it can also return an empty vector, if all instances have already been sampled)

Usage

1
SampleInstances(instance.list, N, sampled.instances = numeric(0))

Arguments

instance.list

list containing all available tuning instances.

N

number of instances to sample.

sampled.instances

vector of indices of all instances that have already been sampled.

Value

a vector (of size between zero and N) of instance indices

Author(s)

Felipe Campelo (fcampelo@ufmg.br), Athila Trindade (rochaathila@gmail.com)


fcampelo/MetaTuner documentation built on May 29, 2019, 9:14 a.m.