as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a multilayer perceptron (mlp) neural network with three inputs and one output that can predict an output based on the input variables.
user
"""
create a multilayer perceptron (mlp) neural network with three inputs and one output.
"""

import keras
from keras.models import sequential
from keras.layers import dense

# define the model
model = sequential()
model.add(dense(12, input_dim=3, activation='relu'))
model.add(dense(1, activation='sigmoid'))

# compile the model
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])

# summarize the model
model.summary()
assistant