Skip to content

Commit

Permalink
Add structured readout versions of regression tasks.
Browse files Browse the repository at this point in the history
Along the way, remove the unused RootNodeMeanAbsoluteLogarithmicError task.

PiperOrigin-RevId: 588791918
  • Loading branch information
dzelle authored and tensorflower-gardener committed Dec 7, 2023
1 parent 94ba842 commit c7d873e
Show file tree
Hide file tree
Showing 4 changed files with 904 additions and 142 deletions.
6 changes: 5 additions & 1 deletion tensorflow_gnn/api_def/runner-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ runner.Losses
runner.Metric
runner.Metrics
runner.ModelExporter
runner.NodeMeanAbsoluteError
runner.NodeMeanAbsolutePercentageError
runner.NodeMeanSquaredError
runner.NodeMeanSquaredLogScaledError
runner.NodeMeanSquaredLogarithmicError
runner.ParameterServerStrategy
runner.PassthruDatasetProvider
runner.PassthruSampleDatasetsProvider
Expand All @@ -30,7 +35,6 @@ runner.NodeBinaryClassification
runner.RootNodeBinaryClassification
runner.RootNodeLabelFn
runner.RootNodeMeanAbsoluteError
runner.RootNodeMeanAbsoluteLogarithmicError
runner.RootNodeMeanAbsolutePercentageError
runner.RootNodeMeanSquaredError
runner.RootNodeMeanSquaredLogScaledError
Expand Down
6 changes: 5 additions & 1 deletion tensorflow_gnn/runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,16 @@
GraphMeanSquaredError = regression.GraphMeanSquaredError
GraphMeanSquaredLogarithmicError = regression.GraphMeanSquaredLogarithmicError
GraphMeanSquaredLogScaledError = regression.GraphMeanSquaredLogScaledError
NodeMeanAbsoluteError = regression.NodeMeanAbsoluteError
NodeMeanAbsolutePercentageError = regression.NodeMeanAbsolutePercentageError
NodeMeanSquaredError = regression.NodeMeanSquaredError
NodeMeanSquaredLogarithmicError = regression.NodeMeanSquaredLogarithmicError
NodeMeanSquaredLogScaledError = regression.NodeMeanSquaredLogScaledError
RootNodeMeanAbsoluteError = regression.RootNodeMeanAbsoluteError
RootNodeMeanAbsolutePercentageError = regression.RootNodeMeanAbsolutePercentageError
RootNodeMeanSquaredError = regression.RootNodeMeanSquaredError
RootNodeMeanSquaredLogarithmicError = regression.RootNodeMeanSquaredLogarithmicError
RootNodeMeanSquaredLogScaledError = regression.RootNodeMeanSquaredLogScaledError
RootNodeMeanAbsoluteLogarithmicError = regression.RootNodeMeanAbsoluteLogarithmicError

# Training
KerasTrainer = keras_fit.KerasTrainer
Expand Down
Loading

0 comments on commit c7d873e

Please sign in to comment.