Skip to content

Commit 82da2f3

Browse files
committed
Merge branch 'layerwise' of https://github.com/Xtra-Computing/FedTree into layerwise
2 parents 3ed5354 + efd8caf commit 82da2f3

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

python/setup.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
from shutil import copyfile
44
from sys import platform
55

6-
# dirname = path.dirname(path.abspath(__file__))
6+
dirname = path.dirname(path.abspath(__file__))
77

8-
# if platform == "linux" or platform == "linux2":
9-
# lib_path = path.abspath(path.join(dirname, '../build/lib/libFedTree.so'))
10-
# elif platform == "win32":
11-
# lib_path = path.abspath(path.join(dirname, '../build/bin/Debug/libFedTree.dll'))
12-
# elif platform == "darwin":
13-
# lib_path = path.abspath(path.join(dirname, '../build/lib/libFedTree.dylib'))
14-
# else:
15-
# print("OS not supported!")
16-
# exit()
8+
if platform == "linux" or platform == "linux2":
9+
lib_path = path.abspath(path.join(dirname, '../build/lib/libFedTree.so'))
10+
elif platform == "win32":
11+
lib_path = path.abspath(path.join(dirname, '../build/bin/Debug/libFedTree.dll'))
12+
elif platform == "darwin":
13+
lib_path = path.abspath(path.join(dirname, '../build/lib/libFedTree.dylib'))
14+
else:
15+
print("OS not supported!")
16+
exit()
1717

18-
# if not path.exists(path.join(dirname, "fedtree", path.basename(lib_path))):
19-
# copyfile(lib_path, path.join(dirname, "fedtree", path.basename(lib_path)))
18+
if not path.exists(path.join(dirname, "fedtree", path.basename(lib_path))):
19+
copyfile(lib_path, path.join(dirname, "fedtree", path.basename(lib_path)))
2020

21-
lib_path = "./fedtree/libFedTree.so"
21+
# lib_path = "./fedtree/libFedTree.so"
2222

2323

2424
setuptools.setup(name="fedtree",

src/FedTree/Tree/gbdt.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ void GBDT::predict_raw(const GBDTParam &model_param, const DataSet &dataSet, Syn
195195

196196
int total_num_node = num_iter * num_class * num_node;
197197
y_predict.resize(n_instances * num_class);
198-
std::cout<<"num_class in predict_raw:"<<num_class<<std::endl;
199198
SyncArray<Tree::TreeNode> model(total_num_node);
200199
auto model_data = model.host_data();
201200
int tree_cnt = 0;

0 commit comments

Comments
 (0)