|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.clustering.clusterer.SVClusteringAlgorithm
public class SVClusteringAlgorithm
SVClustering.
| Field Summary | |
|---|---|
protected int[] |
at_bound
|
protected double |
C
|
protected double |
convergence_epsilon
|
protected double |
descend
|
protected SVCExampleSet |
examples
|
protected int |
examples_total
|
protected double |
feasible_epsilon
|
protected double |
is_zero
|
protected double[] |
K
|
protected Kernel |
kernel
|
protected double |
lambda_eq
|
protected double |
lambda_factor
|
protected double |
lambda_WS
|
protected int |
parameters_working_set_size
|
protected double[] |
primal
|
protected QuadraticProblem |
qp
|
protected int |
shrink_const
|
protected double[] |
sum
|
protected double |
sum_alpha
|
protected int |
target_count
|
protected int |
to_shrink
|
protected int[] |
working_set
|
protected int |
working_set_size
|
| Constructor Summary | |
|---|---|
SVClusteringAlgorithm()
|
|
SVClusteringAlgorithm(Operator paramOperator,
Kernel new_kernel,
SVCExampleSet new_examples)
|
|
| Method Summary | |
|---|---|
protected void |
calculate_working_set()
Calculates the working set |
protected void |
check()
check internal variables, for debugging only |
protected boolean |
convergence()
Checks if the optimization converged |
protected void |
exit_optimizer()
exit the optimizer |
protected boolean |
feasible(int i)
|
double |
getB()
Returns the value of b. |
double |
getR()
Returns the value of R. |
double[] |
getWeights()
Returns the weights of all features. |
protected void |
init_optimizer()
init the optimizer |
protected void |
init_working_set()
Initialises the working set |
void |
init(Kernel new_kernel,
SVCExampleSet new_examples)
|
void |
init(Kernel kernel_,
SVMExamples examples_)
Initializes this SVM. |
protected double |
lambda(int i)
lagrangian multiplier of variable i |
protected void |
logln(int level,
java.lang.String message)
log the output plus newline |
protected double |
nabla(int i)
|
protected void |
optimize()
Calls the optimizer |
double |
predict(SVMExample sVMExample)
predict a single example |
void |
predict(SVMExamples to_predict)
predict values on the testset with model |
protected void |
print_statistics()
print statistics about result |
protected void |
project_to_constraint()
Project variables to constraints |
protected void |
put_optimizer_values()
Stores the optimizer results |
protected void |
reset_shrinked()
reset the shrinked variables |
protected void |
shrink()
shrink the variables |
void |
train()
Train the SVM |
protected void |
update_working_set()
Updates the working set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Kernel kernel
protected SVCExampleSet examples
protected int examples_total
protected int target_count
protected double convergence_epsilon
protected double lambda_factor
protected int[] at_bound
protected double[] sum
protected double[] K
protected int[] working_set
protected double[] primal
protected double sum_alpha
protected double lambda_eq
protected int to_shrink
protected double feasible_epsilon
protected double lambda_WS
protected int working_set_size
protected int parameters_working_set_size
protected double is_zero
protected int shrink_const
protected double C
protected double descend
protected QuadraticProblem qp
| Constructor Detail |
|---|
public SVClusteringAlgorithm()
public SVClusteringAlgorithm(Operator paramOperator,
Kernel new_kernel,
SVCExampleSet new_examples)
throws UndefinedParameterError
UndefinedParameterError| Method Detail |
|---|
public void init(Kernel new_kernel,
SVCExampleSet new_examples)
public void train()
train in interface SVMInterfaceprotected void print_statistics()
public double getB()
getB in interface SVMInterfacepublic double getR()
protected void init_optimizer()
protected void exit_optimizer()
protected void shrink()
protected void reset_shrinked()
protected void project_to_constraint()
protected void calculate_working_set()
java.lang.Exception - on any errorprotected void update_working_set()
protected void init_working_set()
java.lang.Exception - on any errorprotected void optimize()
protected void put_optimizer_values()
protected boolean convergence()
protected final double nabla(int i)
protected double lambda(int i)
i - variable index
protected boolean feasible(int i)
protected void logln(int level,
java.lang.String message)
level - warning levelmessage - Message testpublic void predict(SVMExamples to_predict)
predict in interface SVMInterfacepublic double predict(SVMExample sVMExample)
predict in interface SVMInterfaceprotected void check()
public double[] getWeights()
SVMInterface
getWeights in interface SVMInterface
public void init(Kernel kernel_,
SVMExamples examples_)
SVMInterface
init in interface SVMInterface
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||