Skip to content

class aicafe.Case

The class for a case in a dataset. Most of the procedure of processing the data of a case is done in this class.

Attributes:

Name Type Description
path str

The path of the case, i.e., the input of __init__().

name_case str

The name of the case, normally like 0_XX_U according to iCafe's naming convention. 0 denotes the age (0 for unknown age), 'XX' denotes the id, and U denotes the gender (M, F, or U for unknown gender)

name_dataset str

The name of the dataset that the case belongs to, e.g., CROP.

__init__(self, path)

init.

Parameters:

Name Type Description Default
path str

The path of the case to process, e.g., iCafe/results/CROP/0_XX_U.

required

Raises:

Type Description
FileNotFoundError

If input path does not exists or is not a directory.

Back to top