Exemplo n.º 1
0
	def __init__(self, **kwargs):
		GraphKernel.__init__(self)
		self._node_labels = kwargs.get('node_labels', [])
		self._edge_labels = kwargs.get('edge_labels', [])
		self._height = int(kwargs.get('height', 0))
		self._base_kernel = kwargs.get('base_kernel', 'subtree')
		self._ds_infos = kwargs.get('ds_infos', {})
Exemplo n.º 2
0
 def __init__(self, **kwargs):
     GraphKernel.__init__(self)
     self._weight = kwargs.get('weight', 1)
     self._p = kwargs.get('p', None)
     self._q = kwargs.get('q', None)
     self._edge_weight = kwargs.get('edge_weight', None)
     self._ds_infos = kwargs.get('ds_infos', {})
Exemplo n.º 3
0
 def __init__(self, **kwargs):
     GraphKernel.__init__(self)
     self.__node_labels = kwargs.get('node_labels', [])
     self.__node_attrs = kwargs.get('node_attrs', [])
     self.__edge_weight = kwargs.get('edge_weight', None)
     self.__node_kernels = kwargs.get('node_kernels', None)
     self.__ds_infos = kwargs.get('ds_infos', {})
Exemplo n.º 4
0
	def __init__(self, **kwargs):
		GraphKernel.__init__(self)
		self._node_labels = kwargs.get('node_labels', [])
		self._edge_labels = kwargs.get('edge_labels', [])
		self._depth = int(kwargs.get('depth', 10))
		self._k_func = kwargs.get('k_func', 'MinMax')
		self._compute_method = kwargs.get('compute_method', 'trie')
		self._ds_infos = kwargs.get('ds_infos', {})
Exemplo n.º 5
0
	def __init__(self, **kwargs):
		GraphKernel.__init__(self)
		self._node_labels = kwargs.get('node_labels', [])
		self._edge_labels = kwargs.get('edge_labels', [])
		self._weight = kwargs.get('weight', 1)
		self._compute_method = kwargs.get('compute_method', None)
		self._ds_infos = kwargs.get('ds_infos', {})
		self._compute_method = self._compute_method.lower()
Exemplo n.º 6
0
 def __init__(self, **kwargs):
     GraphKernel.__init__(self)
     self.__node_labels = kwargs.get('node_labels', [])
     self.__edge_labels = kwargs.get('edge_labels', [])
     self.__sub_kernel = kwargs.get('sub_kernel', None)
     self.__ds_infos = kwargs.get('ds_infos', {})
     if self.__sub_kernel is None:
         raise Exception('Sub kernel not set.')
Exemplo n.º 7
0
	def __init__(self, **kwargs):
		GraphKernel.__init__(self)
		self.__node_labels = kwargs.get('node_labels', [])
		self.__edge_labels = kwargs.get('edge_labels', [])
		self.__p_quit = kwargs.get('p_quit', 0.5)
		self.__n_iteration = kwargs.get('n_iteration', 10)
		self.__remove_totters = kwargs.get('remove_totters', False)
		self.__ds_infos = kwargs.get('ds_infos', {})
		self.__n_iteration = int(self.__n_iteration)
Exemplo n.º 8
0
 def __init__(self, **kwargs):
     GraphKernel.__init__(self)
     self._node_labels = kwargs.get('node_labels', [])
     self._edge_labels = kwargs.get('edge_labels', [])
     self._node_attrs = kwargs.get('node_attrs', [])
     self._edge_attrs = kwargs.get('edge_attrs', [])
     self._edge_weight = kwargs.get('edge_weight', None)
     self._node_kernels = kwargs.get('node_kernels', None)
     self._edge_kernels = kwargs.get('edge_kernels', None)
     self._compute_method = kwargs.get('compute_method', 'naive')
     self._fcsp = kwargs.get('fcsp', True)
     self._ds_infos = kwargs.get('ds_infos', {})