[Python] Python: 'StandardScaler' object has no attribute '_validate_data'

Discussão em 'Python' iniciado por Stack, Outubro 6, 2024.

  1. Stack

    Stack Membro Participativo

    I recently updated my sklearn. However, since the upgrade I'm getting the error "'StandardScaler' object has no attribute '_validate_data'". The following is a snippet of the code:

    Xs = pd.DataFrame([[10,20], [20,30], [30,40], [40,50]])
    scalerx = preprocessing.StandardScaler()
    scalerx.fit(Xs)

    Continue reading...

Compartilhe esta Página