Class LinkPrediction

  • All Implemented Interfaces:
    org.neo4j.gds.core.utils.TerminationFlag

    public class LinkPrediction
    extends org.neo4j.gds.Algorithm<LinkPrediction,​org.neo4j.gds.ml.linkmodels.LinkPredictionResult>
    • Field Summary

      • Fields inherited from class org.neo4j.gds.Algorithm

        progressTracker, terminationFlag
      • Fields inherited from interface org.neo4j.gds.core.utils.TerminationFlag

        RUN_CHECK_NODE_COUNT, RUNNING_TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkPrediction​(org.neo4j.gds.ml.linkmodels.pipeline.logisticRegression.LinkLogisticRegressionData modelData, PipelineExecutor pipelineExecutor, java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, org.neo4j.gds.api.GraphStore graphStore, int concurrency, int topN, double threshold, org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.neo4j.gds.ml.linkmodels.LinkPredictionResult compute()  
      LinkPrediction me()  
      void release()  
      • Methods inherited from class org.neo4j.gds.Algorithm

        getProgressTracker, getTerminationFlag, running, withProgressTracker, withTerminationFlag
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.neo4j.gds.core.utils.TerminationFlag

        assertRunning
    • Constructor Detail

      • LinkPrediction

        public LinkPrediction​(org.neo4j.gds.ml.linkmodels.pipeline.logisticRegression.LinkLogisticRegressionData modelData,
                              PipelineExecutor pipelineExecutor,
                              java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels,
                              java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes,
                              org.neo4j.gds.api.GraphStore graphStore,
                              int concurrency,
                              int topN,
                              double threshold,
                              org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker)
    • Method Detail

      • compute

        public org.neo4j.gds.ml.linkmodels.LinkPredictionResult compute()
        Specified by:
        compute in class org.neo4j.gds.Algorithm<LinkPrediction,​org.neo4j.gds.ml.linkmodels.LinkPredictionResult>
      • me

        public LinkPrediction me()
        Specified by:
        me in class org.neo4j.gds.Algorithm<LinkPrediction,​org.neo4j.gds.ml.linkmodels.LinkPredictionResult>
      • release

        public void release()
        Specified by:
        release in class org.neo4j.gds.Algorithm<LinkPrediction,​org.neo4j.gds.ml.linkmodels.LinkPredictionResult>