public class GenderModel extends Object implements TestGenderModel, TrainSimilarityModel
| Modifier and Type | Method and Description |
|---|---|
double[] |
genderDistribution(Context np1) |
int |
getFemaleIndex() |
int |
getMaleIndex() |
int |
getNeuterIndex() |
static void |
main(String[] args) |
void |
setExtents(Context[] extentContexts)
Creates simialrity training pairs based on the specified extents.
|
static TestGenderModel |
testModel(String name) |
void |
trainModel() |
static TrainSimilarityModel |
trainModel(String name) |
public static TestGenderModel testModel(String name) throws IOException
IOExceptionpublic static TrainSimilarityModel trainModel(String name) throws IOException
IOExceptionpublic void setExtents(Context[] extentContexts)
TrainSimilarityModelsetExtents in interface TrainSimilarityModelpublic static void main(String[] args) throws IOException
IOExceptionpublic double[] genderDistribution(Context np1)
genderDistribution in interface TestGenderModelpublic void trainModel()
throws IOException
trainModel in interface TrainSimilarityModelIOExceptionpublic int getFemaleIndex()
getFemaleIndex in interface TestGenderModelpublic int getMaleIndex()
getMaleIndex in interface TestGenderModelpublic int getNeuterIndex()
getNeuterIndex in interface TestGenderModelCopyright © 2019 The Apache Software Foundation. All rights reserved.