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

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
主站蜘蛛池模板: 屏东县| 武强县| 龙陵县| 邵东县| 永德县| 武清区| 都昌县| 黄陵县| 邯郸市| 调兵山市| 垫江县| 大荔县| 星座| 泰州市| 金山区| 罗甸县| 大理市| 长阳| 库尔勒市| 陵川县| 正定县| 广西| 福建省| 泰来县| 上栗县| 抚宁县| 潞西市| 武宁县| 玉屏| 方山县| 和田市| 大新县| 古田县| 玉田县| 襄樊市| 高碑店市| 沅江市| 华宁县| 哈巴河县| 新巴尔虎右旗| 湘西|