-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev rewrite v1.0.16 fix #518
Conversation
wangzhishi
commented
Aug 18, 2021
- fix unit tests for dlt
- fix some unadopted changes in ktrx model
@@ -520,11 +520,11 @@ def _set_knots_scale_matrix(self, df, training_meta): | |||
|
|||
# adjust knot scale with the multiplier derive by the average value and shift by 0.001 to avoid zeros in | |||
# scale parameters | |||
global_med = np.expand_dims(np.mean(np.fabs(self._positive_regressor_matrix), axis=0), -1) | |||
test_flag = local_val < 0.01 * global_med | |||
global_mean = np.expand_dims(np.mean(np.fabs(self._positive_regressor_matrix), axis=0), -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wangzhishi is this the same way we are doing in dev branch?
@@ -559,10 +559,10 @@ def _set_knots_scale_matrix(self, df, training_meta): | |||
|
|||
# adjust knot scale with the multiplier derive by the average value and shift by 0.001 to avoid zeros in | |||
# scale parameters | |||
global_med = np.expand_dims(np.median(np.fabs(self._regular_regressor_matrix), axis=0), -1) | |||
test_flag = local_val < 0.01 * global_med | |||
global_mean = np.expand_dims(np.mean(np.fabs(self._regular_regressor_matrix), axis=0), -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM