Open youcc opened 7 years ago
I figured out that you used a difference "inputs" data in this Chapter than the inputs data in Chapter 17 on page 206. I came up my "inputs" data below according to Figure 19-1. It works fine.
inputs = [(-50, 0),
(-49, 16),
(-47, 5),
(-42, 8),
(-34, 0),
(-26, -11),
(-22, -17),
(-18, -12),
(-17, -5),
(-14, -7),
(-13, -20),
(-10, -11),
(-10, -5),
(-8, -17),
(10, 16),
(12, 14),
(20, 30),
(21, 25),
(22, 23),
(27, 15)]
While running the code below by following the example in Chapter 19 Clustering,
I got this error message, "TypeError:unsupported operand type(s) for -: 'dict' and 'dict'".
Could you help me with this issue?
Thanks