Building KNN from scratch || Without ML libraries || Python - Hands on

preview_player
Показать описание
In this video, I've constructed a KNN model without the use of sklearn ml library. For this, the dataset included is the diabetes dataset-where in the target variable denotes whether the person will have diabetes or not.

Рекомендации по теме
Комментарии
Автор

Input In [17]
IndexError Traceback (most recent call last)
Input In [29], in <cell line: 4>()
8 data_arr.append(haha)
9 print(data_arr)
---> 10 **2 +(user_data[1]-data_arr[1]) **2)**0.5
11 dist_arr.append(dist)
12 data_arr = []

IndexError: list index out of range



it wont accept this code pls help guys i followed everything

naaoohm