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

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
主站蜘蛛池模板: 岗巴县| 宣城市| 甘谷县| 松阳县| 灵石县| 历史| 独山县| 双鸭山市| 信丰县| 英吉沙县| 夏邑县| 定兴县| 沾化县| 德钦县| 固安县| 鞍山市| 彭泽县| 蓬溪县| 遵化市| 抚远县| 襄城县| 长顺县| 鹤岗市| 固原市| 桑植县| 泽库县| 沈丘县| 五家渠市| 西青区| 原阳县| 兴宁市| 仲巴县| 望都县| 密云县| 松原市| 抚顺县| 阜城县| 富川| 临夏市| 那坡县| 普宁市|