Commit 2eb0569a authored by T.SAI CHANDANA 's avatar T.SAI CHANDANA

Add new file

parent 88074bd0
Pipeline #23337 failed
from keras.models import Sequential
from keras.layers import Dense
import numpy
numpy.random.seed(7)
import csv
dataset = numpy.loadtxt("/home/swecha/Downloads/pima-indians-diabetes.csv", delimiter=",")
X = dataset[:,0:8]
Y = dataset[:,8]
dataset = numpy.loadtxt("/home/swecha/Downloads/pima-indians-diabetes.csv", delimiter=",")
X = dataset[:,0:8]
Y = dataset[:,8]
model = Sequential()
model.add(Dense(12, input_dim=8, activation='relu'))
model.add(Dense(8, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
model.fit(X, Y, epochs=150, batch_size=10)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment