Skip to content
Snippets Groups Projects

Luc manage normalization

Merged Luc Giffon requested to merge luc_manage_normalization into wip_clean_scripts
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -57,6 +57,7 @@ class OmpForestRegressor(BaseEstimator):
D = self._forest_prediction(X_train)
if self._models_parameters.normalize:
# question: maybe consider other kinds of normalization
self._logger.debug("Compute norm of predicted vectors on X_train")
self._forest_norms = np.linalg.norm(D, axis=0)
D /= self._forest_norms
Loading