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
IOException
public static TrainSimilarityModel trainModel(String name) throws IOException
IOException
public void setExtents(Context[] extentContexts)
TrainSimilarityModel
setExtents
in interface TrainSimilarityModel
public static void main(String[] args) throws IOException
IOException
public double[] genderDistribution(Context np1)
genderDistribution
in interface TestGenderModel
public void trainModel() throws IOException
trainModel
in interface TrainSimilarityModel
IOException
public int getFemaleIndex()
getFemaleIndex
in interface TestGenderModel
public int getMaleIndex()
getMaleIndex
in interface TestGenderModel
public int getNeuterIndex()
getNeuterIndex
in interface TestGenderModel
Copyright © 2015 The Apache Software Foundation. All rights reserved.