Class UnsupervisedGraphWiseModel

    • Constructor Detail

      • UnsupervisedGraphWiseModel

        public UnsupervisedGraphWiseModel​(PgxSession session,
                                          oracle.pgx.api.internal.Core core,
                                          java.util.function.Supplier<java.lang.String> keystorePathSupplier,
                                          java.util.function.Supplier<char[]> keystorePasswordSupplier,
                                          oracle.pgx.api.internal.mllib.UnsupervisedGraphWiseModelMetadata modelMetadata,
                                          java.util.function.BiFunction<PgxSession,​oracle.pgx.api.internal.Graph,​PgxGraph> graphConstructor)
        This constructor should never be used to get a model. Use UnsupervisedGraphWiseModelBuilder instead.
        Parameters:
        session - PgxSession to which the model is connected
        core - Core to which the model is connected
        modelMetadata - Metadata concerning the different hyper-parameters of the GraphWise Model
        Since:
        21.2
      • UnsupervisedGraphWiseModel

        public UnsupervisedGraphWiseModel​(PgxSession session,
                                          oracle.pgx.api.internal.Core core,
                                          java.util.function.Supplier<java.lang.String> keystorePathSupplier,
                                          java.util.function.Supplier<char[]> keystorePasswordSupplier,
                                          oracle.pgx.api.internal.mllib.ModelMetadata modelMetadata,
                                          java.util.function.BiFunction<PgxSession,​oracle.pgx.api.internal.Graph,​PgxGraph> graphConstructor)
    • Method Detail

      • gnnExplainer

        public UnsupervisedGnnExplainer gnnExplainer()
        Get a GnnExplainer object that can explain this model's predictions.
        Returns:
        UnsupervisedGnnExplainer object
        Since:
        22.2
      • storeAsync

        public PgxFuture<java.lang.Void> storeAsync​(java.lang.String path,
                                                    java.lang.String key)
                                             throws java.util.concurrent.ExecutionException,
                                                    java.lang.InterruptedException
        Stores the GraphWise model in the specified path, with encryption.
        Parameters:
        path - path to store the model
        key - the encryption key, or null if no encryption should be used.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
        Since:
        21.2
      • storeAsync

        public PgxFuture<java.lang.Void> storeAsync​(java.lang.String path,
                                                    java.lang.String key,
                                                    boolean overwrite)
        Stores the GraphWise model in the specified path, with encryption.
        Parameters:
        path - path to store the model
        key - the encryption key, or null if no encryption should be used.
        Since:
        21.2
      • store

        public void store​(java.lang.String path,
                          java.lang.String key)
                   throws java.util.concurrent.ExecutionException,
                          java.lang.InterruptedException
        Blocking version of storeAsync(String, String). Calls storeAsync(String, String) and waits for the returned PgxFuture to complete.
        Throws:
        java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.
        java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.
        Since:
        21.2
      • store

        public void store​(java.lang.String path,
                          java.lang.String key,
                          boolean overwrite)
                   throws java.util.concurrent.ExecutionException,
                          java.lang.InterruptedException
        Blocking version of storeAsync(String, String). Calls storeAsync(String, String) and waits for the returned PgxFuture to complete.
        Throws:
        java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.
        java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.
        Since:
        21.2
      • getEmbeddingConfig

        public GraphWiseEmbeddingConfig getEmbeddingConfig()
        Gets the configuration object for the embedding method
        Returns:
        configuration
        Since:
        23.2