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_calls
Remarks:
(none)

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:
static
Template:
score_columns(Columns,Criterion,ExpectedCountPolicy,Scores)
Mode and number of proofs:
score_columns(+list(compound),+atom,+term,-list(pair)) - one_or_error
Exceptions:
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:
static
Template:
check_expected_counts(Policy,Feature,Counts)
Mode and number of proofs:
check_expected_counts(+term,+atomic,+compound) - one_or_error
Exceptions:
A nondegenerate table has an expectation below the requested minimum:
domain_error(chi_square_expected_count,Feature-expected(ObservedMinimum,RequiredMinimum))

Operators

(none)