# Is there a way calculate metrics like ROC AUC and r2\_score against elastic-search index?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-calculate-metrics-like-roc-auc-and-r2-score-against-elastic-search-index/190110>\
**Category:** Kibana\
**Created:** [July 11, 2019, 8:55pm UTC](https://discuss.elastic.co/t/is-there-a-way-calculate-metrics-like-roc-auc-and-r2-score-against-elastic-search-index/190110 "2019-07-11T20:55:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jt12](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jt12](https://discuss.elastic.co/u/jt12)\
**Post date:** [July 11, 2019, 8:55pm UTC](https://discuss.elastic.co/t/is-there-a-way-calculate-metrics-like-roc-auc-and-r2-score-against-elastic-search-index/190110/1 "2019-07-11T20:55:14Z")

</div>

I am working on pipeline within elastic-search, and want to calculate ROC\_AUC and R2 scores per interval/bucket and visualize it within Kibana. What is the best way to proceed with this task? Is it possible to do it within elastic or should I do the calculations outside and record the score?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 12, 2019, 6:11pm UTC](https://discuss.elastic.co/t/is-there-a-way-calculate-metrics-like-roc-auc-and-r2-score-against-elastic-search-index/190110/2 "2019-07-12T18:11:08Z")

</div>

I'm not an expert on statistics, but I don't think this is possible out of the box.

I'd open an enhancement request here and describe your use-case [https://github.com/elastic/elasticsearch/issues/new](https://github.com/elastic/elasticsearch/issues/new)

---

<div class="post-metadata">

**Author:** ![jt12](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jt12](https://discuss.elastic.co/u/jt12)\
**Post date:** [July 16, 2019, 3:19pm UTC](https://discuss.elastic.co/t/is-there-a-way-calculate-metrics-like-roc-auc-and-r2-score-against-elastic-search-index/190110/3 "2019-07-16T15:19:13Z")

</div>

> [@thomasneirynck](#):
>
> don't think this is possible out of the box.
> 
> I'd open an enhancement request he

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 13, 2019, 3:28pm UTC](https://discuss.elastic.co/t/is-there-a-way-calculate-metrics-like-roc-auc-and-r2-score-against-elastic-search-index/190110/4 "2019-08-13T15:28:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
