Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test commit #112

Open
wants to merge 18 commits into
base: 23f_yandex_ml_trainings
Choose a base branch
from
Prev Previous commit
Next Next commit
compute_distances_two_loops
  • Loading branch information
igoof committed Nov 4, 2023
commit 9a43bf1157bc2e9e4aa7961a96c3c6bd83404f70
2 changes: 1 addition & 1 deletion homeworks/assignment01_knn/k_nearest_neighbor.py
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ def compute_distances_one_loop(self, X):
# Do not use np.linalg.norm(). #
#######################################################################
# *****START OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)*****
pass
dists[i, :] = np.sqrt(np.sum((X[i] - self.X_train) ** 2, axis=1))
# *****END OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)*****
return dists