Interface NegativeSampler

All Known Implementing Classes:
RandomNegativeSampler, UserInputNegativeSampler

public interface NegativeSampler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
  • Method Summary

    Modifier and Type
    Method
    Description
    of(org.neo4j.gds.api.GraphStore graphStore, org.neo4j.gds.api.Graph graph, Collection<org.neo4j.gds.NodeLabel> sourceAndTargetNodeLabels, Optional<String> negativeRelationshipType, double negativeSamplingRatio, long testPositiveCount, long trainPositiveCount, org.neo4j.gds.api.IdMap validSourceNodes, org.neo4j.gds.api.IdMap validTargetNodes, Collection<org.neo4j.gds.NodeLabel> sourceLabels, Collection<org.neo4j.gds.NodeLabel> targetLabels, Optional<Long> randomSeed)
     
    void
    produceNegativeSamples(org.neo4j.gds.core.loading.construction.RelationshipsBuilder testSetBuilder, org.neo4j.gds.core.loading.construction.RelationshipsBuilder trainSetBuilder)
     
  • Field Details

  • Method Details

    • of

      static NegativeSampler of(org.neo4j.gds.api.GraphStore graphStore, org.neo4j.gds.api.Graph graph, Collection<org.neo4j.gds.NodeLabel> sourceAndTargetNodeLabels, Optional<String> negativeRelationshipType, double negativeSamplingRatio, long testPositiveCount, long trainPositiveCount, org.neo4j.gds.api.IdMap validSourceNodes, org.neo4j.gds.api.IdMap validTargetNodes, Collection<org.neo4j.gds.NodeLabel> sourceLabels, Collection<org.neo4j.gds.NodeLabel> targetLabels, Optional<Long> randomSeed)
    • produceNegativeSamples

      void produceNegativeSamples(org.neo4j.gds.core.loading.construction.RelationshipsBuilder testSetBuilder, org.neo4j.gds.core.loading.construction.RelationshipsBuilder trainSetBuilder)