이상치 확률 저장하기
estimators를 순회하며 이상치 확률을 생성하는 코드 블록을 작성해 앙상블을 계속 구축하세요.
추가 특성이 포함된 정규화된 apple 데이터셋이 제공됩니다.
이 연습은 강의의 일부입니다
Python으로 배우는 이상치 탐지
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
estimators = [IForest(n_estimators=50), IForest(n_estimators=100)]
shape = (len(apple), len(estimators))
probability_scores = np.empty(shape=shape)
for ____, ____ in ____:
# Fit the estimator
____