We want to get the round value of Uniform distribution value which is generated float value by python random function.
[random.uniform(1,20) for i in range(0,10)] and store in array but this generate the float value this array we are using for the K value for KNN algorithm (KNeighborsClassifier). But we are getting below issue
[variable_name] does not take <class 'float'> value, enter integer value
Aucun commentaire:
Enregistrer un commentaire