nz.co.jedsimson.lgp.core.environment.dataset

Package nz.co.jedsimson.lgp.core.environment.dataset

Types

CsvDatasetLoader

class CsvDatasetLoader<out TData> : DatasetLoader<TData>

Loads a collection of samples and their target values from a CSV file.

Dataset

class Dataset<out TData>

A basic data set composed of a vector of input Samples and a collection of output Targets.

DatasetLoader

interface DatasetLoader<out TData> : ComponentLoader<Dataset<TData>>

An extended ComponentLoader that loads a Dataset.

Feature

open class Feature<out TData>

A feature of a sample in some data set.

NominalFeature

class NominalFeature<out TData> : Feature<TData>

ParsingFunctions

object ParsingFunctions

Provides a collection of parsing functions that can be used by a CsvDatasetLoader instance.

Sample

class Sample<out TData>

A sample in a Dataset made up of a collection of Features.

SequenceGenerator

class SequenceGenerator

Can generate a sequence of values evenly spread between a range.

Target

interface Target<out TData>

A target output in a Dataset.

Targets

object Targets

A collection of built-in Target implementations

UniformlyDistributedGenerator

class UniformlyDistributedGenerator

Can generate a number of uniformly distributed values.

Exceptions

InvalidCsvFileException

class InvalidCsvFileException : Exception

Exception given when a CSV file that does not match the criteria the system expects is given to a CsvDatasetLoader instance.

InvalidNumberOfSamplesException

class InvalidNumberOfSamplesException : Exception

Type Aliases

Header

typealias Header = Array<String>

Row

typealias Row = Array<String>