# Getting NaN values or Inf when evaluating the PCE model

**URL:** <https://uqworld.org/t/getting-nan-values-or-inf-when-evaluating-the-pce-model/1812>\
**Category:** Community Q&A and How To\
**Created:** [March 5, 2023, 9:22am UTC](https://uqworld.org/t/getting-nan-values-or-inf-when-evaluating-the-pce-model/1812 "2023-03-05T09:22:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![YuanXi\_Wu](https://uqworld.org/user_avatar/uqworld.org/yuanxi_wu/32/1156_2.png) [@YuanXi\_Wu](https://uqworld.org/u/YuanXi_Wu)\
**Post date:** [April 2, 2023, 6:19am UTC](https://uqworld.org/t/getting-nan-values-or-inf-when-evaluating-the-pce-model/1812/6 "2023-04-02T06:19:05Z")

</div>

Dear @xujia ,

Sorry for the late reply. After debugging, I think the problem lies in that the input samples contain NaN or Inf. This is caused by a small bug in the kernel inference in uqlab and has already been fixed in [this post](https://uqworld.org/t/something-wrong-with-kernel-density-estimation-of-uqlab/1815/10) by @styfen.schaer.

Thanks for your attention.

Best regards,  
Yuanxi Wu

---

_[View the full topic](https://uqworld.org/t/getting-nan-values-or-inf-when-evaluating-the-pce-model/1812)._
