Skip to content

Commit e148c29

Browse files
committed
modify compute rmse
1 parent ba9606b commit e148c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

probreg/math_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def squared_kernel_sum(x, y):
2626

2727

2828
def compute_rmse(source, target_tree):
29-
return sum([target_tree.query(pt)[0] for pt in source]) / source.shape[0]
29+
return sum(target_tree.query(source)[0]) / source.shape[0]
3030

3131

3232
def rbf_kernel(x, y, beta):

0 commit comments

Comments
 (0)