-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstance.java
More file actions
37 lines (26 loc) · 727 Bytes
/
Instance.java
File metadata and controls
37 lines (26 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.io.Serializable;
public class Instance implements Serializable, Cloneable {
private static final long serialVersionUID = 1L;
Label _label = null;
FeatureVector _feature_vector = null;
public Instance(FeatureVector feature_vector, Label label) {
this._feature_vector = feature_vector;
this._label = label;
}
public Label getLabel() {
return _label;
}
public void setLabel(Label label) {
this._label = label;
}
public FeatureVector getFeatureVector() {
return _feature_vector;
}
public void setFeatureVector(FeatureVector feature_vector) {
this._feature_vector = feature_vector;
}
@Override
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
}