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

  • Keras Deep Learning Cookbook
  • Rajdeep Dua Manpreet Singh Ghotra
  • 78字
  • 2021-06-10 19:38:52

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
主站蜘蛛池模板: 黑龙江省| 姚安县| 航空| 建瓯市| 大港区| 天祝| 洪泽县| 阳朔县| 长沙县| 离岛区| 合阳县| 周口市| 平武县| 道孚县| 垦利县| 庆安县| 兴海县| 常宁市| 金湖县| 潜山县| 洱源县| 澜沧| 筠连县| 缙云县| 肃北| 都安| 石家庄市| 台中市| 永嘉县| 芷江| 濮阳县| 固安县| 香河县| 都江堰市| 屏东市| 兴文县| 昌图县| 梁河县| 平乡县| 定结县| 江安县|