ValueError: Unknown label type: while implementing MLPClassifier

后端 未结 4 2059
盖世英雄少女心
盖世英雄少女心 2021-02-14 08:38

I have dataframe with columns Year, month, day,hour, minute, second, Daily_KWH. I need to predict Daily KWH using neural netowrk. Please let me know how to go about it



        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 09:28

    Instead of mlp.fit(X_train,y_train) use this mlp.fit(X_train,y_train.values)

提交回复
热议问题