pycaret으로 비정상을 탐지하는 빠른 코드 제조 가이드라인
from pycaret.anomaly import *
def preprocess()
return data, df_test, answer
data, df_test, answer = preprocess("train.csv")
# test = preprocess("test.csv")
anomaly_detector = setup(data, session_id=42, normalize_method='minmax')
취사선택
model = create_model('abod')
model = create_model('knn')
model = create_model('iforest')
accuracy = (results['Anomaly'] == answer).sum() / len(results)
print("Accuracy: {:.2f}".format(accuracy))