BIE

Import BIE

To import the BIE model, use:

>>> from TINTOlib.bie import BIE
>>> model = BIE()

Hyperparameters & Configuration

When creating the BIE class, some parameters can be modified. The parameters are:

Parameters

Description

Default value

Valid values

problem

The type of problem, this will define how the images are grouped.

‘supervised’

[‘supervised’, ‘unsupervised’, ‘regression’]

precision

Number of bits used to represent each feature.

32

[32, 64]

zoom

Multiplication factor that determines the size of the saved image relative to the original size. Values greater than 1 will increase the size of the saved image proportionally.

1

Positive integer

verbose

Show in terminal the execution.

False

[True, False]

Code example:

>>> model = BIE(problem='regression', precision=64, zoom=2)

All the parameters that aren’t expecifically setted will have their default values.

Functions

Function

Description

Output

saveHyperparameters(filename)

Allows to save the defined parameters ().

.pkl file with the configuration

loadHyperparameters(filename)

Load BIE configuration previously saved with saveHyperparameters(filename)

  • filename: .pkl file path

generateImages(data, folder)

Generate one image per instance and group by class in different folder

  • data: path of the CSV or pandas dataframe

  • folder: path of the folder to save results

Folders with synthetic images

Citation

Paper:

Code Repository: