Class MeanAggregator
- java.lang.Object
-
- org.neo4j.gds.embeddings.graphsage.MeanAggregator
-
- All Implemented Interfaces:
Aggregator
public class MeanAggregator extends java.lang.Object implements Aggregator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.gds.embeddings.graphsage.Aggregator
Aggregator.AggregatorType
-
-
Constructor Summary
Constructors Constructor Description MeanAggregator(org.neo4j.gds.ml.core.functions.Weights<org.neo4j.gds.ml.core.tensor.Matrix> weights, ActivationFunction activationFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationFunctionactivationFunction()org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix>aggregate(org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix> previousLayerRepresentations, org.neo4j.gds.ml.core.subgraph.SubGraph subGraph)Aggregator.AggregatorTypetype()java.util.List<org.neo4j.gds.ml.core.functions.Weights<? extends org.neo4j.gds.ml.core.tensor.Tensor<?>>>weights()org.neo4j.gds.ml.core.tensor.MatrixweightsData()java.util.List<org.neo4j.gds.ml.core.functions.Weights<? extends org.neo4j.gds.ml.core.tensor.Tensor<?>>>weightsWithoutBias()
-
-
-
Constructor Detail
-
MeanAggregator
public MeanAggregator(org.neo4j.gds.ml.core.functions.Weights<org.neo4j.gds.ml.core.tensor.Matrix> weights, ActivationFunction activationFunction)
-
-
Method Detail
-
aggregate
public org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix> aggregate(org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix> previousLayerRepresentations, org.neo4j.gds.ml.core.subgraph.SubGraph subGraph)- Specified by:
aggregatein interfaceAggregator
-
weights
public java.util.List<org.neo4j.gds.ml.core.functions.Weights<? extends org.neo4j.gds.ml.core.tensor.Tensor<?>>> weights()
- Specified by:
weightsin interfaceAggregator
-
weightsWithoutBias
public java.util.List<org.neo4j.gds.ml.core.functions.Weights<? extends org.neo4j.gds.ml.core.tensor.Tensor<?>>> weightsWithoutBias()
- Specified by:
weightsWithoutBiasin interfaceAggregator
-
type
public Aggregator.AggregatorType type()
- Specified by:
typein interfaceAggregator
-
activationFunction
public ActivationFunction activationFunction()
- Specified by:
activationFunctionin interfaceAggregator
-
weightsData
public org.neo4j.gds.ml.core.tensor.Matrix weightsData()
-
-