官术网_书友最值得收藏!

How it works...

TensorFlow follows directed graph philosophy to set up computational models where mathematical operations are represented as nodes with each node supporting multiple input and output while the edges represent the communication of data between nodes. There are also edges known as control dependencies in TensorFlow that do not represent the data flow; rather the provide information related to control dependence such as node for the control dependence must finish processing before the destination node of control dependence starts executing.

An example TensorFlow graph for logistic regression scoring is shown in the following diagram:

TensorFlow graph for logistic regression

The preceding figure illustrates the TensorFlow graph to score logistic regression with optimized weights:

The MatMul node performs matrix multiplication between input feature matrix X and optimized weight β. The constant C is then added to the output from the MatMul node. The output from Add is then transformed using the Sigmoid function to output Pr(y=1|X).

主站蜘蛛池模板: 海安县| 深水埗区| 朔州市| 都安| 昆明市| 临湘市| 大埔区| 怀安县| 沂水县| 双流县| 南澳县| 安塞县| 黔西| 西宁市| 卓尼县| 清徐县| 依安县| 定襄县| 寿阳县| 乃东县| 和田县| 鄂托克前旗| 洞头县| 突泉县| 广河县| 无棣县| 木兰县| 光泽县| 静宁县| 榆树市| 铁岭市| 永泰县| 调兵山市| 余干县| 美姑县| 元谋县| 城固县| 忻州市| 永福县| 仪征市| 鹤岗市|