<p>I cannot find the Keras page you linked now. But I can still find the Keras document through search.</p>

<p>Binary cross entropy in the document is just a special case when the output can take only one of <strong>two</strong> classes. Make the context clear, there is no need to distinguish them in normal text. The mathematical formula of cross entropy just can deal with any number of classes (2 and above). So whether it is "binary" is implied in the problem you want to solve. There is no need to make it explicit.</p>

<p>So why the Keras documents explicitly distinguish them? This is because when the output can take only two classes, the input can take a different format than when there are multiple classes, and may save some space. So they have "binary_crossentropy" and "categorical_crossentropy", which deals with different input. Note that even you have only two classes, you can still use "categorical_crossentropy" by manipulating your input format to fit the requirements of "categorical_crossentropy".</p>

<p>As the translation, you may use "二类的交叉熵" and "多类的交叉熵". But these are only words that I coined up. There is no specific term for this, as this is only a software thing.</p>

CC BY-SA 3.0
2018-03-01T14:00:18.707Z
Very sorry, I overlooked this answer... It is actually a really good one.
Blaszard
CC BY-SA 3.0
2017-10-02T01:09:22.120Z
2018-03-01T13:58:42.003Z
2018-03-01T13:58:42.003Z
fefe
<p>I happen to be a computer science guy and Chinese, so I think I may answer your question. Yes, your doubt is correct. These suppose to be an adjective for "binary". Using "交叉熵" as the translation for "binary cross-entropy" is not precise. "交叉熵" should be the translation for "cross-entropy".</p>

<p>I did some quick search, and it seems that there's no formal Chinese translation for the term "binary cross-entropy", may be because the term "binary cross-entropy" is not used as frequently as "cross-entropy". Also, I did not see a formal translation for the term "categorical cross-entropy". So, I guess you can use direct translation, such as "0-1交叉熵" or “二元交叉熵” for "binary cross entropy". </p>

CC BY-SA 3.0
2018-03-01T06:57:26.457Z
2018-03-01T06:57:26.457Z
Steve Yang
<p>"Binary" means 二元的 in Chinese. Such terminology appears at "binary tree"(二叉树, literally "two-forked tree"), "binary distribution"(二项分布, literally "two-item distribution").<br>
Please provide the explanation of "binary" in the context of "binary cross-entropy loss function" and I'll update my answer.<br>
P.S. I know a little about ML and DL, so don't be afraid of using ML-specific terminologies. </p>

CC BY-SA 3.0
2017-09-01T03:48:59.237Z
2017-09-01T03:48:59.237Z
Winfred Huang
<p>NOTE: <a href="https://en.wikipedia.org/wiki/Cross_entropy" rel="nofollow noreferrer">"binary cross-entropy"</a> is a terminology used in Machine Learning field.</p>

<hr>

<p>交叉熵 seems to mean "cross-entropy" in Mandarin Chinese. <a href="https://www.chinatt.news/6401326385628971521.html" rel="nofollow noreferrer">According to this page</a> however, it expresses the "binary cross-entropy loss" as 交叉熵损失. </p>

<p>Also, <a href="http://keras-cn-docs.readthedocs.io/zh_CN/latest/blog/autoencoder/" rel="nofollow noreferrer">according to Keras documentation on Chinese</a> (Keras is a popular deep learning library on Python):</p>

<blockquote>
  <p>下面我们训练自编码器，来重构MNIST中的数字，这里使用逐像素的<strong>交叉熵</strong>作为损失函数，优化器为adam</p>
</blockquote>

<p>However, it uses "binary cross-entropy" as a loss function.</p>

<p>Now, 交叉 means <code>cross</code> and 熵 means <code>entropy</code>. So there is no word for <code>binary</code> to be fit into. <a href="http://blog.csdn.net/rtygbwwwerr/article/details/50778098" rel="nofollow noreferrer">This page written in Chinese</a> also shows it as "cross-entropy":</p>

<blockquote>
  <p>交叉熵（Cross-Entropy）</p>
</blockquote>

<p>So I wonder if it is no problem to just use <code>交叉熵</code> to mean "binary cross-entropy". Or is there any other word to specifically mean "binary cross-entropy"? How about other jargons, such as "categorical cross-entropy"? If I use 交叉熵, does it always mean "binary cross-entropy"?</p>

