My students and I are attempting to run the KNN example. We're encountering this error, which is almost certainly due to using a newer version of Python, but we can't figure out how to fix it. We're hoping there is an easy fix:
TypeError: dict_items([((1.56, 2.46), [(-0.5252, [1.0, 2.0], '1')]), ((0.98, 1.34), [(-0.4359999999999999, [1.0, 2.0], '1')]), ((6.08, 7.54), [(-56.498000000000005, [1.0, 2.0], '1')]), ((8.42, 9.23), [(-107.3293, [1.0, 2.0], '1')])]) is not JSON serializable
Thank you.
My students and I are attempting to run the KNN example. We're encountering this error, which is almost certainly due to using a newer version of Python, but we can't figure out how to fix it. We're hoping there is an easy fix:
TypeError: dict_items([((1.56, 2.46), [(-0.5252, [1.0, 2.0], '1')]), ((0.98, 1.34), [(-0.4359999999999999, [1.0, 2.0], '1')]), ((6.08, 7.54), [(-56.498000000000005, [1.0, 2.0], '1')]), ((8.42, 9.23), [(-107.3293, [1.0, 2.0], '1')])]) is not JSON serializable
Thank you.