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

  • 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
主站蜘蛛池模板: 抚顺市| 浦城县| 麻栗坡县| 涿鹿县| 大姚县| 台湾省| 小金县| 新昌县| 宣汉县| 东海县| 壤塘县| 嵩明县| 锡林浩特市| 九台市| 蕉岭县| 报价| 鲁山县| 马龙县| 玉溪市| 扎赉特旗| 灵川县| 天峻县| 平乡县| 阿合奇县| 福建省| 安吉县| 即墨市| 商丘市| 博罗县| 罗源县| 徐汇区| 宁阳县| 苍南县| 明星| 广元市| 云梦县| 平顶山市| 信丰县| 临澧县| 华安县| 佛坪县|