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

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

主站蜘蛛池模板: 磐安县| 乌鲁木齐县| 四会市| 张家港市| 靖边县| 天台县| 长兴县| 湘潭县| 吴川市| 龙川县| 确山县| 恩施市| 安溪县| 海门市| 武邑县| 神池县| 河源市| 石狮市| 当涂县| 平定县| 玉树县| 息烽县| 广州市| 海城市| 聂荣县| 永嘉县| 富平县| 龙海市| 襄樊市| 西盟| 镇平县| 玉山县| 碌曲县| 舒城县| 石阡县| 麻江县| 黔东| 肇州县| 荣成市| 北流市| 台江县|