kerschke / flacco

Feature-Based Landscape Analysis of Continuous and Constrained Optimization Problems
http://kerschke.github.io/flacco/
Other
59 stars 8 forks source link

Latin Hyper-Cube malfunction? #24

Closed annabosman closed 7 years ago

annabosman commented 7 years ago

I am trying to use FLACCO to characterise neural network error surfaces. I got the CRAN version of the library, and I get the following error when attempting to create an initial sample with a latin hypercube:

X = createInitialSample(n.obs = 1000, control=list(init_sample.type = "lhs", init_sample.lower = -5, init_sample.upper = 5), dim = calcDim(irisArch))

The result is:

Error in loadNamespace(name) : there is no package called ‘lhs’

The issue arises only with lhs. The random option works fine. However, if I understand Mersmann's paper correctly, latin hypercube is not really optional.

kerschke commented 7 years ago

Did you actually install the lhs-package? It is available on CRAN: https://cran.r-project.org/web/packages/lhs/index.html

Just type install.packages("lhs") within your R console.

annabosman commented 7 years ago

I didn't - thanks for pointing it out! I made an unfair assumption that FLACCO would take care of all dependencies.

kerschke commented 7 years ago

Cool :) So far, I decided not to force the installation of all dependencies which are not completely necessary for using FLACCO.