Commit 374c5dd7 authored by leswing's avatar leswing
Browse files

Neural Fingerprints for the models I care about

parent 5e6e6a00
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ class MultitaskClassifier(TensorGraph):
      prev_layer = layer

    # Compute the loss function for each label.
    self.neural_fingerprint = prev_layer

    logits = Reshape(
        shape=(-1, n_tasks, n_classes),
@@ -257,6 +258,7 @@ class MultitaskRegressor(TensorGraph):
      if dropout > 0.0:
        layer = Dropout(dropout, in_layers=[layer])
      prev_layer = layer
    self.neural_fingerprint = prev_layer

    # Compute the loss function for each label.