Python Forum
TypeError: len() of unsized object in Python Extreme Learning Machine (ELM) package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError: len() of unsized object in Python Extreme Learning Machine (ELM) package
#1


I have installed elm package of python. There is an example provided in this link http://elm.readthedocs.io/en/latest/usage.html. When I run the code I am shown this error. It would be great help for me if someone could point out what is causing the problem. I have downloaded the dataset from the given URL provided in the link. My elm package's version is 0.1.1 and python version is 3.5.2. Thanks in advance. Error is:

Error:
Traceback (most recent call last): File "F:\7th semester\machine language\thesis work\python\Applying ELM in iris dataset\elm1.py", line 17, in <module> elmk.search_param(data, cv="kfold", of="accuracy", eval=10) File "C:\Users\summer\AppData\Local\Programs\Python\Python35\lib\site-packages\elm\elmk.py", line 489, in search_param param_kernel=param_ranges[1]) File "C:\Users\summer\AppData\Local\Programs\Python\Python35\lib\site-packages\optunity\api.py", line 212, in minimize pmap=pmap) File "C:\Users\summer\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\summer\AppData\Local\Programs\Python\Python35\lib\site-packages\optunity\solvers\CMAES.py", line 139, in optimize sigma=self.sigma) File "C:\Users\summer\AppData\Local\Programs\Python\Python35\lib\site-packages\deap\cma.py", line 90, in __init__ self.dim = len(self.centroid) TypeError: len() of unsized object
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  TypeError: cannot pickle ‘_asyncio.Future’ object Abdul_Rafey 1 373 Mar-07-2024, 03:40 PM
Last Post: deanhystad
  error in class: TypeError: 'str' object is not callable akbarza 2 501 Dec-30-2023, 04:35 PM
Last Post: deanhystad
  How to run utilities from a Python package? LugosisGhost 1 430 Dec-27-2023, 12:00 PM
Last Post: Larz60+
Bug TypeError: 'NoneType' object is not subscriptable TheLummen 4 737 Nov-27-2023, 11:34 AM
Last Post: TheLummen
  TypeError: 'NoneType' object is not callable akbarza 4 984 Aug-24-2023, 05:14 PM
Last Post: snippsat
  [NEW CODER] TypeError: Object is not callable iwantyoursec 5 1,336 Aug-23-2023, 06:21 PM
Last Post: deanhystad
  A class of machine learning programs Led_Zeppelin 0 484 Jul-13-2023, 01:17 PM
Last Post: Led_Zeppelin
  Python package not seen in VSCode fmccabe80 6 3,195 Mar-06-2023, 10:01 PM
Last Post: fmccabe80
  TypeError: 'float' object is not callable #1 isdito2001 1 1,074 Jan-21-2023, 12:43 AM
Last Post: Yoriz
  TypeError: a bytes-like object is required ZeroX 13 4,072 Jan-07-2023, 07:02 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020