|
@@ -16,13 +16,7 @@ def calc_chratios(data, pos_map, start, end):
|
|
|
y = succ / commit
|
|
|
y = y.ravel()
|
|
|
|
|
|
- sums = np.sum(all, axis=1)
|
|
|
- succs = sums[0]
|
|
|
- fails = sums[1]
|
|
|
-
|
|
|
- return int(succs), int(succs + fails), y
|
|
|
-
|
|
|
- # return int(view[0, -1]), int(view[0, -1] + view[1, -1]), y
|
|
|
+ return int(view[0, -1]), int(view[0, -1] + view[1, -1]), y
|
|
|
|
|
|
def calc_cov_chratios(data, pos_map, start, end, window, left_len,right_len):
|
|
|
view = data[[pos_map.succ_count, pos_map.fail_count, pos_map.commit_count], :]
|