Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *, n_components, n_iter=None, init_params=None,
params=None, random_state=None, verbose=False):
# assign default parameter values
if n_iter is None:
n_iter = 50
if init_params is None:
init_params = 'stm'
if params is None:
params = 'stm'
# TODO: I don't understand why super().__init__ does not work?
PHMM.__init__(self,
n_components=n_components,
n_iter=n_iter,
init_params=init_params,
params=params,
random_state=random_state,
verbose=verbose)
# initialize BinnedSpikeTrain attributes
for attrib in self.__attributes__:
exec("self." + attrib + " = None")
self._extern_ = None
self._ds = None
# self._extern_map = None
# create shortcuts to super() methods that are overridden in