- This topic has 3 replies, 2 voices, and was last updated 4 years, 2 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
› Forums › Speech Synthesis › The front end › CART › Weighted sum of the two entropies
In TTS notebooks, it says the denominator for the weighted sum is the ‘left’ side, but isn’t it completely arbitrary which side is left and which is right?
Which cell of which notebook are you referring to?
It’s solved now. I hadn’t noticed the formula spread beyond the visible end of the line (i.e. ” + sum(right_counts)) “). I should have counted my brackets.
The rest of this post is the original problem:
I want to achieve this for my second level (having asked one question): “Now we need to calculate the entropy of each of those two distributions, and compute the weighted sum. This will give the total entropy of the partitioned data.”
The above instruction is in tts-m4-2-decision-tree-pencil-and-paper (search for “weighted”)
I think I should use the following calculation: “total_entropy = ( sum(left_counts)*entropy(left_counts) + sum(right_counts)*entropy(right_counts) ) / (sum(left_counts)”
The above instruction is in tts-m4-1-entropy (search for “weighted”).
total_entropy = ( sum(left_counts)*entropy(left_counts) + sum(right_counts)*entropy(right_counts) ) / (sum(left_counts) + sum(right_counts))
Some forums are only available if you are logged in. Searching will only return results from those forums if you log in.
Copyright © 2024 · Balance Child Theme on Genesis Framework · WordPress · Log in