December 2017
Intermediate to advanced
536 pages
14h 23m
English
Here is how we proceed with the recipe:
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt
def normalize(X) """ Normalizes the array X """ mean = np.mean(X) std = np.std(X) X = (X - mean)/std return Xdef append_bias_reshape(features,labels): m = features.shape[0] n = features.shape[1] x = np.reshape(np.c_[np.ones(m),features],[m,n ...
Read now
Unlock full access