CC BY-SA 3.0
2017-09-01T06:53:28.503Z
What is the difference between "cross entropy" and "binary cross-entropy"?
fefe
CC BY-SA 3.0
2017-10-02T00:43:53.377Z
I can no longer access the link to the Keras document
fefe
CC BY-SA 3.0
2017-08-17T12:34:13.753Z
Not sure in your area. However, I have dealt with lots of binary files in my work. We translate the word binary to 二进制 in Chinese. So, binary file ==二进制文件, where you can only see 010101110000.... These files can be read/interpreted by specific machines or some decoding software.
dan
CC BY-SA 3.0
2017-08-17T12:50:54.400Z
@dan Right, there should be something specifically related to it. That's why I wondered and asked it. Thank you for the insight.
Blaszard
<word-choice><terminology>
How can "binary cross-entropy" be expressed in Mandarin Chinese?
# How can "binary cross-entropy" be expressed in Mandarin Chinese?

(Asked by: username_0 on 2017-08-17)

NOTE: ["binary cross-entropy"](https://en.wikipedia.org/wiki/Cross_entropy) is a terminology used in Machine Learning field.

---

交叉熵 seems to mean "cross-entropy" in Mandarin Chinese. [According to this page](https://www.chinatt.news/6401326385628971521.html) however, it expresses the "binary cross-entropy loss" as 交叉熵损失.

Also, [according to Keras documentation on Chinese](http://keras-cn-docs.readthedocs.io/zh_CN/latest/blog/autoencoder/) (Keras is a popular deep learning library on Python):

> 下面我们训练自编码器，来重构MNIST中的数字，这里使用逐像素的**交叉熵**作为损失函数，优化器为adam

However, it uses "binary cross-entropy" as a loss function.

Now, 交叉 means `cross` and 熵 means `entropy`. So there is no word for `binary` to be fit into. [This page written in Chinese](http://blog.csdn.net/rtygbwwwerr/article/details/50778098) also shows it as "cross-entropy":

> 交叉熵（Cross-Entropy）

So I wonder if it is no problem to just use `交叉熵` to mean "binary cross-entropy". Or is there any other word to specifically mean "binary cross-entropy"? How about other jargons, such as "categorical cross-entropy"? If I use 交叉熵, does it always mean "binary cross-entropy"?

**Tags:** word-choice, terminology

> **Comments:**
> **username_2**: Not sure in your area. However, I have dealt with lots of binary files in my work. We translate the word binary to 二进制 in Chinese. So, binary file ==二进制文件, where you can only see 010101110000.... These files can be read/interpreted by specific machines or some decoding software.  
> **username_0**: @username_2 Right, there should be something specifically related to it. That's why I wondered and asked it. Thank you for the insight.  
> **username_1**: What is the difference between "cross entropy" and "binary cross-entropy"?  
> **username_1**: I can no longer access the link to the Keras document  

---

## 3 answers

### Answer by username_1 on 2017-10-02. Score: 1 | Accepted answer

I cannot find the Keras page you linked now. But I can still find the Keras document through search.

Binary cross entropy in the document is just a special case when the output can take only one of **two** classes. Make the context clear, there is no need to distinguish them in normal text. The mathematical formula of cross entropy just can deal with any number of classes (2 and above). So whether it is "binary" is implied in the problem you want to solve. There is no need to make it explicit.

So why the Keras documents explicitly distinguish them? This is because when the output can take only two classes, the input can take a different format than when there are multiple classes, and may save some space. So they have "binary\_crossentropy" and "categorical\_crossentropy", which deals with different input. Note that even you have only two classes, you can still use "categorical\_crossentropy" by manipulating your input format to fit the requirements of "categorical\_crossentropy".

As the translation, you may use "二类的交叉熵" and "多类的交叉熵". But these are only words that I coined up. There is no specific term for this, as this is only a software thing.

> **Comments:**
> **username_0**: Very sorry, I overlooked this answer... It is actually a really good one.  

---

### Answer by username_3 on 2018-03-01. Score: 1

I happen to be a computer science guy and Chinese, so I think I may answer your question. Yes, your doubt is correct. These suppose to be an adjective for "binary". Using "交叉熵" as the translation for "binary cross-entropy" is not precise. "交叉熵" should be the translation for "cross-entropy".

I did some quick search, and it seems that there's no formal Chinese translation for the term "binary cross-entropy", may be because the term "binary cross-entropy" is not used as frequently as "cross-entropy". Also, I did not see a formal translation for the term "categorical cross-entropy". So, I guess you can use direct translation, such as "0-1交叉熵" or “二元交叉熵” for "binary cross entropy".


---

### Answer by username_4 on 2017-09-01. Score: 0

"Binary" means 二元的 in Chinese. Such terminology appears at "binary tree"(二叉树, literally "two-forked tree"), "binary distribution"(二项分布, literally "two-item distribution").  
Please provide the explanation of "binary" in the context of "binary cross-entropy loss function" and I'll update my answer.  
P.S. I know a little about ML and DL, so don't be afraid of using ML-specific terminologies.


---

