Binary logistic regression modeling with TensorFlow™

被引:3
|
作者
Zhang, Zhongheng [1 ]
Mo, Lei [2 ]
Huang, Chen [3 ]
Xu, Ping [4 ]
机构
[1] Zhejiang Univ, Sch Med, Sir Run Run Shaw Hosp, Dept Emergency Med, Hangzhou 310016, Zhejiang, Peoples R China
[2] Lejiu Healthcare Technol Co Ltd, Dept Biostat, Shanghai, Peoples R China
[3] Zhejiang Univ, Sch Med, Sir Run Run Shaw Hosp, Informat Technol IT Ctr,Nursing Dept, Hangzhou 310016, Zhejiang, Peoples R China
[4] Zigong Fourth Peoples Hosp, Emergency Dept, Zigong 643000, Peoples R China
关键词
Logistic regression; TensorFlow; gradient descent;
D O I
10.21037/atm.2019.09.125
中图分类号
R73 [肿瘤学];
学科分类号
100214 ;
摘要
Logistic regression model is one of the most widely used modeling techniques in clinical medicine, owing to the widely available statistical packages for its implementation, and the ease of interpretation. However, logistic model training requires strict assumptions (such as additive and linearity) to be met and these assumptions may not hold true in real world. Thus, clinical investigators need to master some advanced model training methods that can predict more accurately. TensorFlow (TM) is a popular tool in training machine learning models such as supervised, unsupervised and reinforcement learning methods. Thus, it is important to learn TensorFlow (TM) in the era of big data. Since most clinical investigators are familiar with the logistic regression model, this article provides a step-by-step tutorial on how to train a logistic regression model in TensorFlow (TM), with the primary purpose to illustrate how the TensorFlow (TM) works. We first need to construct a graph with tensors and operations, then the graph is run in a session. Finally, we display the graph and summary statistics in the TensorBoard, which shows the changes of the accuracy and loss value across the training iterations.
引用
收藏
页数:10
相关论文
共 50 条