-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump rcf to 3.0-rc2.1 #519
Conversation
Codecov Report
@@ Coverage Diff @@
## main #519 +/- ##
============================================
- Coverage 79.02% 79.00% -0.02%
- Complexity 4195 4203 +8
============================================
Files 296 296
Lines 17663 17681 +18
Branches 1878 1877 -1
============================================
+ Hits 13958 13969 +11
- Misses 2806 2813 +7
Partials 899 899
Flags with carried forward coverage won't be shown. Click here to find out more.
|
assertEquals(30, forest.getForest().getNumberOfTrees()); | ||
} | ||
|
||
public void testDeserializeTRCFModel() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the test's purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
@@ -1000,4 +1005,77 @@ private double[] getPoint(int dimensions, Random random) { | |||
} | |||
return point; | |||
} | |||
|
|||
public void testDeserializeRCFModelPreINIT() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are the following 2 tests used for single-stream detector's checkpoints? If so, could you add comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
@@ -367,7 +367,7 @@ public Collection<Object> createComponents( | |||
mapper.setSaveExecutorContextEnabled(true); | |||
mapper.setSaveTreeStateEnabled(true); | |||
mapper.setPartialTreeStateEnabled(true); | |||
V1JsonToV2StateConverter converter = new V1JsonToV2StateConverter(); | |||
V1JsonToV3StateConverter converter = new V1JsonToV3StateConverter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need V2 to V3 converter? How about add some comments to explain what's V1, V2 and V3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After testing and looking at RCF code, we don't need a converter between v2 to v3 as that is dealt with accordingly on RCF side. I also added a unit test where we parse a v2 checkpoint with RCF3.0-rc2.1 as a dependency(v3) and we get the same result as we do when parsing with rc1(v2). I'll add some comments explaining v1, v2, v3 in checkPointDAO class.
@@ -117,6 +117,14 @@ public class CheckpointDao { | |||
|
|||
private Gson gson; | |||
private RandomCutForestMapper mapper; | |||
|
|||
// For further reference v1, v2 and v3 refer to the different variations of RCF models | |||
// used by AD. v1 was originally used with the lunch of OS 1.0. We later converted to v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lunch -> launch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]> (cherry picked from commit 8227e32)
Signed-off-by: Amit Galitzky <[email protected]> (cherry picked from commit 8227e32)
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky [email protected]
Description
Other manual testing done:
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.