-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData.java
More file actions
68 lines (51 loc) · 1.56 KB
/
Data.java
File metadata and controls
68 lines (51 loc) · 1.56 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package LogisticRegression;
import java.util.Map;
import java.util.Set;
/**
* Created by jay on 11/25/15.
*/
public class Data {
int numberOfCols;
int numberOfClassLabels;
int[] distinctValuesPerColumn;
String[] namesOfColumns;
Set<String> distinctLabels;
Map<String,Integer> labelCount;
public Map<String, Integer> getLabelCount() {
return labelCount;
}
public void setLabelCount(Map<String, Integer> labelCount) {
this.labelCount = labelCount;
}
public Set<String> getDistinctLabels() {
return distinctLabels;
}
public void setDistinctLabels(Set<String> distinctLabels) {
this.distinctLabels = distinctLabels;
}
public String[] getNamesOfColumns() {
return namesOfColumns;
}
public void setNamesOfColumns(String[] namesOfColumns) {
this.namesOfColumns = namesOfColumns;
}
public int getNumberOfCols() {
return numberOfCols;
}
public void setNumberOfCols(int numberOfCols) {
this.numberOfCols = numberOfCols;
this.distinctValuesPerColumn = new int[numberOfCols];
}
public int getNumberOfClassLabels() {
return numberOfClassLabels;
}
public void setNumberOfClassLabels(int numberOfClassLabels) {
this.numberOfClassLabels = numberOfClassLabels;
}
public int[] getDistinctValuesPerColumn() {
return distinctValuesPerColumn;
}
public void setDistinctValuesPerColumn(int[] distinctValuesPerColumn) {
this.distinctValuesPerColumn = distinctValuesPerColumn;
}
}