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
I have added a scripts folder as suggested by Prof. Patiny which contains code I wrote in order to test and fix the issues. This folder can be deleted as it is there for testing purposes.
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