Skip to content

Commit

Permalink
Format with latest Black version
Browse files Browse the repository at this point in the history
  • Loading branch information
danielegrattarola committed Jun 1, 2023
1 parent ed62ea1 commit 197adfd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/graph_prediction/qm9_ecc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
loader_tr = DisjointLoader(dataset_tr, batch_size=batch_size, epochs=epochs)
loader_te = DisjointLoader(dataset_te, batch_size=batch_size, epochs=1)


################################################################################
# Build model
################################################################################
Expand Down
2 changes: 2 additions & 0 deletions examples/other/node_clustering_tvgnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
y = np.argmax(Y, axis=-1)
n_clust = Y.shape[-1]


################################
# MODEL
################################
Expand Down Expand Up @@ -101,6 +102,7 @@ def call(self, inputs):
model = ClusteringModel(aggr=MP_layers, pool=pool_layer)
opt = tf.keras.optimizers.Adam(learning_rate=learning_rate)


################################
# TRAINING
################################
Expand Down
2 changes: 0 additions & 2 deletions spektral/layers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def __init__(
kernel_constraint=None,
**kwargs
):

super().__init__(**kwargs)
self.trainable_kernel = trainable_kernel
self.activation = activations.get(activation)
Expand Down Expand Up @@ -184,7 +183,6 @@ class MinkowskiProduct(Layer):
"""

def __init__(self, activation=None, **kwargs):

super().__init__(**kwargs)
self.activation = activations.get(activation)

Expand Down
1 change: 0 additions & 1 deletion spektral/layers/pooling/dmon_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def reduce_index(self, i, s, **kwargs):
return i_pool

def modularity_loss(self, a, s, a_pool):

if K.is_sparse(a):
n_edges = tf.cast(len(a.values), dtype=s.dtype)

Expand Down
1 change: 0 additions & 1 deletion spektral/layers/pooling/global_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

class GlobalPool(Layer):
def __init__(self, **kwargs):

super().__init__(**kwargs)
self.supports_masking = True
self.pooling_op = None
Expand Down

0 comments on commit 197adfd

Please sign in to comment.