Package oracle.pgx.api.mllib
Class GnnExplanation<ID>
- java.lang.Object
-
- oracle.pgx.api.mllib.GnnExplanation<ID>
-
- Type Parameters:
ID
- the vertex ID type.
- Direct Known Subclasses:
SupervisedGnnExplanation
,UnsupervisedGnnExplanation
public class GnnExplanation<ID> extends java.lang.Object
Explanation of a prediction made by aGraphWiseModel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getEmbedding()
Gets the inferred embedding of the specified vertex.PgxGraph
getImportanceGraph()
Gets the importance Graph, that is, the computation graph with an additional vertex property indicating vertex importance.java.util.Map<VertexProperty<ID,?>,java.lang.Float>
getVertexFeatureImportance()
Gets the feature importances as a map from property to importance value.VertexProperty<ID,java.lang.Float>
getVertexImportanceProperty()
Gets the vertex property that contains the computed vertex importance.
-
-
-
Method Detail
-
getVertexFeatureImportance
public java.util.Map<VertexProperty<ID,?>,java.lang.Float> getVertexFeatureImportance()
Gets the feature importances as a map from property to importance value.- Returns:
- the feature importances.
- Since:
- 21.3
-
getImportanceGraph
public PgxGraph getImportanceGraph()
Gets the importance Graph, that is, the computation graph with an additional vertex property indicating vertex importance. The additional importance property can be retrieved viagetVertexImportanceProperty()
}.- Returns:
- the importance graph.
- Since:
- 21.3
-
getVertexImportanceProperty
public VertexProperty<ID,java.lang.Float> getVertexImportanceProperty()
Gets the vertex property that contains the computed vertex importance.- Returns:
- the vertex importance property.
- Since:
- 21.3
-
getEmbedding
public float[] getEmbedding()
Gets the inferred embedding of the specified vertex.- Returns:
- the embedding.
- Since:
- 21.3
-
-