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

How to do it...

Let's take an existing .csv file from the internet and use it to create a Keras dataset:

dataset = numpy.loadtxt("https://raw.githubusercontent.com/jbrownlee/Datasets/master/pima-indians-diabetes.data.csv", delimiter=",")
# split into input (X) and output (Y) variables
X = dataset[:,0:8]
Y = dataset[:,8]

Note that the dataset can be directly loaded from the URL with the .csv file.

The output of the preceding code is listed in the following snippet:

[ 6. 148. 72. 35. 0. 33.6 0.627 50. ]
1.0
主站蜘蛛池模板: 韶关市| 阳朔县| 镇江市| 建德市| 肇东市| 丰镇市| 迁安市| 广元市| 黄平县| 蓬安县| 象州县| 福泉市| 双辽市| 奈曼旗| 泰安市| 崇明县| 保山市| 逊克县| 弋阳县| 方正县| 云梦县| 葵青区| 汉源县| 临汾市| 淮阳县| 电白县| 沁源县| 博爱县| 徐闻县| 潮安县| 中宁县| 兖州市| 汉中市| 平安县| 塔城市| 于田县| 中卫市| 民和| 石景山区| 黑山县| 驻马店市|