# ML model lifecycle

**URL:** <https://discuss.elastic.co/t/ml-model-lifecycle/246062>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [August 24, 2020, 7:22am UTC](https://discuss.elastic.co/t/ml-model-lifecycle/246062 "2020-08-24T07:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saraKM](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@saraKM](https://discuss.elastic.co/u/saraKM)\
**Post date:** [August 24, 2020, 7:22am UTC](https://discuss.elastic.co/t/ml-model-lifecycle/246062/1 "2020-08-24T07:22:23Z")

</div>

Hi,

If I have a job with both partition\_by and by\_field names defined, does that mean we have models created for all combinations of values for these two fields? How these models are managed (do we keep all of them or gradually remove those that are not seen anymore? ) Is there a way I can track how many models are created for a specific job?

Thanks,  
Sara

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [August 24, 2020, 12:56pm UTC](https://discuss.elastic.co/t/ml-model-lifecycle/246062/2 "2020-08-24T12:56:31Z")

</div>

Yes, they are created for every combination and Elastic ML takes care of pruning the models for entities that aren't seen anymore.

You can get a count of how many by\_fields and partition\_fields exist in the model by looking at the Counts tab for the job at the values of `total_by_field_count` and `total_partition_field_count`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/6/06407896d4b17a94342b72084372825a14ec8118.png)

---

<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:** [September 21, 2020, 12:56pm UTC](https://discuss.elastic.co/t/ml-model-lifecycle/246062/3 "2020-09-21T12:56:36Z")

</div>

Closed on September 21, 2020, 12:56pm UTC

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