Tensorflow

TensorFlow: Save and Restore Models in Python

Hits: 4  TensorFlow: Save and Restore Models in Python Training a deep neural network model could take quite some time, depending on the complexity of your model, the amount of data you have, the hardware you’re running your models on, etc. On most of the occasions you’ll need to save your progress to a file, …

Machine Learning Mastery: Linear Regression Using Tensorflow

Hits: 19 Linear Regression Using Tensorflow   Brief Summary of Linear Regression Linear Regression is a very common statistical method that allows us to learn a function or relationship from a given set of continuous data. For example, we are given some data points of x and corresponding y and we need to learn the relationship between them that …

Learn Keras by Example – k-Fold Cross-Validating Neural Networks

Hits: 51 k-Fold Cross-Validating Neural Networks If we have smaller data it can be useful to benefit from k-fold cross-validation to maximize our ability to evaluate the neural network’s performance. This is possible in Keras because we can “wrap” any neural network such that it can use the evaluation features available in scikit-learn, including k-fold …

Learn Keras by Example – How to Visualize Performance History

Hits: 17 Visualize Performance History Preliminaries /* Load libraries */ import numpy as np from keras.datasets import imdb from keras.preprocessing.text import Tokenizer from keras import models from keras import layers import matplotlib.pyplot as plt /* Set random seed */ np.random.seed(0) Using TensorFlow backend. Load Movie Review Data /* Set the number of features we want …