HALF.Oracle#

HALF.Oracle.SimulatedOracle#

class HALF.Oracle.SimulatedOracle.SimulatedOracle[source]#

Bases: IOracle

Fake Oracle when the dataset is already labeled and we are working in an analysis context instead of real world application

__init__(dataset=None)[source]#

Initialize Oracle

Parameters:

dataset (Dataset, optional) – Dataset containing information required to simulate the oracle. Defaults to None.

query(sub_ulb_ds)[source]#

Labels the dataset

Parameters:

sub_ulb_ds (Dataset) – The unlabeled dataset to be labeled by the Oracle

Returns:

The labeled dataset

Return type:

Dataset