- 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
推薦閱讀
- 大數(shù)據(jù)技術(shù)與應(yīng)用基礎(chǔ)
- Getting Started with MariaDB
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- Matplotlib 3.0 Cookbook
- 最后一個(gè)人類
- Mastering Elastic Stack
- 分布式多媒體計(jì)算機(jī)系統(tǒng)
- Supervised Machine Learning with Python
- Moodle Course Design Best Practices
- 21天學(xué)通C語言
- 軟件構(gòu)件技術(shù)
- 從零開始學(xué)SQL Server
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 嵌入式GUI開發(fā)設(shè)計(jì)
- Mastering Exploratory Analysis with pandas