Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Linear regression with multiple features.
import numpy as np
from tensorflow import keras
from tensorflow.keras import layers
x_train = np.random.rand(100,3)
y_train = np.dot(x_train, [1.5,-2.0,1.0])+0.5
model = keras.Sequential([layers.Dense(1, input_shape=[3])])
model.compile(optimizer='sgd', loss='mse')
model.fit(x_train, y_train, epochs=100)Keras is an open-source, high-level deep learning API written in Python. It provides a user-friendly interface for building and training neural networks, running on top of TensorFlow, Theano, or CNTK backends.
Origin & Creator
Keras was developed in 2015 by François Chollet, a Google engineer, to simplify deep learning model creation and experimentation.
Industrial Note
Keras is popular in industry and academia for rapid prototyping, experimentation, and deployment of neural networks due to its simplicity, modularity, and integration with TensorFlow.