simuation result of IP different with hls_model.predict

10 views
Skip to first unread message

Feng Gao

unread,
Oct 9, 2024, 10:26:00 AM10/9/24
to hls4ml help
Dear all,

This is Feng from ULB,belgium. 

But i met a problem when i simulate it using vivado. the prediction result is really bad. the detail is :
  • The backend : vivado 2018.3
  • The ML model: 1layer MLP.
  • The configuration i change a bit:  change the input precision from ap_fix<16,6> to ap_fix<8,8> because my data is integer smaller than 128. the left precision is changed to ap_fixed<16,8>
  • the accuracy of y_hls( y_hls = hls_model.predict(X_test)) is 92%,
  • then i simulate the result of the IP using same testdata, but the result show the  accuracy is only ~51%
I will really appreciate for your help.

Best regards,
Feng


Reply all
Reply to author
Forward
0 new messages