BaseReader

class pyprophet.io._base.BaseReader(config: BaseIOConfig)[source]

Bases: ABC

Abstract base class for implementing readers that load data from different sources (OSW, Parquet, etc.).

__eq__(other)

Return self==value.

__hash__ = None
__init__(config: BaseIOConfig)[source]

Initialize the reader with a given configuration.

Parameters:

config (BaseIOConfig) – Configuration object containing input details, and module specific config for params for reading.

__repr__()

Return repr(self).

__weakref__

list of weak references to the object (if defined)

_finalize_feature_table(df, ss_main_score)[source]

Finalize the feature table for semi-supervised scoring.

abstract read()[source]

Abstract method to be implemented by subclasses to read data from a specific format.