ImportedDataset

class persalys.ImportedDataset(*args)

Class to import file data.

ImportedDataset()

ImportedDataset(fileName, inputColumns, outputColumns)

Parameters:
fileNamestr

Path to the file to import data from

inputColumnssequence of int

Columns of the input variables

outputColumnssequence of int, optional

Columns of the output variables

Methods

getClassName()

Accessor to the object's name.

getFileName()

File name accessor.

getInputColumns()

Columns of the input variables accessor.

getName()

Accessor to the object's name.

getOutputColumns()

Columns of the output variables accessor.

getSampleFromFile()

Sample from the file accessor.

hasName()

Test if the object is named.

setColumns(inputColumns, outputColumns)

Columns of the variables accessor.

setFileName(*args)

File name accessor.

setName(name)

Accessor to the object's name.

setNames(inputNames, outputNames)

Changes the description of the sample

setSampleFromFile(sample)

Sample from the file accessor.

__init__(*args)
getClassName()

Accessor to the object’s name.

Returns:
class_namestr

The object class name (object.__class__.__name__).

getFileName()

File name accessor.

Returns:
fileNamestr

Name of the file containing data

getInputColumns()

Columns of the input variables accessor.

Returns:
columnsopenturns.Indices

Columns of the input variables

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

getOutputColumns()

Columns of the output variables accessor.

Returns:
columnsopenturns.Indices

Columns of the output variables

getSampleFromFile()

Sample from the file accessor.

Returns:
sampleopenturns.Sample

Sample from the file

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

setColumns(inputColumns, outputColumns)

Columns of the variables accessor.

Parameters:
inputColumnssequence of int

Columns of the input variables

outputColumnssequence of int, optional

Columns of the output variables

setFileName(*args)

File name accessor.

Parameters:
fileNamestr

Name of the file containing data

Returns:
validArgbool

True if the columns could be kept, False if they have been reset to default values

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

setNames(inputNames, outputNames)

Changes the description of the sample

Parameters:
inputNamesopenturns.Description

Names of the input variables

outputNamesopenturns.Description

Names of the output variables

setSampleFromFile(sample)

Sample from the file accessor.

Parameters:
sampleopenturns.Sample

Sample from the file