-
Notifications
You must be signed in to change notification settings - Fork 623
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
FIX: bugs in evaluator #590
Merged
Merged
Changes from 22 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
0772227
FEA: add config['benchmark_filename'] to load pre-split dataset; incr…
chenyushuo 3769b2d
FIX: Increased the robustness of GeneralFullDataLoader, which can han…
chenyushuo dd157a5
FIX: can't raise error in IndividualEvaluator
guijiql 9ced718
FIX: metrics disorder
guijiql c7cbd34
FIX: GAUC calculation error
guijiql 5c1c147
FIX: rename & comment format
guijiql 2dcac28
REVERT: revert modify in data.utils
chenyushuo e8db062
Merge pull request #588 from chenyushuo/0.2.x
2017pxy fd86870
update notes
guijiql e84aeb7
FEA: Increased the robustness of trainer.evaluate
chenyushuo 50bf9e8
FIX: bug fix in GeneralFullDataLoader.
chenyushuo 27dad3f
Merge pull request #596 from chenyushuo/0.2.x
2017pxy 4b4b9a8
FIX: optimize update_attentive_A function in KGAT
da3972c
Merge pull request #597 from ShanleiMu/0.2.x
chenyushuo 83f514e
FIX: can't raise error in IndividualEvaluator
guijiql 10243bb
FIX: metrics disorder
guijiql ab95863
FIX: GAUC calculation error
guijiql 48f1078
FIX: rename & comment format
guijiql eb84ef3
FEA: add parameters check in gauc
guijiql aed05ee
FEA: add GAUC check & GAUC test
guijiql d6ea8e2
update metrics.py
guijiql 02b3d1c
update metrics.py
guijiql 3620841
Update evaluators.py
guijiql bd40a3a
FEA: add ranking metric test
guijiql b7c56bb
Merge branch '0.2.x' of https://github.com/guijiql/RecBole into 0.2.x
guijiql 6e9a9c6
FIX: rename bool variable in GAUC & remove keys in build
guijiql 634bad6
FEA: add RankEvaluator collect test
guijiql File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,9 +32,9 @@ def build(self): | |
|
||
""" | ||
evaluator_list = [] | ||
metrics_set = {metric.lower() for metric in self.metrics} | ||
metrics_list = [metric.lower() for metric in self.metrics] | ||
for metrics, evaluator in metric_eval_bind: | ||
used_metrics = list(metrics_set.intersection(set(metrics.keys()))) | ||
used_metrics = [metric for metric in metrics_list if metric in metrics.keys()] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
if used_metrics: | ||
evaluator_list.append(evaluator(self.config, used_metrics)) | ||
return evaluator_list | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What's the meaning of this? why does
all_with_pos
meannp.any(pos_len_list == 0)
, ifpos_len_list = array([1,2,3])
, thennp.any(pos_len_list == 0)
isFalse
,so all_with_pos
isFalse
?