|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjnisvmlight.FeatureVector
jnisvmlight.LabeledFeatureVector
public class LabeledFeatureVector
A labeled feature vector.
| Field Summary | |
|---|---|
protected double |
m_label
|
| Fields inherited from class jnisvmlight.FeatureVector |
|---|
m_dims, m_vals |
| Constructor Summary | |
|---|---|
protected |
LabeledFeatureVector()
|
|
LabeledFeatureVector(double label,
int size)
|
|
LabeledFeatureVector(double label,
int[] dims,
double[] vals)
|
| Method Summary | |
|---|---|
double |
getLabel()
|
void |
setFeatures(double label,
int[] dims,
double[] vals)
|
void |
setLabel(double label)
|
java.lang.String |
toString()
|
| Methods inherited from class jnisvmlight.FeatureVector |
|---|
getCosine, getDimAt, getL1Norm, getL2Norm, getValueAt, normalizeL1, normalizeL1, normalizeL2, setFeatures, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double m_label
| Constructor Detail |
|---|
protected LabeledFeatureVector()
public LabeledFeatureVector(double label,
int size)
public LabeledFeatureVector(double label,
int[] dims,
double[] vals)
| Method Detail |
|---|
public double getLabel()
public void setFeatures(double label,
int[] dims,
double[] vals)
public void setLabel(double label)
public java.lang.String toString()
toString in class FeatureVector
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||