Skip to content

Commit

Permalink
Merge pull request bayesian-optimization#80 from mattiaciollaro/master
Browse files Browse the repository at this point in the history
Fix csv issue in the points_to_csv method
  • Loading branch information
fmfn authored Jan 4, 2018
2 parents 44bd13c + ddf762d commit bd5d4fe
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 bd5d4fe

Please sign in to comment.