Run Error on MacOS Catalina
Trying to execute example.py with following classifier: DecisionTree(NonDeterminizer(), [aa], Entropy(), 'CART-ent')
INFO: Benchmark statistics will be available in benchmark.json and benchmark.html.
INFO: Constructed trees will be written to decision_trees.
1/2: Evaluating CART-ent on cartpole...
Loading existing converted dataset... Done.
Traceback (most recent call last):
File "./dtcontrol/example.py", line 60, in <module>
suite.benchmark(classifiers)
File "./dtcontrol/dtcontrol/benchmark_suite.py", line 94, in benchmark
cell, computed = self.compute_cell(ds, classifier)
File "./dtcontrol/dtcontrol/benchmark_suite.py", line 131, in compute_cell
cell = self.train_and_get_cell(dataset, classifier)
File "./dtcontrol/dtcontrol/benchmark_suite.py", line 140, in train_and_get_cell
classifier, success, run_time = call_with_timeout(classifier, 'fit', dataset, timeout=self.timeout)
File "./dtcontrol/dtcontrol/timeout.py", line 51, in call_with_timeout
getattr(obj, method)(*args)
File "./dtcontrol/dtcontrol/decision_tree/decision_tree.py", line 46, in fit
self.root.fit(dataset)
File "./dtcontrol/dtcontrol/decision_tree/decision_tree.py", line 122, in fit
splits = [strategy.find_split(dataset, y, self.impurity_measure) for strategy in self.splitting_strategies]
File "./dtcontrol/dtcontrol/decision_tree/decision_tree.py", line 122, in <listcomp>
splits = [strategy.find_split(dataset, y, self.impurity_measure) for strategy in self.splitting_strategies]
File "./dtcontrol/dtcontrol/decision_tree/splitting/axis_aligned.py", line 6, in find_split
x_numeric = dataset.get_numeric_x()
File "./dtcontrol/dtcontrol/dataset/dataset.py", line 112, in get_numeric_x
numeric_columns = set(range(self.x.shape[1])).difference(set(self.x_metadata['categorical']))
KeyError: 'categorical'
Process finished with exit code 1