import keras model = keras.models.Sequential([ keras.layers.Dense(4, activation='relu', input_dim=1, name='layer1', kernel_initializer='one'), keras.layers.Dense(1, activation='sigmoid', name='layer2') ]) model.compile(optimizer='adam', loss='mse') m…