Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Use a pre-trained MobileNet model for image classification.
import tensorflow as tf
base_model = tf.keras.applications.MobileNetV2(input_shape=(128,128,3), include_top=False, weights='imagenet')
base_model.trainable = False
model = tf.keras.Sequential([
base_model,
tf.keras.layers.GlobalAveragePooling2D(),
tf.keras.layers.Dense(10, activation='softmax')
])
model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy'])TensorFlow is an open-source, end-to-end platform for machine learning developed by Google. It provides comprehensive tools, libraries, and community resources for building and deploying ML models across different environments.
Origin & Creator
TensorFlow was created by the Google Brain team and released in 2015 to provide a flexible, scalable platform for machine learning.
Industrial Note
TensorFlow is widely adopted in industry and academia for scalable ML solutions, serving AI applications in computer vision, NLP, recommendation systems, and robotics.