Skip to content

Commit

Permalink
Fix csv issue in the points_to_csv method
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaciollaro committed Dec 29, 2017
1 parent 44bd13c commit ddf762d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bayes_opt/bayesian_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---

Expand Down

0 comments on commit ddf762d

Please sign in to comment.