The connection to ADB are down, and a severe error have occured (Android emulator port is occupied)

Source: Internet
Author: User

First, information theory basis:

Entropy:

Joint entropy: In fact, it is the amount of information needed to describe an average pair of random variables.

Conditional entropy: In the case of a given random variable X, the conditional entropy of the random variable Y is defined as:

Entropy Rate:

Relative entropy (KL distance): The relative entropy of two probability distributions P (x) and Q (x) is defined as:

Cross-entropy: If a random variable x ~ p (x), q (x) is used to approximate the probability distribution of P (x), then the cross-entropy between the random variable x and the model Q is defined as:

Thus, we can calculate the cross-entropy based on the model Q and a sample of L with a large amount of data. When designing the model Q, our aim is to minimize the cross-entropy so that the model is closest to the real probability distribution P (x).

Degree of confusion:

Mutual information:

When the correlation between the two Chinese characters X and Y is strong, the mutual information value I (x, y) >0;x and y are weak, I (x, y) ≈0, and when I (x, y) <0, x and y are called "complementary distributions". In the study of Chinese word segmentation, some scholars use the concept of two-word coupling instead of mutual information: The ci,ci+1 is two consecutive characters, the number of consecutive occurrences of ci,ci+1 in a statistical sample, and the total number of successive occurrences, the ratio of which is the double-character coupling of ci,ci+1:

Some Chinese characters appear in the actual application although more frequent, but the occurrence of the situation is relatively small, once connected together, it is likely to be a word. In this case the calculated mutual information will be relatively small, but in fact the combination of the two should be relatively high. The two-character coupling is exactly the probability of two consecutive Chinese characters appearing in a word, not considering the non-continuous occurrence of two Chinese characters.

For example: Vocabulary disambiguation:

* Derivation of probability p* (a|b) Description:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.