



def     UpperCAmelCase_		(					snake_case__					)	->     bool:



				"""simple docstring"""





				lowerCAmelCase__		  =  0
				for ch in input_str:
								lowerCAmelCase__		  =  ord(snake_case__					)
								lowerCAmelCase__		  =  pow(2    ,			snake_case__					)

								# If we already turned on bit for current character's unicode
								if bitmap >> ch_unicode & 1 == 1:
												return False
								bitmap |= ch_bit_index_on
				return True


if __name__ == "__main__":
	import doctest

	doctest.testmod()





from collections import Counter

import numpy as np
from sklearn import datasets
from sklearn.model_selection import train_test_split

_lowerCAmelCase	:   int    =   datasets.load_iris()

_lowerCAmelCase	:   Tuple    =   np.array(data["data"])
_lowerCAmelCase	:   Any    =   np.array(data["target"])
_lowerCAmelCase	:   Union[str, Any]    =   data["target_names"]

_lowerCAmelCase,		_lowerCAmelCase,		_lowerCAmelCase,		_lowerCAmelCase	:   Optional[Any]    =   train_test_split(X, y)







def     UpperCAmelCase_		(					snake_case__    ,			snake_case__					)	->     Tuple:



				"""simple docstring"""





				return np.linalg.norm(np.array(snake_case__					) - np.array(snake_case__					)					)







def     UpperCAmelCase_		(					snake_case__    ,			snake_case__    ,			snake_case__    ,			snake_case__    ,			snake_case__=5					)	->     Dict:



				"""simple docstring"""





				lowerCAmelCase__		  =  zip(snake_case__    ,			snake_case__					)
				# List of distances of all points from the point to be classified
				lowerCAmelCase__		  =  []
				for data_point in data:
								lowerCAmelCase__		  =  euclidean_distance(data_point[0]    ,			snake_case__					)
								distances.append((distance, data_point[1])					)
				# Choosing 'k' points with the least distances.
				lowerCAmelCase__		  =  [i[1] for i in sorted(snake_case__					)[:k]]
				# Most commonly occurring class among them
				# is the class into which the point is classified
				lowerCAmelCase__		  =  Counter(snake_case__					).most_common(1					)[0][0]
				return classes[result]


if __name__ == "__main__":
	print(classifier(X_train, y_train, classes, [4.4, 3.1, 1.3, 1.4]))
