DecisionTree.jl icon indicating copy to clipboard operation
DecisionTree.jl copied to clipboard

expose weights to user

Open baggepinnen opened this issue 4 years ago • 1 comments

This PR allows the user to specify a weight vector when fitting trees and forests. There is one oddity, I would every now and then get an out-of-bounds error in the entropy function if weights were larger than 1. I made an ugly hack and thresholded the access to the entropy vector, but before merging this PR that issue should be worked out properly.

baggepinnen avatar Feb 06 '20 11:02 baggepinnen

Coverage Status

Coverage decreased (-6.0%) to 81.802% when pulling 5d442d85987828f357aa17d39e22a739c6a1b283 on baggepinnen:master into 579062f45f5d6046791fa1c68b2e27ab196705e7 on bensadeghi:master.

coveralls avatar Feb 06 '20 11:02 coveralls