# Is it possible to customize the machine learning algorithms?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [August 8, 2019, 9:05pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505 "2019-08-08T21:05:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rosho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rosho/32/51872_2.png) [@Rosho](https://discuss.elastic.co/u/Rosho)\
**Post date:** [August 8, 2019, 9:05pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/1 "2019-08-08T21:05:06Z")

</div>

Hi

Is it possible to customize the machine learning algorithms?  
I mean, is it possible to use my own algorithms?

Thnak you

---

<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 9, 2019, 10:28am UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/2 "2019-08-09T10:28:34Z")

</div>

If by "customize" you mean "write your own" - then certainly you don't need Elastic ML. Just interface with Elasticsearch via a client (like the python client) and implement any algorithm you want in python.

Elastic ML is really meant to help those that don't want to do that.

---

<div class="post-metadata">

**Author:** ![Rosho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rosho/32/51872_2.png) [@Rosho](https://discuss.elastic.co/u/Rosho)\
**Post date:** [August 16, 2019, 8:50pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/3 "2019-08-16T20:50:46Z")

</div>

1. Let's assume I interface via a client:  
Will I be able to do online/real time training (streamming data)?  
Can I upload my algorithm into Elastic? Or the trained ML model? I like Elastic's data visualization.

2. [https://www.elastic.co/fr/blog/elastic-stack-6-3-0-released](https://www.elastic.co/fr/blog/elastic-stack-6-3-0-released)  
What does **the X-Pack code is now open** mean?  
Can I see the scritps? Are they written in python? Where can I find the algorithms?

---

<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 16, 2019, 9:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/4 "2019-08-16T21:34:00Z")

</div>

1. You would need to manage your own data streaming and results serialization. You would need to design your own visualizations using Kibana components or otherwise. You would not be able to use the Elastic ML ones.

2. The code is C++ and is open/visible on GitHub. While the code is "open" is is not free, it is licenced. Making the code visible was done in v6.3...prior to that the code was closed/hidden.

---

<div class="post-metadata">

**Author:** ![Rosho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rosho/32/51872_2.png) [@Rosho](https://discuss.elastic.co/u/Rosho)\
**Post date:** [August 19, 2019, 2:30pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/5 "2019-08-19T14:30:12Z")

</div>

I cannot find the code. I only see java.

> **[elastic/elasticsearch](https://github.com/elastic/elasticsearch/tree/master/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml)**
>
> Open Source, Distributed, RESTful Search Engine. Contribute to elastic/elasticsearch development by creating an account on GitHub.

---

<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 19, 2019, 7:37pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/6 "2019-08-19T19:37:21Z")

</div>

Just Google "elastic ML source code" it'll be one of the first results

---

<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 16, 2019, 7:37pm UTC](https://discuss.elastic.co/t/is-it-possible-to-customize-the-machine-learning-algorithms/194505/7 "2019-09-16T19:37:23Z")

</div>

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