mlindauer / aslibscenario Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 2-Clause "Simplified" License
License: BSD 2-Clause "Simplified" License
If an algorithm is listed in description.txt
, it should also have data in algorithm_runs.arff
Dear mlindauer,
In the execution, I got the following error:
if arff_dict["attributes"][0][0].upper() != "INSTANCE_ID":
TypeError: 'generator' object is not subscriptable
Best
Hello. First, thank you for the nice code ! I'm trying to read one of the aslib datasets calling the method read_scenario from the ASlibScenario class. It starts reading OK but at some point it seems that an error is triggered (tested on python 3.7.4 and with pypy 7.2 on linux) :
CODE:
sdn = ASlibScenario()
sdn.read_scenario('/home/haroldo/inst/algsel/aslib_data/SAT03-16_INDU/')
...
OUTPUT:
Optional file not found: /home/haroldo/inst/algsel/aslib_data/SAT03-16_INDU/ground_truth.arff
Warning (from warnings module):
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 235
description = yaml.load(fh)
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Have not found algorithm_cutoff_memory
Have not found features_stochastic
Traceback (most recent call last):
File "<pyshell#5>", line 1, in
sdn.read_scenario('/home/haroldo/inst/algsel/aslib_data/SAT03-16_INDU/')
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 187, in read_scenario
self.read_files()
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 225, in read_files
read_func(fn)
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 371, in read_algorithm_runs
if arff_dict["attributes"][0][0].upper() != "INSTANCE_ID":
TypeError: 'generator' object is not subscriptable
sdn.read_scenario('/home/haroldo/inst/algsel/aslib_data/SAT03-16_INDU/')
Optional file not found: /home/haroldo/inst/algsel/aslib_data/SAT03-16_INDU/ground_truth.arff
Have not found algorithm_cutoff_memory
Have not found features_stochastic
Traceback (most recent call last):
File "<pyshell#6>", line 1, in
sdn.read_scenario('/home/haroldo/inst/algsel/aslib_data/SAT03-16_INDU/')
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 187, in read_scenario
self.read_files()
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 225, in read_files
read_func(fn)
File "/home/haroldo/dev/ASlibScenario/aslib_scenario/aslib_scenario.py", line 371, in read_algorithm_runs
if arff_dict["attributes"][0][0].upper() != "INSTANCE_ID":
TypeError: 'generator' object is not subscriptable
This repository was automatically installed by installing Autofolio. In the script "aslib_scenario.py" the following is included:
from sklearn.cross_validation import KFold
However, KFold has been moved from the module "cross_validation" to "model_selection" since sklearn 18.2.
sklearn version requirement is not defined in the requirements.txt of autofolio.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.