prediction maschine learning
来源:互联网 发布:淘宝店铺被释放怎么办 编辑:程序博客网 时间:2024/05/29 08:15
import pandas as pd --pandas: read data set
from sklearn import linear_model -- (scikit learn maschine learning databse )
import matplotlib.pyplot as plt --visualisieren model and data
#read data
dataframe = pd.read_fwf('brain_body.txt') -- read fwf function read dataset
x_values = dataframe[['Brain']]
y_values = dataframe[['Body']]
#train model on data
body_reg = linear_model.LinearRegression() --initialize the linear regression
body_reg.fit(x_values,y_values)
#vidualize results
plt.scatter(x_values,y_values) --show x,y value
plt.plot(x_values,body_reg.predict(x_values))
plt.show()
阅读全文
0 0
- prediction maschine learning
- Maschine learning #4
- Supervised Learning Model Regression Prediction
- Dense prediction applications in Deep learning
- reinforcement learning,增强学习:Model-Free Prediction
- Reinforcement Learning:Model-Free Prediction 笔记
- Reinforcement Learning系列之二:MC prediction
- 【Deep Learning】genCNN: A Convolutional Architecture for Word Sequence Prediction
- Learning Informative Edge Maps for Indoor Scene Layout Prediction
- Jointly Learning Binary Code for Large-scale Face Image Retrieval and Attributes Prediction
- Deep Learning in Customer Churn Prediction (一) (提升平衡随机森林及特征构建)
- Deep Learning in Customer Churn Prediction (三) (初步特征构建实践及基本模型试验)
- David Silver《Reinforcement Learning》课程解读—— Lecture 4: Model-Free Prediction
- Deep Learning in Customer Churn Prediction (五) (Spark RDD 特征构建实践尝试)
- Deep Learning in Customer Churn Prediction (六) (Spark SQL 特征构建实践)
- 《reinforcement learning:an introduction》第九章《On-policy Prediction with Approximation》总结
- Deep Learning in Customer Churn Prediction (二) (WTTE模型 ——what time to the next event)
- Deep Learning in Customer Churn Prediction (四) (关注的Churn是大多数时的聚类解决方案)
- C#
- mybatis Invalid bound statement (not found)
- Confluent Platform部署
- 数位分离以及转化成k进制--Integer to Roman
- 【译】如何应对 CNN 中的过拟合问题
- prediction maschine learning
- 你没看错:Swift可以直接调用Python函数库
- jquery day3
- QDU Julyc和CerberuX去吃饭后传(贪心、思维)
- EOJ3335&&hdu6162 Ch’s gift 树剖/dfs序/离线查询/主席树,各显神通
- Paint类的其它函数
- 检测绿色征途的回调-加载镜像
- recursive and iterative ways to reverse a LinkedList
- 中兴ZXHN F412/F460/F660等破解超级密码、破解用户限制、关闭远程控制、恢复路由器拨号