Skip to content

Error in example as coded in http://elm.readthedocs.io/en/latest/usage.html #2

Open
@brunialti

Description

@brunialti

No errors occours until the following statement (the loaded data matches the data set contained in the file):
elmk.search_param(data, cv="kfold", of="accuracy", eval=10)

I get the following error:

`##### Start search #####
Traceback (most recent call last):
  File "D:/elm/elm", line 18, in <module>
    elmk.search_param(data, cv="kfold", of="accuracy", eval=10)
  File "C:\Users\roberto\AppData\Local\Programs\Python\Python35\lib\site-packages\elm\elmk.py", line 489, in search_param
    param_kernel=param_ranges[1])
  File "C:\Users\roberto\AppData\Local\Programs\Python\Python35\lib\site-packages\optunity\api.py", line 212, in minimize
    pmap=pmap)
  File "C:\Users\roberto\AppData\Local\Programs\Python\Python35\lib\site-packages\optunity\api.py", line 245, in optimize
    solution, report = solver.optimize(f, maximize, pmap=pmap)
  File "C:\Users\roberto\AppData\Local\Programs\Python\Python35\lib\site-packages\optunity\solvers\CMAES.py", line 139, in optimize
    sigma=self.sigma)
  File "C:\Users\roberto\AppData\Local\Programs\Python\Python35\lib\site-packages\deap\cma.py", line 84, in __init__
    self.dim = len(self.centroid)
TypeError: len() of unsized object

Windows 10, python 3.5.2,, JetBrains PyCharm Community Edition 2016.2(64) as ide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions