from BLCUDA import *
import numpy as np
from knnLooGPU import *

def BMBCUDA(train_data, train_labels, knnGPU):
	print("Ejecutando BMB")
	n = len(train_data[0])
	best_s = None
	best_score = 0.0

	for _ in range(0,25):
		random_sol = np.random.choice([True, False], n)
		s, s_score = BLCUDA(train_data, train_labels, knnGPU, random_sol)

		if best_score < s_score:
			best_s, best_score = s, s_score

	return best_s, best_score
