Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1466)

Unified Diff: appengine/findit/crash/findit_for_chromecrash.py

Issue 2704843002: [Predator] Add TouchCrashedDirectory feature. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/crash/crash_util.py ('k') | appengine/findit/crash/findit_for_clusterfuzz.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/findit_for_chromecrash.py
diff --git a/appengine/findit/crash/findit_for_chromecrash.py b/appengine/findit/crash/findit_for_chromecrash.py
index 4a29045c7fdb7324cbb2df90cd765dfdecc18a45..4f49bdb66d7e7332d7a478c9c57f46c3cc5fdfaf 100644
--- a/appengine/findit/crash/findit_for_chromecrash.py
+++ b/appengine/findit/crash/findit_for_chromecrash.py
@@ -13,6 +13,8 @@ from crash.chromecrash_parser import ChromeCrashParser
from crash.chrome_crash_data import ChromeCrashData
from crash.findit import Findit
from crash.loglinear.changelist_classifier import LogLinearChangelistClassifier
+from crash.loglinear.changelist_features.touch_crashed_directory import (
+ TouchCrashedDirectoryFeature)
from crash.loglinear.changelist_features.touch_crashed_file_meta import (
TouchCrashedFileMetaFeature)
from crash.loglinear.feature import WrapperMetaFeature
@@ -49,10 +51,12 @@ class FinditForChromeCrash(Findit): # pylint: disable=W0223
'MinDistance': Weight(1.),
'TopFrameIndex': Weight(1.),
'TouchCrashedFile': Weight(1.),
- })
+ }),
+ 'TouchCrashedDirectory': Weight(1.)
})
meta_feature = WrapperMetaFeature(
- [TouchCrashedFileMetaFeature(get_repository)])
+ [TouchCrashedFileMetaFeature(get_repository),
+ TouchCrashedDirectoryFeature()])
self._predator = Predator(LogLinearChangelistClassifier(get_repository,
meta_feature,
« no previous file with comments | « appengine/findit/crash/crash_util.py ('k') | appengine/findit/crash/findit_for_clusterfuzz.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698