yobx.sklearn.feature_selection.select_fpr#
- yobx.sklearn.feature_selection.select_fpr.sklearn_select_fpr(g: GraphBuilderExtendedProtocol, sts: Dict, outputs: List[str], estimator: SelectFpr, X: str, name: str = 'select_fpr') str[source]#
Converts a
sklearn.feature_selection.SelectFprinto ONNX.After fitting, the transformer keeps the features whose p-value is below the false positive rate threshold
alpha. The selected column indices are stored inestimator.get_support(indices=True)and are fixed constants at conversion time, so the ONNX graph contains a singleGathernode that selects those columns from the input matrix:X ──Gather(axis=1, indices)──► output
- Parameters:
g – the graph builder to add nodes to
sts – shapes defined by scikit-learn
estimator – a fitted
SelectFproutputs – desired output names
X – input name (shape
(N, F))name – prefix name for the added nodes
- Returns:
output name