AIworx-Labs / chocolate

A fully decentralized hyperparameter optimization framework
http://chocolate.readthedocs.io
BSD 3-Clause "New" or "Revised" License
121 stars 41 forks source link

quantized parameters not perfect quantized #11

Open knuds opened 7 years ago

knuds commented 7 years ago

When I use quantized_uniform(0.0, 1.0,0.01) i still get parameters like:

0.27000000000000002 0.17999999999999999 0.85999999999999999 instead of 0.27 0.18 0.86

Line 155 in space.py should changed to: float(int(numpy.floor((x (self.high - self.low)) / self.step)) self.step + self.low)