Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Adding TDD to false positives with test case to validate if model can… #124

Merged
merged 1 commit into from
May 23, 2019

Conversation

zak-hassan
Copy link
Contributor

@zak-hassan zak-hassan commented May 10, 2019

This PR is work in progress and shall be used to start a discussion on how we can implement this test case to validate our assumptions.

Description

This PR contains a unit test to validate if the model can learn from false positives. We are simulating the scenario of a human in the loop providing feedback that a log which is not an anomaly has be flagged incorrectly. Our model should learn from this and not report the same false prediction. We can filter programmatically but this is not machine learning. We should have the model learn from the data over time and get smarter.

What is included in this PR

Unit test to validate this.
What is missing is a function for passing in feedback into Self-organizing map model?

@MichaelClifford What do you recommend is the best approach in passing false positives into SOM?

@ghost
Copy link

ghost commented May 10, 2019

Build failed.

@zak-hassan
Copy link
Contributor Author

The test case should be red and fail unless we are able to pass in the false positives into SOM and if its true that SOM can learn from false positive data.

@ghost
Copy link

ghost commented May 10, 2019

Build failed.

@zak-hassan zak-hassan marked this pull request as ready for review May 10, 2019 20:48
@ghost
Copy link

ghost commented May 13, 2019

Build failed.

@ghost
Copy link

ghost commented May 16, 2019

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@ghost
Copy link

ghost commented May 16, 2019

Build failed.

@ghost
Copy link

ghost commented May 16, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@zak-hassan
Copy link
Contributor Author

recheck

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@fridex
Copy link

fridex commented May 17, 2019

recheck

@zak-hassan
Copy link
Contributor Author

@goern says "seems to be a problem between zuul and Openshift"

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@ghost
Copy link

ghost commented May 17, 2019

Build failed.

@goern
Copy link
Member

goern commented May 18, 2019

recheck

@ghost
Copy link

ghost commented May 18, 2019

Build failed.

@goern
Copy link
Member

goern commented May 18, 2019

recheck

@goern
Copy link
Member

goern commented May 18, 2019

@zmhassan do you know how much memory your pytests require?

@ghost
Copy link

ghost commented May 18, 2019

Build failed.

@goern
Copy link
Member

goern commented May 18, 2019

recheck

@ghost
Copy link

ghost commented May 20, 2019

Build failed.

@goern
Copy link
Member

goern commented May 20, 2019

recheck

@ghost
Copy link

ghost commented May 20, 2019

Build failed.

@goern
Copy link
Member

goern commented May 20, 2019

recheck

@ghost
Copy link

ghost commented May 20, 2019

Build failed.

@goern
Copy link
Member

goern commented May 20, 2019

recheck

@ghost
Copy link

ghost commented May 20, 2019

Build failed.

@goern
Copy link
Member

goern commented May 21, 2019

recheck

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@ghost
Copy link

ghost commented May 21, 2019

Build failed.

@goern
Copy link
Member

goern commented May 22, 2019

Related Ticket: https://url.corp.redhat.com/b7d1e80

The 'module failure' seems to be related to a timeout between Zuul executor and the pod running pytest. We can reproduce the behaviour via a PR thoth-station/srcops-testing#109 and via an ansible playbook. The root cause might be the version of Ansible used by Zuul. to be continued...

@ghost
Copy link

ghost commented May 23, 2019

Build failed.

@ghost
Copy link

ghost commented May 23, 2019

Build failed.

@ghost
Copy link

ghost commented May 23, 2019

Build succeeded.

@zak-hassan zak-hassan changed the title [WIP] Adding TDD to false positives with test case to validate if model can… Adding TDD to false positives with test case to validate if model can… May 23, 2019
@ghost
Copy link

ghost commented May 23, 2019

Build succeeded.

@zak-hassan
Copy link
Contributor Author

@durandom So I removed the WIP and rebased. Awaiting on the merge ??

Copy link
Member

@durandom durandom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zmhassan, looks good

@durandom durandom merged commit dc5d5c5 into AICoE:master May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants