causal_agent.validate_method

causal_agent.validate_method(method_info, dataset_analysis, variables)[source]

Validate the selected causal method against dataset characteristics.

Parameters:
  • method_info (Dict[str, Any]) – Information about the selected method from decision_tree

  • dataset_analysis (Dict[str, Any]) – Dataset analysis results from dataset_analyzer

  • variables (Dict[str, Any]) – Identified variables from query_interpreter

Returns:

  • valid: Boolean indicating if method is valid

  • concerns: List of concerns/issues with the selected method

  • alternative_suggestions: Alternative methods if the selected method is problematic

  • recommended_method: Updated method recommendation if issues are found

Return type:

Dict with validation results