0e84313d49f4b3f5aef0e0d558ecc34e271b2ad5,grakel/kernels/graphlet_sampling.py,,sample_graphlets_probabilistic,#Any#Any#Any#,231
Before Change
s = list(range(A.shape[0]))
to_edge_dict_binary = lambda x, k: matrix_to_dict(x, "==", 1, False)
for i in range(n_samples):
index_rand = random.sample(s, random.randint(3, k))
Q = A[index_rand, :][:, index_rand]
yield pynauty.Graph(Q.shape[0], True, to_edge_dict_binary(Q, k))
After Change
s = list(range(A.shape[0]))
min_r, max_r = min(3, A.shape[0]), min(k, A.shape[0])
if min_r == max_r:
rsamp = lambda *args: min_r
else:
rsamp = lambda *args: random.randint(min_r, max_r)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: ysig/GraKeL
Commit Name: 0e84313d49f4b3f5aef0e0d558ecc34e271b2ad5
Time: 2018-01-24
Author: y.siglidis@gmail.com
File Name: grakel/kernels/graphlet_sampling.py
Class Name:
Method Name: sample_graphlets_probabilistic
Project Name: david-abel/simple_rl
Commit Name: 335d758f3348cb2b7a1e03cb8248dfde39f8c439
Time: 2018-08-23
Author: david_abel@brown.edu
File Name: simple_rl/abstraction/state_abs/sa_helpers.py
Class Name:
Method Name: visualize_state_abstr_grid
Project Name: rtavenar/tslearn
Commit Name: 46cb0b5b2cf2d836a2cf96be95d4e25a4004675e
Time: 2018-10-22
Author: guillaume.androz@gmail.com
File Name: tslearn/clustering.py
Class Name: KShape
Method Name: _fit_one_init
Project Name: metric-learn/metric-learn
Commit Name: ce5f2384bbc999511ec9497c8d34ec19aa81d238
Time: 2016-07-13
Author: perimosocordiae@gmail.com
File Name: metric_learn/constraints.py
Class Name:
Method Name: positive_negative_pairs