Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.measure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Merge requests
!80
Consider non 1 values negatives
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Consider non 1 values negatives
load
into
master
Overview
4
Commits
1
Pipelines
1
Changes
1
Merged
Amir MOHAMMADI
requested to merge
load
into
master
6 years ago
Overview
4
Commits
1
Pipelines
1
Changes
1
Expand
This will make bob.measure scripts work with FOFRA scores
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b1c67590
1 commit,
6 years ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bob/measure/load.py
+
2
−
2
Options
@@ -43,8 +43,8 @@ def split(filename):
positive) and the second the scores
(float).
'''
.
format
(
filename
))
raise
return
(
scores
[
numpy
.
where
(
neg_pos
==
-
1
)],
scores
[
numpy
.
where
(
neg_pos
==
1
)
])
positives
=
neg_pos
==
1
return
(
scores
[
~
positives
],
scores
[
positives
])
def
split_files
(
filenames
):
Loading