Skip to content

Commit 3277900

Browse files
authored
Merge pull request #21 from a3d3-institute/ytchoutw-patch-4
Update ingestion.py
2 parents 3039564 + 3c87410 commit 3277900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gw_challenge/ingested_program/ingestion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def tp_cut(predictions):
7777
# Read solutions
7878
with np.load(test_data_file) as file:
7979
y_test = file['ids']
80-
predictions = (predictions >= np.percentile(predictions[y_test == np.ones(len(y_test))], 90)).astype(int)
80+
predictions = (predictions >= np.percentile(predictions[y_test == np.ones(len(y_test))], 10)).astype(int)
8181

8282
return predictions
8383

@@ -142,4 +142,4 @@ def main():
142142

143143

144144
if __name__ == '__main__':
145-
main()
145+
main()

0 commit comments

Comments
 (0)