|
29 | 29 | class PathUpToH(GraphKernel): # @todo: add function for k_func is None |
30 | 30 |
|
31 | 31 | def __init__(self, **kwargs): |
| 32 | + """Initialize the kernel. |
| 33 | +
|
| 34 | + Parameters |
| 35 | + ---------- |
| 36 | + node_labels : list of strings, optional |
| 37 | + The name list of node labels in the graphs. The default is []. |
| 38 | +
|
| 39 | + edge_labels : list of strings, optional |
| 40 | + The name list of edge labels in the graphs. The default is []. |
| 41 | +
|
| 42 | + depth : int, optional |
| 43 | + The maximum depth of paths to be considered. The default is 10. |
| 44 | +
|
| 45 | + k_func : string, optional |
| 46 | + The kernel function applied using different notions of fingerprint |
| 47 | + similarity. The default is 'MinMax'. |
| 48 | +
|
| 49 | + compute_method : string, optional |
| 50 | + The method to compute the kernel. The default is 'trie'. |
| 51 | +
|
| 52 | + ds_infos : dict, optional |
| 53 | + The dataset information. The default is {}. |
| 54 | +
|
| 55 | + save_paths : boolean, optional |
| 56 | + Whether to save the paths of graphs. The default is True. |
| 57 | +
|
| 58 | + parallel : boolean, optional |
| 59 | + Whether to use parallelization. The default is True. |
| 60 | +
|
| 61 | + n_jobs : int, optional |
| 62 | + The number of jobs to run in parallel. The default is 1. |
| 63 | +
|
| 64 | + chunksize : int, optional |
| 65 | + The chunksize for parallelization. The default is 100. |
| 66 | +
|
| 67 | + normalize : boolean, optional |
| 68 | + Whether to normalize the kernel matrix. The default is False. |
| 69 | +
|
| 70 | + copy_graphs : boolean, optional |
| 71 | + Whether to copy the input graphs. The default is True. |
| 72 | +
|
| 73 | + verbose : int, optional |
| 74 | + The verbosity level. The default is 0. |
| 75 | + """ |
32 | 76 | GraphKernel.__init__( |
33 | 77 | self, **{ |
34 | 78 | k: kwargs.get(k) for k in |
|
0 commit comments