object
lasso_feature_selector
Regression feature selection by maximum absolute Lasso coefficient per original feature, with optional deterministic holdout regularization search. Search requires two usable rows.
logtalk_load(lasso_feature_selector(loader))static, context_switching_callsPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
usable_examples/3
Counts known numeric targets after shared dataset validation.
staticusable_examples(Examples,Dataset,Count)usable_examples(+list(compound),+object_identifier,-non_negative_integer) - one_or_errortype_error(number,Target)domain_error(non_empty_examples,Dataset)count_numeric_targets/2
Counts numeric targets while skipping unbound targets.
staticcount_numeric_targets(Examples,Count)count_numeric_targets(+list(compound),-non_negative_integer) - one_or_errortype_error(number,Target)check_search_count/1
Requires at least two known numeric targets for holdout search.
staticcheck_search_count(Count)check_search_count(+non_negative_integer) - one_or_errordomain_error(lasso_search_examples,Count)group_scores/3
Consumes exact encoder blocks and returns original feature scores in encoder order.
staticgroup_scores(Encoders,Weights,Scores)group_scores(+list(compound),+list(float),-list(pair)) - zero_or_oneencoder_block/3
Returns an encoder name and its number of coefficient columns.
staticencoder_block(Encoder,Feature,Count)encoder_block(+compound,-atom,-positive_integer) - zero_or_oneblock_maximum/5
Consumes a coefficient block and computes its maximum absolute weight.
staticblock_maximum(Count,Weights,Maximum0,Maximum,Remaining)block_maximum(+non_negative_integer,+list(float),+float,-float,-list(float)) - zero_or_oneselect_active/3
Applies the selection strategy only to groups strictly above the coefficient cutoff.
staticselect_active(Scores,Options,Selected)select_active(+list(pair),+list(compound),-list(atom)) - oneactive_scores/3
Retains scores strictly above the coefficient cutoff.
staticactive_scores(Scores,Cutoff,Active)active_scores(+list(pair),+number,-list(pair)) - onemodel_diagnostics/8
Builds counts, effective options, aggregation metadata, and complete nested learner diagnostics.
staticmodel_diagnostics(Regressor,Scores,Selected,OriginalCount,UsableCount,Options,SearchResult,Diagnostics)model_diagnostics(+compound,+list(pair),+list(atom),+positive_integer,+positive_integer,+list(compound),+term,-list(compound)) - onevalid_model/1
Checks the retained regressor and recomputes scores, selection, and metadata without binding a partial input.
staticvalid_model(Selector)valid_model(+ground) - zero_or_onedomain_error(regressor,Regressor)domain_error(option,Option)evaluation_error(float_overflow)type_error(list,Options)type_error(compound,Option)store_regressor_options/3
Replaces the first nested options occurrence with the learner effective options, preserving later occurrences.
staticstore_regressor_options(Options,RegressorOptions,Stored)store_regressor_options(+list(compound),+list(compound),-list(compound)) - onecomplete_regressor_options/2
Checks that each learner default option indicator has an effective value.
staticcomplete_regressor_options(Defaults,Options)complete_regressor_options(+list(compound),+list(compound)) - zero_or_onevalid_regularization_grid/1
Checks an explicit penalty list or an increasing bounded linear grid with at least two candidates.
staticvalid_regularization_grid(Grid)valid_regularization_grid(@term) - zero_or_oneregularization_grid_values/2
Expands a validated linear grid to floating-point penalties or preserves an explicit penalty list.
staticregularization_grid_values(Grid,Values)regularization_grid_values(+term,-list(number)) - one_or_errorevaluation_error(float_overflow)Operators
(none)