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
  MPEG DASH Package implementation similar to M3U8 package anantha_narayanan 1 2,104 May-05-2025, 08:34 AM
Last Post: pintailscratchy
  Merge htm files with shutil library (TypeError: 'module' object is not callable) Melcu54 7 4,943 Mar-09-2025, 04:25 PM
Last Post: Pedroski55
  I am getting this TypeError: 'TreasureMap' object is not subscriptable. makilakos 2 2,149 May-25-2024, 07:58 PM
Last Post: deanhystad
  TypeError: cannot pickle ‘_asyncio.Future’ object Abdul_Rafey 1 4,621 Mar-07-2024, 03:40 PM
Last Post: deanhystad
  error in class: TypeError: 'str' object is not callable akbarza 2 2,919 Dec-30-2023, 04:35 PM
Last Post: deanhystad
  How to run utilities from a Python package? LugosisGhost 1 1,848 Dec-27-2023, 12:00 PM
Last Post: Larz60+
Bug TypeError: 'NoneType' object is not subscriptable TheLummen 4 5,167 Nov-27-2023, 11:34 AM
Last Post: TheLummen
  TypeError: 'NoneType' object is not callable akbarza 4 20,244 Aug-24-2023, 05:14 PM
Last Post: snippsat
  [NEW CODER] TypeError: Object is not callable iwantyoursec 5 8,663 Aug-23-2023, 06:21 PM
Last Post: deanhystad
  A class of machine learning programs Led_Zeppelin 0 1,335 Jul-13-2023, 01:17 PM
Last Post: Led_Zeppelin

Forum Jump:

User Panel Messages

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