diff --git a/bayes_opt/bayesian_optimization.py b/bayes_opt/bayesian_optimization.py index a16ff57f2..61cf0570c 100644 --- a/bayes_opt/bayesian_optimization.py +++ b/bayes_opt/bayesian_optimization.py @@ -319,8 +319,8 @@ def points_to_csv(self, file_name): """ points = np.hstack((self.space.X, np.expand_dims(self.space.Y, axis=1))) - header = ', '.join(self.space.keys + ['target']) - np.savetxt(file_name, points, header=header, delimiter=',') + header = ','.join(self.space.keys + ['target']) + np.savetxt(file_name, points, header=header, delimiter=',', comments='') # --- API compatibility ---