public InternalRegressionTree FitTargets(IChannel ch, bool[] activeFeatures, Double[] weightedtargets, Double[] targets, Double[] weights)
        {
            var tree = (InternalQuantileRegressionTree)FitTargets(ch, activeFeatures, weightedtargets);

            if (tree != null && _quantileEnabled)
            {
                Double[] distributionWeights = null;
                tree.SetLabelsDistribution(Partitioning.GetDistribution(
                                               targets, weights, _quantileSampleCount, Rand, tree.NumLeaves, out distributionWeights), distributionWeights);
            }

            return(tree);
        }