Skip to content

Модель не обучается #1

@MihDyachkov

Description

@MihDyachkov

Добрый день.
У меня не обучается модель на стандартных параметрах. Одинаковый результат как на питоне 2.7 так и на 3.6
Ссылка на ноутбук на GitHub (пример использования Вашей библиотеки)

Попробовал написать Вам на почту, но ответа не получил.

TypeError                                 Traceback (most recent call last)
C:\Users\mihdy_000\Anaconda3\lib\site-packages\IPython\core\formatters.py in __call__(self, obj)
    670                 type_pprinters=self.type_printers,
    671                 deferred_pprinters=self.deferred_printers)
--> 672             printer.pretty(obj)
    673             printer.flush()
    674             return stream.getvalue()

C:\Users\mihdy_000\Anaconda3\lib\site-packages\IPython\lib\pretty.py in pretty(self, obj)
    381                             if callable(meth):
    382                                 return meth(obj, self, cycle)
--> 383             return _default_pprint(obj, self, cycle)
    384         finally:
    385             self.end_group()

C:\Users\mihdy_000\Anaconda3\lib\site-packages\IPython\lib\pretty.py in _default_pprint(obj, p, cycle)
    501     if _safe_getattr(klass, '__repr__', None) not in _baseclass_reprs:
    502         # A user-provided repr. Find newlines and replace them with p.break_()
--> 503         _repr_pprint(obj, p, cycle)
    504         return
    505     p.begin_group(1, '<')

C:\Users\mihdy_000\Anaconda3\lib\site-packages\IPython\lib\pretty.py in _repr_pprint(obj, p, cycle)
    699     """A pprint that just redirects to the normal repr function."""
    700     # Find newlines and replace them with p.break_()
--> 701     output = repr(obj)
    702     for idx,output_line in enumerate(output.splitlines()):
    703         if idx:

C:\Users\mihdy_000\Anaconda3\lib\site-packages\gmdhpy\gmdh.py in __repr__(self)
    454         s += 'Test data size: {0}\n'.format(self.n_test)
    455         s += 'Selected features by index: {0}\n'.format(self.get_selected_features())
--> 456         s += 'Selected features by name: {0}\n'.format(self.get_selected_n_features_names())
    457         s += 'Unselected features by index: {0}\n'.format(self.get_unselected_features())
    458         s += 'Unselected features by name: {0}\n'.format(self.get_unselected_n_features_names())

C:\Users\mihdy_000\Anaconda3\lib\site-packages\gmdhpy\gmdh.py in get_selected_n_features_names(self)
   1103         string
   1104         """
-> 1105         return self._get_n_features_names(self.get_selected_features())
   1106 
   1107 

C:\Users\mihdy_000\Anaconda3\lib\site-packages\gmdhpy\gmdh.py in _get_n_features_names(self, features_set)
   1060         s = ''
   1061         for n, index in enumerate(features_set):
-> 1062             if len(self.feature_names) > 0:
   1063                 s += '{0}'.format(self.feature_names[index])
   1064                 if n < len(features_set)-1:

TypeError: object of type 'NoneType' has no len()

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