Skip to content

Commit b218f3d

Browse files
author
[zebinyang]
committed
for a fair comparison, adjust roughness by map x to be within [0, 1]; version 0.1.8
1 parent 6f11b94 commit b218f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simtree/simtree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get_projection_equation(self, node_id, precision=3):
157157
for i in range(est.beta_.shape[0]):
158158
if i == 0:
159159
if est.beta_[sortind[i], 0] < 0:
160-
equation += " - "
160+
equation += "- "
161161
equation += str(round(np.abs(est.beta_[sortind[i], 0]), precision)) + self.feature_names[sortind[i]]
162162
continue
163163
else:

0 commit comments

Comments
 (0)