# Machine Learning API's

**URL:** <https://discuss.elastic.co/t/machine-learning-apis/192107>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 24, 2019, 5:52pm UTC](https://discuss.elastic.co/t/machine-learning-apis/192107 "2019-07-24T17:52:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambarish\_Chitnis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ambarish_chitnis/32/45312_2.png) [@Ambarish\_Chitnis](https://discuss.elastic.co/u/Ambarish_Chitnis)\
**Post date:** [July 24, 2019, 5:52pm UTC](https://discuss.elastic.co/t/machine-learning-apis/192107/1 "2019-07-24T17:52:49Z")

</div>

I was looking at the ML API's and had a few questions:

1. How do I execute ML jobs on a specific schedule, for example once daily?

2. Is the flow to execute a ML job using the API's as follows: create a job, open the job, add the data feed, start the data feed? An example would really help.

3. How do I specify seasonality (meaning whether the data feed has seasonal data or not and whether it is weekly or monthly)?

4. Which specific unsupervised ML models are used under the hood?

---

<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:** [July 24, 2019, 8:16pm UTC](https://discuss.elastic.co/t/machine-learning-apis/192107/2 "2019-07-24T20:16:44Z")

</div>

> [@Ambarish\_Chitnis](#):
>
> - How do I execute ML jobs on a specific schedule, for example once daily?

If the ML job is running in "real-time" (on going in the background) - then the settings of the job's `bucket_span` and the datafeed's setting of `frequency` will define the "schedule".

> [@Ambarish\_Chitnis](#):
>
> - Is the flow to execute a ML job using the API's as follows: create a job, open the job, add the data feed, start the data feed? An example would really help.

Example: [ml\_job\_api\_example.sh · GitHub](https://gist.github.com/richcollier/25c9704e5df68d313c01383c5d0480ea)

> [@Ambarish\_Chitnis](#):
>
> - How do I specify seasonality (meaning whether the data feed has seasonal data or not and whether it is weekly or monthly)?

ML will automatically determine if and what kind of seasonality appears in your data

> [@Ambarish\_Chitnis](#):
>
> - Which specific unsupervised ML models are used under the hood?

It's a variety of techniques that you can learn about in these videos:

30 Min Meetup w/ Steve Dodson:

[![](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f50701bc99d2a6ac2c281e41f1c10c3ebcd11c98.jpeg "Machine Learning in the Elastic Stack") ](https://www.youtube.com/watch?v=n6xW6YWYgs0)

2017 ElasticON:

> **[Elasticsearch Machine Learning and Statistical Methods for Time Series Analysis](https://www.elastic.co/elasticon/conf/2017/sf/machine-learning-and-statistical-methods-for-time-series-analysis)**

2018 ElasticON:

> **[The Math Behind Elastic Machine Learning](https://www.elastic.co/elasticon/conf/2018/sf/the-math-behind-elastic-machine-learning)**

---

<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 21, 2019, 8:16pm UTC](https://discuss.elastic.co/t/machine-learning-apis/192107/3 "2019-08-21T20:16:57Z")

</div>

Closed on August 21, 2019, 8:16pm UTC

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