Package | Description |
---|---|
com.structed.data.entities | |
com.structed.models | |
com.structed.models.algorithms | |
com.structed.models.inference | |
com.structed.models.kernels | |
com.structed.utils |
Modifier and Type | Method and Description |
---|---|
Vector |
Example1D.getFeatures() |
Vector |
Example.getFeatures() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Vector> |
Example2D.getFeatures2D() |
java.util.ArrayList<Vector> |
Example.getFeatures2D() |
Modifier and Type | Method and Description |
---|---|
void |
Example1D.setFeatures(Vector features) |
void |
Example.setFeatures(Vector features) |
Modifier and Type | Method and Description |
---|---|
void |
Example2D.setFeatures2D(java.util.ArrayList<Vector> features) |
void |
Example.setFeatures2D(java.util.ArrayList<Vector> features) |
Constructor and Description |
---|
Vector(Vector v) |
Modifier and Type | Method and Description |
---|---|
Vector |
Classifier.getAvgWeights()
a getter for the averaged weights
|
Vector |
StructEDModel.getWeights() |
Vector |
Classifier.train(Vector W,
InstancesContainer trainInstances,
java.util.List<java.lang.Double> params,
InstancesContainer developInstances,
int isAvg,
boolean verbose)
train the algorithm and return the final weights
|
Modifier and Type | Method and Description |
---|---|
PredictedLabels |
Classifier.test(Vector W,
Example example,
int returnAll)
predict
|
Vector |
Classifier.train(Vector W,
InstancesContainer trainInstances,
java.util.List<java.lang.Double> params,
InstancesContainer developInstances,
int isAvg,
boolean verbose)
train the algorithm and return the final weights
|
Constructor and Description |
---|
StructEDModel(Vector init_weights,
IUpdateRule updateRule,
ITaskLoss taskLoss,
IInference inference,
IKernel kernel,
IFeatureFunctions phi,
java.util.ArrayList<java.lang.Double> args) |
StructEDModel(Vector init_weights,
IUpdateRule updateRule,
ITaskLoss taskLoss,
IInference inference,
IKernel kernel,
IFeatureFunctions phi,
java.util.ArrayList<java.lang.Double> args,
boolean isShuffle) |
Modifier and Type | Method and Description |
---|---|
Vector |
SVM.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
RankSVM.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
RampLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
ProbitLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
Perceptron.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
PassiveAggressive.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
OrbitLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
MultiClassReject.update(Vector currentWeights,
Example example,
ClassifierData classifierData) |
Vector |
IUpdateRule.update(Vector currentWeights,
Example example,
ClassifierData classifierData) |
Vector |
DirectLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
CRF.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Modifier and Type | Method and Description |
---|---|
Vector |
SVM.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
RankSVM.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
RampLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
ProbitLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
Perceptron.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
PassiveAggressive.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
OrbitLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
MultiClassReject.update(Vector currentWeights,
Example example,
ClassifierData classifierData) |
Vector |
IUpdateRule.update(Vector currentWeights,
Example example,
ClassifierData classifierData) |
Vector |
DirectLoss.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Vector |
CRF.update(Vector currentWeights,
Example example,
ClassifierData classifierData)
Implementation of the update rule
|
Modifier and Type | Method and Description |
---|---|
PredictedLabels |
InferenceVowelDurationData.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
InferenceRanking.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
InferenceOCR.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
InferenceMultiClassOld.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
InferenceMultiClass.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
InferenceDummyData.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
IInference.predictForTest(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
int returnAll) |
PredictedLabels |
InferenceVowelDurationData.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
PredictedLabels |
InferenceRanking.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
PredictedLabels |
InferenceOCR.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
PredictedLabels |
InferenceMultiClassOld.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
PredictedLabels |
InferenceMultiClass.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
PredictedLabels |
InferenceDummyData.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
PredictedLabels |
IInference.predictForTrain(Example vector,
Vector W,
java.lang.String realClass,
ClassifierData classifierData,
double epsilonArgMax) |
Modifier and Type | Method and Description |
---|---|
Vector |
RBF3Kernel.convertVector(Vector vector,
int vectorSize) |
Vector |
RBF2Kernel.convertVector(Vector vector,
int vectorSize) |
Vector |
Poly2Kernel.convertVector(Vector vector,
int vectorSize) |
Vector |
IKernel.convertVector(Vector vector,
int vectorSize) |
Modifier and Type | Method and Description |
---|---|
Vector |
RBF3Kernel.convertVector(Vector vector,
int vectorSize) |
Vector |
RBF2Kernel.convertVector(Vector vector,
int vectorSize) |
Vector |
Poly2Kernel.convertVector(Vector vector,
int vectorSize) |
Vector |
IKernel.convertVector(Vector vector,
int vectorSize) |
Modifier and Type | Method and Description |
---|---|
static Vector |
MathHelpers.add2Vectors(Vector v1,
Vector v2)
add scalar to a double vector
|
static Vector |
MathHelpers.addScalar2Vectors(Vector v1,
double scalar)
add scalar to a double vector
|
static Vector |
ModelHandler.convert2Weights(java.util.ArrayList<java.util.ArrayList<java.lang.String>> data)
Converts an array list of strings into a vector of double
this function can be used after reading a vector from a file
|
static Vector |
MathHelpers.mulScalarWithVectors(Vector v1,
double scalar)
add scalar to a double vector
|
static Vector |
ModelHandler.setWeights(int type,
java.lang.String path)
Set weights for a model from a given file
This function either sets the new vector to be zeros or reads the data from a given path
|
static Vector |
MathHelpers.subtract2Vectors(Vector v1,
Vector v2)
add scalar to a double vector
|
Modifier and Type | Method and Description |
---|---|
static Vector |
MathHelpers.add2Vectors(Vector v1,
Vector v2)
add scalar to a double vector
|
static Vector |
MathHelpers.addScalar2Vectors(Vector v1,
double scalar)
add scalar to a double vector
|
static Vector |
MathHelpers.mulScalarWithVectors(Vector v1,
double scalar)
add scalar to a double vector
|
static double |
MathHelpers.multipleVectors(Vector v1,
Vector v2)
multiple two double vectors
|
static java.util.HashMap<java.lang.Integer,java.lang.Double> |
ModelHandler.printMul(Vector v1,
Vector v2) |
static java.util.TreeMap<java.lang.Integer,java.lang.Double> |
ModelHandler.sortMul(Vector v1,
Vector v2) |
static Vector |
MathHelpers.subtract2Vectors(Vector v1,
Vector v2)
add scalar to a double vector
|