| Total Complexity | 1 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| 1 | from six.moves import UserDict |
||
| 9 | class VectorizerRegistry(UserDict, object): |
||
| 10 | """Uses Borg design pattern. Core idea is that there is a global registry for each step's |
||
| 11 | possible methods |
||
| 12 | """ |
||
| 13 | __shared_state = {} |
||
| 14 | |||
| 15 | def __init__(self, *args, **kwargs): |
||
| 16 | self.__dict__ = self.__shared_state |
||
| 17 | super(VectorizerRegistry, self).__init__(*args, **kwargs) |
||
| 18 | |||
| 34 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.