Class ASampleAlgorithmFactory<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,​A extends ASamplingAlgorithm<D>>

    • Constructor Detail

      • ASampleAlgorithmFactory

        public ASampleAlgorithmFactory()
    • Method Detail

      • create

        public static <D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,​A extends ASamplingAlgorithm<D>,​T extends ASampleAlgorithmFactory<D,​A>> T create​(java.lang.Class<T> factoryClazz,
                                                                                                                                                                                 int sampleSize,
                                                                                                                                                                                 long seed)
                                                                                                                                                                          throws java.lang.InstantiationException,
                                                                                                                                                                                 java.lang.IllegalAccessException,
                                                                                                                                                                                 java.lang.reflect.InvocationTargetException,
                                                                                                                                                                                 java.lang.NoSuchMethodException
        Throws:
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.NoSuchMethodException
      • getConstructionInstruction

        protected ai.libs.jaicore.basic.reconstruction.ReconstructionInstruction getConstructionInstruction()
      • getConstructionPlan

        public org.api4.java.common.reconstruction.IReconstructionPlan getConstructionPlan()
        Specified by:
        getConstructionPlan in interface org.api4.java.common.reconstruction.IReconstructible
      • addInstruction

        public void addInstruction​(org.api4.java.common.reconstruction.IReconstructionInstruction instruction)
        Specified by:
        addInstruction in interface org.api4.java.common.reconstruction.IReconstructible
      • getAlgorithm

        public A getAlgorithm​(D inputDataset)
        Description copied from interface: ISamplingAlgorithmFactory
        After the necessary config is done, this method returns a fully configured instance of a sampling algorithm. Here, it is assumed that random aspects or sample sizes have already been defined before
        Specified by:
        getAlgorithm in interface ISamplingAlgorithmFactory<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,​A extends ASamplingAlgorithm<D>>
      • getSampleSize

        public int getSampleSize()
      • setSampleSize

        public void setSampleSize​(int sampleSize)
      • getRandom

        public java.util.Random getRandom()
      • setRandom

        public void setRandom​(java.util.Random random)
      • getSeed

        public long getSeed()
      • setSeed

        public void setSeed​(long seed)