Module markov.api.features.missing_value_handling
Classes
class IgnoreRowMissingDataAStrategy (name='IgnoreRow')
-
Ignore a given row where values are missing
Ignore the row with missing data_set while processing.
Args
name ():
Ancestors
- MissingValueHandlingStrategy
- abc.ABC
Inherited members
class MissingValueHandlingStrategy (name: str)
-
Define strategy to handle Missing values from a column
Name of the strategy.
Args
name
:str
- Strategy Name
Ancestors
- abc.ABC
Subclasses
- IgnoreRowMissingDataAStrategy
- ReplaceWithMeanMissingDataStrategy
- ReplaceWithMedianMissingDataStrategy
- ReplaceWithUDVMissingValueStrategy
Instance variables
prop name
Methods
def apply(self, data_segment: DataSegment, **kwargs) ‑> DataSegment
-
Apply this strategy to the given data_set segment.
Args
data_segment
:DataSegment
- Apply this strategy to specific DataSegment.
**kwargs ():
Returns
DataSegment with strategy applied
class ReplaceWithMeanMissingDataStrategy (name='ReplaceWithMean')
-
Replace it with mean when data_set is missing for a specific column
Name of the strategy.
Args
name
:str
- Strategy Name
Ancestors
- MissingValueHandlingStrategy
- abc.ABC
Inherited members
class ReplaceWithMedianMissingDataStrategy (name='ReplaceWithMedian')
-
Replace with Median when data_set for specific feature in a record in missing
Name of the strategy.
Args
name
:str
- Strategy Name
Ancestors
- MissingValueHandlingStrategy
- abc.ABC
Inherited members
class ReplaceWithUDVMissingValueStrategy (name='ReplaceWithCustomMapper')
-
Replace missing value with a user defined value
Name of the strategy.
Args
name
:str
- Strategy Name
Ancestors
- MissingValueHandlingStrategy
- abc.ABC
Inherited members