Read, generate and transform sets#

Read data#

read_datasets(filename)

Read an input dataset file, parsing the file and returning a numpy array.

ReadDatasetsError(error_code)

Custom exception class for an error returned by the read_datasets() function.

get_dataset(filename, /, **kwargs)

Return dataset provided by moocore as a NumPy array.

get_dataset_path(filename, /, *[, force, ...])

Return path to a dataset provided with moocore.

Transform data#

normalise(data, /[, to_range, lower, upper, ...])

Normalise points per coordinate to a range, e.g., to_range = [1,2], where the minimum value will correspond to 1 and the maximum to 2.

apply_within_sets(x, sets, func, **kwargs)

Split x by row according to sets and apply func to each sub-array.

Generate data#

generate_ndset(n, d, /, method, *[, seed, ...])

Generate a random set of n mutually nondominated points of dimension d with the shape defined by method.