Skip to content

A question about SWING-LASSO #29

@aychoi-mibr

Description

@aychoi-mibr

I would like to compare the results of SWING-RF and SWING-LASSO for my data.
However, I encountered an error with SWING-LASSO as shown bellow. Could you please check and recommend how to fix the error?
Best,

Ahyoung choi

sg.optimize_params()
Traceback (most recent call last):
File "", line 1, in
File "/Users/aychoi/Library/CloudStorage/OneDrive-GCCORP/Project/00.Analysis/utils/SWING-RF/SWING/Swing/Swing.py", line 380, in optimize_params
window.initialize_params(alpha=self.alpha)
File "/Users/aychoi/Library/CloudStorage/OneDrive-GCCORP/Project/00.Analysis/utils/SWING-RF/SWING/Swing/LassoWindow.py", line 158, in initialize_params
self.alpha, self.cv_table = self.cv_select_alpha()
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aychoi/Library/CloudStorage/OneDrive-GCCORP/Project/00.Analysis/utils/SWING-RF/SWING/Swing/LassoWindow.py", line 275, in cv_select_alpha
# Try set the null alpha value using default parameters.
^^^^^^^^^^^^^^^^^^^^^
File "/Users/aychoi/Library/CloudStorage/OneDrive-GCCORP/Project/00.Analysis/utils/SWING-RF/SWING/Swing/LassoWindow.py", line 219, in get_null_alpha
if np.count_nonzero(zero_alpha_coeffs) < max_edges:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Lasso does not converge with alpha = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions