Class MulticoreMLProvider

java.lang.Object
org.episteme.core.mathematics.ml.providers.MulticoreMLProvider
All Implemented Interfaces:
MLProvider, AlgorithmProvider

@AutoService(MLProvider.class) public class MulticoreMLProvider extends Object implements MLProvider
Multicore Java implementation of ML algorithms using Parallel Streams. Optimized for multi-threaded execution.
  • Constructor Details

    • MulticoreMLProvider

      public MulticoreMLProvider()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface AlgorithmProvider
      Specified by:
      getName in interface MLProvider
    • getPriority

      public int getPriority()
      Description copied from interface: AlgorithmProvider
      Returns the execution priority (higher is better).
      Specified by:
      getPriority in interface AlgorithmProvider
    • isAvailable

      public boolean isAvailable()
      Description copied from interface: AlgorithmProvider
      Checks if the provider is available in the current environment.
      Specified by:
      isAvailable in interface AlgorithmProvider
    • kMeans

      public int[] kMeans(float[][] data, int k, int maxIterations)
      Specified by:
      kMeans in interface MLProvider
    • pca

      public float[][] pca(float[][] data, int nComponents)
      Specified by:
      pca in interface MLProvider
    • kMeans

      public int[] kMeans(double[][] data, int k, int maxIterations)
      Specified by:
      kMeans in interface MLProvider
    • pca

      public double[][] pca(double[][] data, int nComponents)
      Specified by:
      pca in interface MLProvider
    • kMeans

      public int[] kMeans(Real[][] data, int k, int maxIterations)
      Specified by:
      kMeans in interface MLProvider
    • pca

      public Real[][] pca(Real[][] data, int nComponents)
      Specified by:
      pca in interface MLProvider