Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional parameter clauses cause an error in fANOVA #34

Closed
ecemsogancioglu opened this issue Dec 30, 2016 · 1 comment
Closed

Conditional parameter clauses cause an error in fANOVA #34

ecemsogancioglu opened this issue Dec 30, 2016 · 1 comment
Assignees

Comments

@ecemsogancioglu
Copy link

ecemsogancioglu commented Dec 30, 2016

Hello,

I am using fANOVA with the data generated by pySMAC 0.9.

param.pcs file is as in the following:

neurons3 integer [10, 200] [11]
neurons2 integer [10, 200] [11]
num_layers {1,2,3}[1]
neurons2 | num_layers in {2,3}
neurons3 | num_layers in {3}

When I run fANOVA, I get the following error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfigurationStringFormatException: Error processing Parameter Configuration String "0.007853403141361256,0.007853403141361256,0.007853403141361256,0.16666666666666666" in format: ARRAY_STRING_SYNTAX please check the arguments (and nested exception) and try again at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfigurationSpace.getParameterConfigurationFromString(ParameterConfigurationSpace.java:1500) at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfigurationSpace.getParameterConfigurationFromString(ParameterConfigurationSpace.java:1313) at ca.ubc.cs.beta.aeatk.state.legacy.LegacyStateDeserializer.<init>(LegacyStateDeserializer.java:258) at ca.ubc.cs.beta.aeatk.state.legacy.LegacyStateFactory.getStateDeserializer(LegacyStateFactory.java:129) at net.aeatk.fanova.FAnovaExecutor.main(FAnovaExecutor.java:91) Caused by: java.lang.IndexOutOfBoundsException: Index: -1, Size: 3 at java.util.LinkedList.checkElementIndex(LinkedList.java:553) at java.util.LinkedList.get(LinkedList.java:474) at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfiguration.get(ParameterConfiguration.java:222) at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfiguration._getActiveParameters(ParameterConfiguration.java:1005) at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfiguration.cleanUp(ParameterConfiguration.java:908) at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfiguration.getActiveParameters(ParameterConfiguration.java:948) at ca.ubc.cs.beta.aeatk.parameterconfigurationspace.ParameterConfigurationSpace.getParameterConfigurationFromString(ParameterConfigurationSpace.java:1472) ... 4 more Traceback (most recent call last): File "fanova_results.py", line 9, in <module> f = Fanova("Desktop/JapVowel/out/scenario/state-run0") File "build/bdist.macosx-10.12-x86_64/egg/pyfanova/fanova.py", line 97, in __init__ RuntimeError: Failed starting fanova. Did you start it from a SMAC state-run directory?

What I observed is that caused by conditional parameter clauses in param.pcs file. If I delete the lines where conditional parameter clauses are declared as in the following in param.pcs file, I do not get any error.

neurons3 integer [10, 200] [11]
neurons2 integer [10, 200] [11]
num_layers {1,2,3}[1]

Could you help me through that? Is it safe to delete conditional parameter clauses?

Thank you for your helps!

@ecemsogancioglu
Copy link
Author

Hi,

Is there anybody who knows the solution to that issue? Should I delete those lines where conditional parameter clauses defined in param.pcs file?

Thank you so much!
Regards,
Ecem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants