Skip to content

MultiTaskLassoCV got an unexpected keyword argument 'normalize' #47

Open

Description

@anhtvan

Hi, I'm getting an issue when trying to run this code. As far as I know the data is correclty formatted. The type error relates to some LassCV backend - could someone help me please?

I am running it on both python 3.7.9 and 3.11.2, so hopefully it's not a python issue.

image (3)

Activity

  1. sak-18 commented on Mar 2, 2023

    @sak-18

    Same issue. Found any root cause anhtvan?

  2. sak-18 commented on Mar 2, 2023

    @sak-18

    https://scikit-learn.org/1.1/modules/generated/sklearn.linear_model.MultiTaskLassoCV.html?highlight=multitasklassocv Looking at this doc seems like normalize argument was deprecated and later removed altogether from scikit-learn 1.2. Downgrading sci-kit-learn should do, I hope for now.

  3. tom-flamelit commented on Apr 22, 2023

    @tom-flamelit

    Saketh Vishnubhatla (@sak-18) which version of scikit-learn do you recommend?

  4. samuelgarca commented on Jun 20, 2023

    @samuelgarca

    Has anyone found a solution, I tried to revert Scikit-learn to version 1.0, but I was unsuccessful.

  5. VanAltrades commented on Sep 12, 2023

    @VanAltrades

    Samuel Garcia (@samuelgarca)
    I just ran into this unexpected 'normalize' argument as well.

    I cannot confirm the root cause, but I was able to solve this error by modifying the _MTLassoCV_MatchSpace function.
    I accessed the function via this path:

    path to matchspace

    All I did was comment out the lines containing normalize=normalize and replace them with the same line sans normalize=normalize.

    comment out normalize

    Since this modification, I have been able to run SparseSC.fit_fast without errors.

    I'm not knowledgeable enough about versioning and compatibility to explain the root cause, but hopefully, this tip will help you get the package operational.

    Jack

  6. MJeremy2017 commented on Nov 15, 2023

    @MJeremy2017

    I think the sklearn dependency is obsolete. In the newer version this parameter is already removed

  7. franc703 commented on Jul 25, 2024

    @franc703

    I have done the same as VanAltrades (@VanAltrades) and run the code without any problems. Make sure you normalize the data before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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