morpheus.models.dfencoder.dataframe.EncoderDataFrame
- class EncoderDataFrame(*args, **kwargs)[source]
Bases:
pandas.DataFrame
Methods
__call__
(*args, **kwargs)Call self as a function. swap
([likelihood])Performs random swapping of data. - swap(likelihood=0.15)[source]
Performs random swapping of data.
- Parameters
- likelihood
The probability of a value being randomly replaced with a value from a different row. By default .15
- Returns
- pandas.DataFrame
A copy of the dataframe with equal size.