object
chi_square_feature_selector
Selects categorical or discretized continuous features using Pearson or Yates chi-square, or uncorrected or bias-corrected Cramer V.
Availability:
logtalk_load(chi_square_feature_selector(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-10-07
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
check_option/1 check_options/1 check_selector/1 default_option/1 default_options/1 diagnostic/2 diagnostics/2 export_to_clauses/4 export_to_file/4 feature_scores/2 learn/2 learn/3 option/2 option/3 print_selector/1 selected_features/2 selector_options/2 valid_option/1 valid_options/1 valid_selector/1
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
score_columns/4
Scores prepared columns using sparse contingency counts.
Compilation flags:
staticTemplate:
score_columns(Columns,Criterion,ExpectedCountPolicy,Scores)Mode and number of proofs:
score_columns(+list(compound),+atom,+term,-list(pair)) - one_or_errorExceptions:
A nondegenerate table has an expectation below the requested minimum:
domain_error(chi_square_expected_count,Feature-expected(ObservedMinimum,RequiredMinimum))check_expected_counts/3
Checks the requested minimum expectation for nondegenerate tables.
Compilation flags:
staticTemplate:
check_expected_counts(Policy,Feature,Counts)Mode and number of proofs:
check_expected_counts(+term,+atomic,+compound) - one_or_errorExceptions:
A nondegenerate table has an expectation below the requested minimum:
domain_error(chi_square_expected_count,Feature-expected(ObservedMinimum,RequiredMinimum))Operators
(none)