Skip to content
Open
3 changes: 2 additions & 1 deletion 1. Diabetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
model.add(Dense(80, activation='relu'))
model.add(Dense(80, activation='relu'))
model.add(Dense(80, activation='relu'))
model.add(Dense(80, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
# Compile model
model.compile(loss='binary_crossentropy', optimizer='Nadam', metrics=['accuracy'])
# Fit the model
model.fit(X, Y, epochs=1000, batch_size=200)
# evaluate the model
scores = model.evaluate(X, Y)
print("\n%s: %.2f%%" % (model.metrics_names[1], scores[1]*100))
print("\n%s: %.3f%%" % (model.metrics_names[1], scores[1]*100))
''' 99.48% '''
13 changes: 13 additions & 0 deletions features/default/features.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "1.4"
namespace:
key: default
name: Default
flags:
- key: First-flag
name: First flag
type: VARIANT_FLAG_TYPE
enabled: false
- key: Second-flag
name: Second-flag
type: BOOLEAN_FLAG_TYPE
enabled: false