【发布时间】:2017-03-04 03:53:23
【问题描述】:
我想使用 LaTex 在我的 RCloud 笔记本中的分析叙述中编写逻辑函数等方程(因为这是我所知道的),例如:
F(x) = 1/(1 + exp(-Ax))
g(F(x)) = ln(\frac{F(x)}{1-F(x)}) = Ax
\frac{F(x)}{1-F(x)} = e^{Ax}
我可以在 RCloud 中使用 LaTeX 表示法吗?
【问题讨论】:
我想使用 LaTex 在我的 RCloud 笔记本中的分析叙述中编写逻辑函数等方程(因为这是我所知道的),例如:
F(x) = 1/(1 + exp(-Ax))
g(F(x)) = ln(\frac{F(x)}{1-F(x)}) = Ax
\frac{F(x)}{1-F(x)} = e^{Ax}
我可以在 RCloud 中使用 LaTeX 表示法吗?
【问题讨论】:
是的,在 RCloud(rcloud.social/tryit 上的展示实例)笔记本的 RMarkdown 单元中,这将呈现:
### If $x$ is a linear function then the argument to the logistic function can be written as a linear system.
$$
F(x) = 1/(1 + exp(-Ax))
$$
### $F(x)$ can be interpretted as the probability of the independent variable $x$ producing an output of 1 given the design matrix $A$.
### When training a binomial logistic regression model we are interested in the inverse problem. That is, given a set of examples what is the optimal value of $A$.
$$
g(F(x)) = ln(\frac{F(x)}{1-F(x)}) = Ax
$$
$$
\frac{F(x)}{1-F(x)} = e^{Ax}
$$
### Note that the $g$, called the *logit* function, is equivalent to simple linear regression and
也是 F(x) 的对数几率。
This 是 RCloud 展示/公共实例上的示例笔记本。
【讨论】: