public class UnsupervisedGnnExplainer extends GnnExplainer
UnsupervisedGraphWiseModel
.Modifier and Type | Method and Description |
---|---|
<ID> UnsupervisedGnnExplanation<ID> |
inferAndExplain(PgxGraph graph,
PgxVertex<ID> vertex)
Blocking version of
inferAndExplainAsync(PgxGraph, PgxVertex) . |
<ID> PgxFuture<UnsupervisedGnnExplanation<ID>> |
inferAndExplainAsync(PgxGraph graph,
PgxVertex<ID> vertex)
Performs inference on the specified vertex and generates an explanation that contains scores of how important
each property and each vertex in the computation graph is for the prediction.
|
UnsupervisedGnnExplainer |
learningRate(double learningRate)
Set the learning rate for the explainer.
|
UnsupervisedGnnExplainer |
marginalize(boolean marginalize)
Set whether the explainer loss is marginalized over features.
|
int |
numClusters()
Get the number of clusters used for the explainer loss.
|
UnsupervisedGnnExplainer |
numClusters(int numClusters)
Set the number of clusters to use in the explainer loss.
|
UnsupervisedGnnExplainer |
numOptimizationSteps(int numOptimizationSteps)
Set the number of optimization steps for the explainer.
|
int |
numSamples()
Get the number of vertex samples used by the explainer.
|
UnsupervisedGnnExplainer |
numSamples(int numSamples)
Set the number of vertex samples to use to optimize the explainer.
|
learningRate, marginalize, numOptimizationSteps
public <ID> UnsupervisedGnnExplanation<ID> inferAndExplain(PgxGraph graph, PgxVertex<ID> vertex)
inferAndExplainAsync(PgxGraph, PgxVertex)
.
Performs inference on the specified vertex and generates an explanation that contains scores of how important
each property and each vertex in the computation graph is for the prediction.graph
- the input graphvertex
- the vertexpublic <ID> PgxFuture<UnsupervisedGnnExplanation<ID>> inferAndExplainAsync(PgxGraph graph, PgxVertex<ID> vertex)
graph
- the input graphvertex
- the vertexpublic UnsupervisedGnnExplainer learningRate(double learningRate)
learningRate
- learning ratepublic UnsupervisedGnnExplainer marginalize(boolean marginalize)
marginalize
- true if loss should be marginalized, false otherwisepublic int numClusters()
public UnsupervisedGnnExplainer numClusters(int numClusters)
numClusters
- number of clusterspublic UnsupervisedGnnExplainer numOptimizationSteps(int numOptimizationSteps)
numOptimizationSteps
- number of optimization stepspublic int numSamples()
public UnsupervisedGnnExplainer numSamples(int numSamples)
numSamples
- number of samples