Skip to content

Commit 1025c90

Browse files
still working on Kaggle ex.
1 parent 347ebb0 commit 1025c90

File tree

2 files changed

+147
-164
lines changed

2 files changed

+147
-164
lines changed

Chapter5_/DarkWorldsMetric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def calc_delta_r(x_predicted,y_predicted,x_true,y_true):
5959
which_true_halos=[]
6060
which_predicted_halos=[]
6161
for j in xrange(num_halos): #loop through all the true halos with the
62-
#predicted halos indexed by perm[j]
62+
6363
distances_perm[count,j]=np.sqrt((x_true[j]-x_predicted[int(perm[j])])**2\
6464
+(y_true[j]-y_predicted[int(perm[j])])**2)
6565
#This array logs the distance between true and

Chapter5_/LossFunctions.ipynb

Lines changed: 146 additions & 163 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)