Comments (4)
Hi Nic,
the issue is that the current Fanova version does not support the latest AEATK library which is used in SMAC. We reimplemented SMAC in python (https://github.com/automl/SMAC3) and we will also publish soon a pure python version of Fanova which is independent of AEATK and SMAC.
In the meantime you can easily fix your problem by replacing the following lines in the scenario.txt file:
cli-log-all-calls = true -> intra-obj = MEAN
and in the param.pcs file:
popsize integer [1, 30000] [150] log -> popsize integer [1, 30000] [150]l
That should fix your problem. Sorry for the inconveniences.
Best
Aaron
from fanova.
How do I get around this?
For me, even the basic example is not working unfortunately :(
>>> from pyfanova.fanova_from_csv import FanovaFromCSV
>>> f = FanovaFromCSV("test_data.csv")
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/pran/.python-eggs/pyfanova-1.0-py2.7.egg-tmp/pyfanova/fanova/slf4j-android-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/pran/.python-eggs/pyfanova-1.0-py2.7.egg-tmp/pyfanova/fanova/slf4j-jcl-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/pran/.python-eggs/pyfanova-1.0-py2.7.egg-tmp/pyfanova/fanova/slf4j-jdk14-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/pran/.python-eggs/pyfanova-1.0-py2.7.egg-tmp/pyfanova/fanova/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/pran/.python-eggs/pyfanova-1.0-py2.7.egg-tmp/pyfanova/fanova/slf4j-nop-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/pran/.python-eggs/pyfanova-1.0-py2.7.egg-tmp/pyfanova/fanova/slf4j-simple-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.AndroidLoggerFactory]
Exception in thread "main" java.lang.NoClassDefFoundError: android/util/Log
at org.slf4j.impl.AndroidLoggerAdapter.isLoggable(AndroidLoggerAdapter.java:544)
at org.slf4j.impl.AndroidLoggerAdapter.isTraceEnabled(AndroidLoggerAdapter.java:99)
at ca.ubc.cs.beta.aeatk.logging.ComplexLoggingOptions.initializeLogging(ComplexLoggingOptions.java:110)
at net.aeatk.fanova.FAnovaExecutor.main(FAnovaExecutor.java:58)
Caused by: java.lang.ClassNotFoundException: android.util.Log
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-x86_64/egg/pyfanova/fanova_from_csv.py", line 26, in __init__
File "build/bdist.macosx-10.5-x86_64/egg/pyfanova/fanova.py", line 97, in __init__
RuntimeError: Failed starting fanova. Did you start it from a SMAC state-run directory?
>>>
from fanova.
I am also having problems using Fanova with data from SMAC v2.10.03-master-814. When I try to construct an instance of Fanova I get the following error:
(Python 2.7.10 (default, Jun 20 2016, 14:45:40)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyfanova.fanova import Fanova
>>> f = Fanova("/home/mcphee/Research/smac_tests/smac-output/rswn-scenario-60min/state-run912527002")
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.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/pyfanova/fanova.py", line 97, in __init__
RuntimeError: Failed starting fanova. Did you start it from a SMAC state-run directory?)
It's possible that my state directory is missing something Fanova is expecting to be there. When I ls
my directory it does look different that the example provided with Fanova. Mine has:
instances.txt paramstrings-it17.txt
java_obj_dump-v2-it17.obj runs_and_results-it17.csv
java_obj_dump-v2-itquick-bak.obj scenario.txt
java_obj_dump-v2-itquick.obj uniq_configurations-it17.csv
param.pcs
where the example directory has:
Col1.png param-file-disc.txt scenario.txt
instance-features.txt param-file.txt uniq_configurations-it2.csv
instances.txt paramstrings-it2.txt
pairwise.png runs_and_results-it2.csv
If I had to guess, maybe the absence of one or more of instance-features.txt
, param-file-disc.txt
, or param-file.txt
is the problem? Can anyone confirm or deny? If that's the problem, can I construct those by hand so I don't have to re-do my several CPU-weeks of SMAC runs?
I've attached my state directory if that helps.
Many thanks – Nic
from fanova.
Thanks – that totally fixed it!
from fanova.
Related Issues (20)
- Segmentation fault while running the example code with SWIG 4.0 HOT 4
- mislabeled plot being generated using plot_pairwise_marginal() HOT 2
- RuntimeError - ordinal or categorical features cannot be processed HOT 1
- Dealing with categorical string variables HOT 6
- fanova does not work with numpy >= 1.24 HOT 1
- License confirmation HOT 1
- improve logging
- Support for Mac OSX? HOT 13
- no module resource when 'import pysmac' HOT 1
- support for hyperparameters of type Constant HOT 7
- fANOVA visualization fails with bools in CategoricalHyperparameter
- pyrfr library crashes when operating on Constant Hyperparameter
- Unit Tests
- Unassigned variable for marginal plot HOT 1
- Segmentation Fault when plotting pairwise plot of Numerical and Categorical hyperparameter HOT 3
- Exception: pickling interactive pairwise-marginal-plots
- create_all_plots error
- Constants not handled good (and "swap"-logic)
- Error with ConfigSpace if hyperparameters are not ordered alphabetically in X matrix HOT 4
- Inverted shape in heatmap matrix visualization HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fanova.