<jupyter_start><jupyter_text><jupyter_code>import tensorflow as tf
tf.__version__<jupyter_output><empty_output><jupyter_text>Starting with the simplest MNIST dataset</p˛<jupyter_code>from tensorflow.keras.datasets.mnist import load_data
data = load_data()
(x_train, y_train), (x_test, y_test) = data
x_train, x_test = x_train/255.0, x_test/255.0
tf.test.is_gpu_available()
# Simple Keras Training
import matplotlib.pyplot as plt
import numpy as np
image = x_train[0]
label = y_train[0]
plt.imshow(sample_image, interpolation='nearest')
plt.title("Label: "+str(label))
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12171052631578948, 'fraction_numerical': 0.01644736842105263, 'mean_word_length': 8.227272727272727, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '282197', 'license': 'MIT', 'n_tokens_mistral': 244, 'n_tokens_neox': 233, 'n_words': 45, 'path': 'TF_Session_1.ipynb', 'repo_name': 'atifadib/learning_tf_2', 'size': '608'}