开发者

Pycaret throwing KeyError: 'UNSUPERVISED_DUMMY_TARGET' while running unsupervised anomaly detection on databricks notebook

开发者 https://www.devze.com 2022-12-07 20:07 出处:网络
Error Screenshot I am trying to run setup function in pycaret==2.3.5 on python version 3.8.10 on databricks notebook and its showing the above error.

Error Screenshot I am trying to run setup function in pycaret==2.3.5 on python version 3.8.10 on databricks notebook and its showing the above error.

The same code is running fine on the local system but not on databricks. Can anyone help on this?

I tried changing the versions of pycaret and python but nothing worked.

Code used:

import pandas as pd
from pycaret.anomaly import *

df = pd.read_csv("global_master_data.csv")


df_copy = df.iloc[:,7:37].copy()
df_copy  = df_copy.drop(['Better For You Claim Text','First Selling OC','Manuf. Type','Privat开发者_如何学JAVAe Label Brand - Desc'],axis = 1)


exp_name = setup(data = df_copy, silent = True)
0

精彩评论

暂无评论...
验证码 换一张
取 消