lasso-net / lassonet

Feature selection in neural networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot import lassonet

RANCE-sama opened this issue · comments

commented

I have problem when i import lassonet in python3.7

File "", line 1
(current lambda=)
^ SyntaxError: invalid syntax

When I delete the “=” in

f"Features start to disappear at {current_lambda=:.3f}."

It works.

commented

Moreover, I guess

if hasattr(torch.Tensor, "scatter_reduce_"):

should be “if not”

Please use python >= 3.8. Python 3.7 was released 5 years ago. I don't think there is an error for scatter_reduce.

commented

Sorry I still don’t understand. If torch has attribute "scatter_reduce_", why define a new one?

I need a different one that uses scatter_reduce_.

commented

Thank you for your explanation (forgive my ignorance