public static int newDecisionNode(TrainingSet trainingSet, DecisionTree currentNode){
        int moreImportantAtt = -1;
        double moreImportant = 0.0, currentImportance;
        for(Map.Entry<Integer,Double> entry : trainingSet.discreteAtt.entrySet())
        {
            if(moreImportantAtt == -1)
                moreImportantAtt = entry.getKey();
            currentImportance = trainingSet.finalAttGain(entry.getKey());
            if(moreImportant < currentImportance)
            {
                moreImportant = currentImportance;
                moreImportantAtt = entry.getKey();
            }
        }
        
        currentNode.attribute = moreImportantAtt;
        currentNode.decision = trainingSet.discreteAtt.get(moreImportantAtt);//Se obtiene el umbral
        return moreImportantAtt;
    }