undo change to test
parent
1c76de40d1
commit
573d0d1773
|
|
@ -179,8 +179,8 @@ TEST(DT, example)
|
||||||
enum Label {
|
enum Label {
|
||||||
U, V, X, Y, Z
|
U, V, X, Y, Z
|
||||||
};
|
};
|
||||||
typedef DecisionTree<Label, int> BDT;
|
typedef DecisionTree<Label, bool> BDT;
|
||||||
int convert(const int& y) {
|
bool convert(const int& y) {
|
||||||
return y != 0;
|
return y != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -196,7 +196,7 @@ TEST(DT, conversion)
|
||||||
map<string, Label> ordering;
|
map<string, Label> ordering;
|
||||||
ordering[A] = X;
|
ordering[A] = X;
|
||||||
ordering[B] = Y;
|
ordering[B] = Y;
|
||||||
std::function<int(const int&)> op = convert;
|
std::function<bool(const int&)> op = convert;
|
||||||
BDT f2(f1, ordering, op);
|
BDT f2(f1, ordering, op);
|
||||||
// f1.print("f1");
|
// f1.print("f1");
|
||||||
// f2.print("f2");
|
// f2.print("f2");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue