# Rewards by curiosity module

**URL:** <https://discuss.ray.io/t/rewards-by-curiosity-module/6135>\
**Category:** RLlib\
**Created:** [May 14, 2022, 2:18am UTC](https://discuss.ray.io/t/rewards-by-curiosity-module/6135 "2022-05-14T02:18:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naren\_dhyani](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/naren_dhyani/32/2529_2.png) [@naren\_dhyani](https://discuss.ray.io/u/naren_dhyani)\
**Post date:** [May 14, 2022, 2:18am UTC](https://discuss.ray.io/t/rewards-by-curiosity-module/6135/1 "2022-05-14T02:18:27Z")

</div>

Hi I am using the curiosity module with the PPO algorithm and wanted to know if there is a way I can log the rewards generated by the curiosity module only rather than the total reward?

It would be a great help to understand the effect of curiosity module.

---

<div class="post-metadata">

**Author:** ![Lars\_Simon\_Zehnder](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/lars_simon_zehnder/32/1185_2.png) [@Lars\_Simon\_Zehnder](https://discuss.ray.io/u/Lars_Simon_Zehnder)\
**Post date:** [May 14, 2022, 7:38pm UTC](https://discuss.ray.io/t/rewards-by-curiosity-module/6135/2 "2022-05-14T19:38:00Z")

</div>

@naren_dhyani , there is. You could write a custom metrics callback that takes care of this. See for a use case [`ray/rllib/examples/custom_metrics_and_callbacks.py`](https://github.com/ray-project/ray/blob/master/rllib/examples/custom_metrics_and_callbacks.py).
