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

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).

主站蜘蛛池模板: 大城县| 北川| 商南县| 镇坪县| 和龙市| 洪雅县| 大庆市| 鸡西市| 仁布县| 青铜峡市| 芦溪县| 通许县| 福州市| 甘南县| 石河子市| 湟中县| 普陀区| 辉县市| 哈密市| 图们市| 台江县| 龙南县| 道真| 达拉特旗| 家居| 宕昌县| 永济市| 鄱阳县| 惠水县| 且末县| 定西市| 寿阳县| 兴安盟| 康保县| 偏关县| 建湖县| 逊克县| 安西县| 迭部县| 常熟市| 眉山市|