MCPcopy Create free account
hub / github.com/christopherjenness/ML-lib / best_subset

Function best_subset

ML/modelselection.py:7–98  ·  view source on GitHub ↗

Function for selecting a subset of parameters from X, which minimize the in sample error measure. Algorithm acts in a greedy manner, either adding one parameter at a time (forward), or removing one at a time (backward). Args: X (np.ndarray): Training data of shape[n_sa

(X, y, model, parameters, error_measure,
                direction='forward')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

fitMethod · 0.45
predictMethod · 0.45

Tested by

no test coverage detected