Water Dam Precipitation Prediction Using Public Data AI Competition

Algorithm | Structured | Regression | Rainfall forecast | MAE/CSI

  • moneyIcon Prize : Total 1,100만원
  • 582 Users Completed

 

Baseline Code TEST 부분에서 문제가 발생합니다.

비회원
2020.10.21 16:24 7,624 Views

pred = model.predict(X_test) 실행 시 다음과 같은 오류가 확인됩니다.


TypeError: Value passed to parameter 'input' has DataType uint8 not in list of allowed values: float16, bfloat16, float32, float64
Login Required
0 / 1000
DACON.Dobby
2020.10.21 16:36

제공되는 데이터의 타입은 uint8로 학습 및 추론을 하기위해서는 float으로 형변환을 해줘야합니다.

X_test = X_test.astype('float32')

비회원
2020.10.21 16:37

감사합니다~