Articles on Trending Technologies

Technical articles with clear explanations and examples

How can Keras be used to manually save the weights using Python?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 284 Views

TensorFlow is a machine learning framework provided by Google. It is an open-source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes. Keras is a high-level deep learning API written in Python that runs on top of TensorFlow. It provides essential abstractions and building blocks for developing machine learning solutions with a productive interface. Keras models can be exported to run in web browsers or mobile phones, and it's highly scalable across TPUs and GPU clusters. Keras is already present within the TensorFlow ...

Read More

How can Tensorflow be used to test, reset the model and load the latest checkpoint?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 365 Views

TensorFlow is a machine learning framework provided by Google. It is an open−source framework used in conjunction with Python to implement algorithms, deep learning applications, and much more. It uses NumPy and multi−dimensional arrays (called tensors) to perform complex mathematical operations efficiently. The tensorflow package can be installed on Windows using the below line of code ? pip install tensorflow Keras is a high−level deep learning API that runs on top of TensorFlow. It provides essential abstractions for developing machine learning solutions and is already included within the TensorFlow package. import tensorflow as ...

Read More

How can Keras be used to train a model with new callback in Python?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 232 Views

TensorFlow is a machine learning framework provided by Google. It is an open−source framework used with Python to implement algorithms, deep learning applications and much more. Keras is a high−level deep learning API that runs on top of TensorFlow, providing essential abstractions for building machine learning models with callbacks for training customization. The 'tensorflow' package can be installed on Windows using the below line of code − pip install tensorflow Keras is already present within the TensorFlow package and can be accessed using − import tensorflow as tf from tensorflow import keras ...

Read More

How can Keras be used to save weights for model after specific number of epochs in Python?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 356 Views

Keras is a high-level deep learning API that runs on top of TensorFlow. When training neural networks, it's crucial to save model weights periodically to prevent loss of progress and enable model recovery. Keras provides the ModelCheckpoint callback to automatically save weights after specific intervals. Setting Up Model Checkpointing The ModelCheckpoint callback allows you to save weights at regular intervals during training. Here's how to configure it ? import tensorflow as tf import os # Define checkpoint path with epoch number formatting checkpoint_path = "training_2/cp-{epoch:04d}.ckpt" checkpoint_dir = os.path.dirname(checkpoint_path) # Create directory if it doesn't ...

Read More

How can Keras be used to load weights from checkpoint and re-evaluate the model using Python?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 512 Views

TensorFlow is a machine learning framework provided by Google for implementing algorithms, deep learning applications, and neural networks. When training complex models, saving and loading weights from checkpoints is essential for resuming training or deploying models. Keras, the high-level API built into TensorFlow, provides simple methods to save model weights during training and load them later for evaluation or inference. Installing TensorFlow Install TensorFlow using pip ? pip install tensorflow Loading Weights from Checkpoint Use the load_weights() method to restore saved model weights from a checkpoint file ? import tensorflow ...

Read More

How can Keras be used to evaluate the model using Python?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 367 Views

Keras is a high-level deep learning API that runs on top of TensorFlow. It provides a simple interface for building, training, and evaluating machine learning models. Model evaluation is a crucial step to assess how well your trained model performs on unseen data. Keras is already integrated within TensorFlow and can be accessed easily ? import tensorflow as tf from tensorflow import keras Basic Model Evaluation The evaluate() method is used to assess model performance on test data. Here's a complete example ? import tensorflow as tf from tensorflow import keras import ...

Read More

How can Tensorflow be used to save and load weights for MNIST dataset?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 275 Views

TensorFlow is a machine learning framework provided by Google. It is an open-source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes. The 'tensorflow' package can be installed on Windows using the below line of code: pip install tensorflow Keras is a deep learning API written in Python that runs on top of TensorFlow. It provides a high-level interface for building and training neural network models. When training deep learning models, it's crucial to save model weights periodically to avoid ...

Read More

How can a DNN (deep neural network) model be built on Auto MPG dataset using TensorFlow?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 311 Views

TensorFlow is a machine learning framework provided by Google. It is an open-source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes. A tensor is a data structure used in TensorFlow that helps connect edges in a flow diagram known as the 'Data flow graph'. Tensors are multidimensional arrays or lists that store data. The dataset we use is called the 'Auto MPG' dataset. It contains fuel efficiency data of 1970s and 1980s automobiles with attributes like weight, horsepower, displacement, and so on. ...

Read More

How can a sequential model be built on Auto MPG dataset using TensorFlow?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 332 Views

TensorFlow is a machine learning framework provided by Google. It is an open-source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes. The 'tensorflow' package can be installed on Windows using the below line of code: pip install tensorflow Tensor is a data structure used in TensorFlow. It helps connect edges in a flow diagram known as the 'Data flow graph'. Tensors are multidimensional arrays that can be identified using three main attributes: Rank - It tells about ...

Read More

How can model be evaluated based on Auto MPG using TensorFlow?

AmitDiwan
AmitDiwan
Updated on 25-Mar-2026 204 Views

TensorFlow is a machine learning framework provided by Google. It is an open-source framework used with Python to implement algorithms, deep learning applications, and much more for research and production purposes. The Auto MPG dataset contains fuel efficiency data from 1970s and 1980s automobiles. It includes attributes like weight, horsepower, displacement, and more. The goal is to predict the fuel efficiency of specific vehicles using regression techniques. Installing TensorFlow Install TensorFlow using pip − pip install tensorflow Model Evaluation Function Here's how to evaluate a trained model and visualize the training progress ...

Read More
Showing 5541–5550 of 61,299 articles
« Prev 1 553 554 555 556 557 6130 Next »
Advertisements