lux.processor.Validator.Validator

class lux.processor.Validator.Validator[source]

Contains methods for validating lux.Clause objects in the intent.

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__() Initialize self.
validate_intent(intent, ldf[, suppress_warning]) Validates input specifications from the user to find inconsistencies and errors.
static validate_intent(intent: List[lux.vis.Clause.Clause], ldf: lux.core.frame.LuxDataFrame, suppress_warning=False)[source]

Validates input specifications from the user to find inconsistencies and errors.

Parameters:ldf (lux.core.frame) – LuxDataFrame with underspecified intent.
Returns:True if the intent passed in is valid, False otherwise.
Return type:Boolean
Raises:ValueError – Ensures input intent are consistent with DataFrame content.