public class OneVsOneGlmClassifier extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<com.github.chen0040.data.utils.TupleTwo<Glm,Glm>> |
classifiers |
| Constructor and Description |
|---|
OneVsOneGlmClassifier() |
OneVsOneGlmClassifier(List<String> classLabels) |
OneVsOneGlmClassifier(java.util.function.Supplier<Glm> binaryClassifierGenerator) |
| Modifier and Type | Method and Description |
|---|---|
String |
classify(com.github.chen0040.data.frame.DataRow row) |
protected Glm |
createClassifier(String classLabel) |
protected void |
createClassifiers(com.github.chen0040.data.frame.DataFrame dataFrame) |
void |
fit(com.github.chen0040.data.frame.DataFrame dataFrame) |
double |
getAlpha() |
protected double |
getClassifierScore(com.github.chen0040.data.frame.DataRow tuple,
Glm classifier) |
List<String> |
getClassLabels() |
boolean |
isShuffleData() |
protected List<com.github.chen0040.data.frame.DataFrame> |
remerge(List<com.github.chen0040.data.frame.DataFrame> batches,
int k) |
void |
reset() |
Map<String,Integer> |
score(com.github.chen0040.data.frame.DataRow row) |
void |
setAlpha(double alpha) |
void |
setShuffleData(boolean shuffleData) |
protected List<com.github.chen0040.data.frame.DataFrame> |
split(com.github.chen0040.data.frame.DataFrame dataFrame,
int n) |
double |
transform(com.github.chen0040.data.frame.DataRow row) |
public OneVsOneGlmClassifier()
public OneVsOneGlmClassifier(java.util.function.Supplier<Glm> binaryClassifierGenerator)
public boolean isShuffleData()
public void setShuffleData(boolean shuffleData)
public double getAlpha()
public void setAlpha(double alpha)
protected void createClassifiers(com.github.chen0040.data.frame.DataFrame dataFrame)
protected double getClassifierScore(com.github.chen0040.data.frame.DataRow tuple,
Glm classifier)
protected List<com.github.chen0040.data.frame.DataFrame> split(com.github.chen0040.data.frame.DataFrame dataFrame, int n)
protected List<com.github.chen0040.data.frame.DataFrame> remerge(List<com.github.chen0040.data.frame.DataFrame> batches, int k)
public double transform(com.github.chen0040.data.frame.DataRow row)
public void fit(com.github.chen0040.data.frame.DataFrame dataFrame)
public String classify(com.github.chen0040.data.frame.DataRow row)
public void reset()
Copyright © 2017. All rights reserved.