The variable this.gainThreshold in the TreeNode implementation was not initialized properly and this was leading to an incorrect creation of regression tree. This will be adressed in a separate pull request for the ml-cart module.
Added the possiblity to change the number of samples one wants to use in the training phase
Added a function featureImportance in order to compute the feature importance as was suggested by @xdadda
The variable this.gainThreshold in the TreeNode implementation was not initialized properly and this was leading to an incorrect creation of regression tree. This will be adressed in a separate pull request for the ml-cart module.
Added the possiblity to change the number of samples one wants to use in the training phase
Added a function featureImportance in order to compute the feature importance as was suggested by @xdadda