# Machine Learning Lab 3: I am getting slightly different results

**URL:** <https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634>\
**Category:** Elastic Training\
**Created:** [November 14, 2017, 9:16pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634 "2017-11-14T21:16:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kolobok-007](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kolobok-007](https://discuss.elastic.co/u/kolobok-007)\
**Post date:** [November 14, 2017, 9:16pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/1 "2017-11-14T21:16:28Z")

</div>

I ran the machine learning job with all of the detectors configured and correct bucket\_span selected but I am getting different results from what's in the answers. For question 10, they are quite a bit different. Below is what I see. Any suggestions of what can be the issue?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/4/949352ace47a16ea8e38798340114edc9fcf3149.png)

---

<div class="post-metadata">

**Author:** ![nzamecnik](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nzamecnik](https://discuss.elastic.co/u/nzamecnik)\
**Post date:** [November 15, 2017, 4:39am UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/2 "2017-11-15T04:39:33Z")

</div>

Could you provide the job you're inputing for this exercise?

---

<div class="post-metadata">

**Author:** ![kolobok-007](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kolobok-007](https://discuss.elastic.co/u/kolobok-007)\
**Post date:** [November 15, 2017, 2:36pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/3 "2017-11-15T14:36:24Z")

</div>

Here is JSON for the machine learning job from question 10. Is that what you were looking for?

> {  
> "job\_id": "second-advanced-job",  
> "job\_type": "anomaly\_detector",  
> "job\_version": "5.6.4",  
> "description": "",  
> "create\_time": 1510693262890,  
> "finished\_time": 1510693295263,  
> "analysis\_config": {  
> "bucket\_span": "1h",  
> "detectors": [  
> {  
> "detector\_description": "mean(CPUUtilization) by "instance.keyword"",  
> "function": "mean",  
> "field\_name": "CPUUtilization",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 0  
> },  
> {  
> "detector\_description": "Awesome description",  
> "function": "mean",  
> "field\_name": "DiskReadBytes",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 1  
> },  
> {  
> "detector\_description": "mean(DiskReadOps) by "instance.keyword"",  
> "function": "mean",  
> "field\_name": "DiskReadOps",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 2  
> },  
> {  
> "detector\_description": "mean(DiskWriteBytes) by "instance.keyword"",  
> "function": "mean",  
> "field\_name": "DiskWriteBytes",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 3  
> },  
> {  
> "detector\_description": "mean(DiskWriteOps) by "instance.keyword"",  
> "function": "mean",  
> "field\_name": "DiskWriteOps",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 4  
> },  
> {  
> "detector\_description": "mean(NetworkOut) by "instance.keyword"",  
> "function": "mean",  
> "field\_name": "NetworkOut",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 5  
> },  
> {  
> "detector\_description": "mean(NetworkIn) by "instance.keyword"",  
> "function": "mean",  
> "field\_name": "NetworkIn",  
> "by\_field\_name": "instance.keyword",  
> "detector\_rules": ,  
> "detector\_index": 6  
> }  
> ],  
> "influencers": [  
> "instance.keyword",  
> "region.keyword"  
> ]  
> },  
> "data\_description": {  
> "time\_field": "@timestamp",  
> "time\_format": "epoch\_ms"  
> },  
> "model\_snapshot\_retention\_days": 1,  
> "model\_snapshot\_id": "1510693293",  
> "results\_index\_name": "custom-second-advanced-job",  
> "data\_counts": {  
> "job\_id": "second-advanced-job",  
> "processed\_record\_count": 19846,  
> "processed\_field\_count": 177967,  
> "input\_bytes": 5264594,  
> "input\_field\_count": 177967,  
> "invalid\_date\_count": 0,  
> "missing\_field\_count": 647,  
> "out\_of\_order\_timestamp\_count": 0,  
> "empty\_bucket\_count": 0,  
> "sparse\_bucket\_count": 0,  
> "bucket\_count": 349,  
> "earliest\_record\_timestamp": 1445990400000,  
> "latest\_record\_timestamp": 1447248300000,  
> "last\_data\_time": 1510693292277,  
> "input\_record\_count": 19846  
> },  
> "model\_size\_stats": {  
> "job\_id": "second-advanced-job",  
> "result\_type": "model\_size\_stats",  
> "model\_bytes": 1132730,  
> "total\_by\_field\_count": 37,  
> "total\_over\_field\_count": 0,  
> "total\_partition\_field\_count": 8,  
> "bucket\_allocation\_failures\_count": 0,  
> "memory\_status": "ok",  
> "log\_time": 1510693292000,  
> "timestamp": 1447243200000  
> },  
> "datafeed\_config": {  
> "datafeed\_id": "datafeed-second-advanced-job",  
> "job\_id": "second-advanced-job",  
> "query\_delay": "60s",  
> "frequency": "600s",  
> "indices": [  
> "cloudwatch-\*"  
> ],  
> "types": [  
> "usage"  
> ],  
> "query": {  
> "term": {  
> "region.keyword": {  
> "value": "eu-central-1",  
> "boost": 1  
> }  
> }  
> },  
> "scroll\_size": 1000,  
> "chunking\_config": {  
> "mode": "auto"  
> },  
> "state": "stopped"  
> },  
> "state": "closed"  
> }

---

<div class="post-metadata">

**Author:** ![nzamecnik](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nzamecnik](https://discuss.elastic.co/u/nzamecnik)\
**Post date:** [November 17, 2017, 10:36pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/4 "2017-11-17T22:36:30Z")

</div>

I've been looking into this and can't quite figure it out yet. I'm going to continue to look. Double check everything is configured exactaly as the instructions say - I can't seem to reproduce.

---

<div class="post-metadata">

**Author:** ![kolobok-007](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kolobok-007](https://discuss.elastic.co/u/kolobok-007)\
**Post date:** [November 21, 2017, 4:11pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/5 "2017-11-21T16:11:15Z")

</div>

It seems like all of my setting are correct. Could it be that if my computer is not powerful enough, machine learning uses some more simplified versions of calculations which can cause different results?

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [November 22, 2017, 8:11am UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/6 "2017-11-22T08:11:04Z")

</div>

What locale + time zone are you running? Perhaps there is an offset

---

<div class="post-metadata">

**Author:** ![kolobok-007](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kolobok-007](https://discuss.elastic.co/u/kolobok-007)\
**Post date:** [November 22, 2017, 3:38pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/7 "2017-11-22T15:38:35Z")

</div>

I am in USA, Eastern Time.

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [November 24, 2017, 12:24pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/8 "2017-11-24T12:24:47Z")

</div>

That isn't the issue then, 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:** [December 24, 2017, 12:25pm UTC](https://discuss.elastic.co/t/machine-learning-lab-3-i-am-getting-slightly-different-results/107634/9 "2017-12-24T12:25:07Z")

</div>

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