ret = []
y_raw_all = y_all
y_all = self.y_encoder.transform(y_all)
model = self.load_searcher().load_best_model()
for train, test in k_fold.split(x_all, y_raw_all):
graph = Graph(model, False)
backend.clear_session()
model = graph.produce_model()
After Change
ret = []
y_raw_all = y_all
y_all = self.y_encoder.transform(y_all)
model = self.load_searcher().load_best_model().produce_model()
for train, test in k_fold.split(x_all, y_raw_all):
graph = Graph(model, False)
backend.clear_session()
model = graph.produce_model()