Package ai.djl.basicdataset.tabular
Class TabularTranslatorFactory
- java.lang.Object
-
- ai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
-
- ai.djl.basicdataset.tabular.TabularTranslatorFactory
-
- All Implemented Interfaces:
ai.djl.translate.TranslatorFactory
public class TabularTranslatorFactory extends ai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
ATranslatorFactory
to extend theTabularTranslator
.
-
-
Constructor Summary
Constructors Constructor Description TabularTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ai.djl.translate.Translator<ListFeatures,TabularResults>
buildBaseTranslator(ai.djl.Model model, java.util.Map<java.lang.String,?> arguments)
java.lang.Class<ListFeatures>
getBaseInputType()
java.lang.Class<TabularResults>
getBaseOutputType()
protected java.util.Map<java.lang.reflect.Type,java.util.function.Function<ai.djl.translate.PostProcessor<TabularResults>,ai.djl.translate.PostProcessor<?>>>
getPostprocessorExpansions()
protected java.util.Map<java.lang.reflect.Type,java.util.function.Function<ai.djl.translate.PreProcessor<ListFeatures>,ai.djl.translate.PreProcessor<?>>>
getPreprocessorExpansions()
-
Methods inherited from class ai.djl.translate.ExpansionTranslatorFactory
getExpansions, getSupportedTypes, newInstance, withTranslator
-
-
-
-
Method Detail
-
buildBaseTranslator
protected ai.djl.translate.Translator<ListFeatures,TabularResults> buildBaseTranslator(ai.djl.Model model, java.util.Map<java.lang.String,?> arguments)
- Specified by:
buildBaseTranslator
in classai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
-
getBaseInputType
public java.lang.Class<ListFeatures> getBaseInputType()
- Specified by:
getBaseInputType
in classai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
-
getBaseOutputType
public java.lang.Class<TabularResults> getBaseOutputType()
- Specified by:
getBaseOutputType
in classai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
-
getPreprocessorExpansions
protected java.util.Map<java.lang.reflect.Type,java.util.function.Function<ai.djl.translate.PreProcessor<ListFeatures>,ai.djl.translate.PreProcessor<?>>> getPreprocessorExpansions()
- Overrides:
getPreprocessorExpansions
in classai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
-
getPostprocessorExpansions
protected java.util.Map<java.lang.reflect.Type,java.util.function.Function<ai.djl.translate.PostProcessor<TabularResults>,ai.djl.translate.PostProcessor<?>>> getPostprocessorExpansions()
- Overrides:
getPostprocessorExpansions
in classai.djl.translate.ExpansionTranslatorFactory<ListFeatures,TabularResults>
-
-