luinardi / hypermapper

Black-box Optimizer based on Bayesian Optimization
MIT License
152 stars 26 forks source link

Error with standard latin hypercube sampling when number_of_samples = 2 #85

Open ThrivikramanV opened 1 year ago

ThrivikramanV commented 1 year ago

The following error comes up when using Standard Latin Hypercube sampling and the number_of_samples is 2. There is no error when the the number_of_samples is 1 or when it is >=3.

File "hypermapper/space.py", line 1931, in standard_latin_hypercube_sampling_configurations_without_repetitions
    for i in range(len(X[0])):
TypeError: object of type 'numpy.int64' has no len()