From 5866d4cd0caca94e352602c3a4b85eed9042702a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Sand=20Jensen?= <bjje@dtu.dk> Date: Mon, 10 Feb 2025 15:10:58 +0100 Subject: [PATCH] name changes ex4 --- exercises/02450Toolbox_Python/Scripts/ex2_1_2.py | 2 +- exercises/02450Toolbox_Python/Scripts/ex2_4_3.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/exercises/02450Toolbox_Python/Scripts/ex2_1_2.py b/exercises/02450Toolbox_Python/Scripts/ex2_1_2.py index dea5b3f..53d3991 100644 --- a/exercises/02450Toolbox_Python/Scripts/ex2_1_2.py +++ b/exercises/02450Toolbox_Python/Scripts/ex2_1_2.py @@ -1,4 +1,4 @@ -# exercise 2.1.1 +# exercise 2.1.2 import numpy as np x = np.array([-0.68, -2.11, 2.39, 0.26, 1.46, 1.33, 1.03, -0.41, -0.33, 0.47]) diff --git a/exercises/02450Toolbox_Python/Scripts/ex2_4_3.py b/exercises/02450Toolbox_Python/Scripts/ex2_4_3.py index 07f073e..b379c1e 100644 --- a/exercises/02450Toolbox_Python/Scripts/ex2_4_3.py +++ b/exercises/02450Toolbox_Python/Scripts/ex2_4_3.py @@ -121,6 +121,8 @@ print("Distance after scaling all attributes: %s \n\n" % dist_firstandlast) # Try to change the scale of one of the attributes in both wines and see the effect on the distance x_red = np.copy(X[0,:]) x_white = np.copy(X[-1,:]) +print("x_red: %s" % x_red) +print("x_white: %s" % x_white) sf = 1000 x_white[1] = sf*x_white[1] x_red[1] = sf*x_red[1] @@ -253,5 +255,5 @@ raise NotImplementedError() #%% -print("You are now done with this exercise. ASk your TA to look over your solutions and discuss your findings with them.")#%% +print("You are now done with this exercise. Ask your TA to look over your solutions and discuss your findings with them.")#%% # %% -- GitLab