<jupyter_start><jupyter_text><jupyter_code>!pip install tensorflow
import tensorflow as tf
print(tf.__version__)

!pip install tensorflow-gpu
import tensorflow as tf
print(tf.__version__)
#house price prediction using tensorflow

import tensorflow as tf
import numpy as np
import math
import matplotlib.pyplot as plt
import matplotlib.animation as animation #animation support

#generate house sizes between 1000 and 3500 (sq ft)
num_house=150
np.random.seed(42)
house_size=np.random.randint(low=1000,high=3500,size=num_house)

#generate house prices from house sizes with random noise added
np.random.seed(42)
house_price=house_size*100+ np.random.randint(low=20000,high=70000,size=num_house)
#plot generated house size and price
plt.plot(house_size,house_price,"bx") #bx = blue x
plt.ylabel("Price")
plt.xlabel("Size")
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09407665505226481, 'fraction_numerical': 0.041811846689895474, 'mean_word_length': 7.534653465346534, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '230922', 'license': 'MIT', 'n_tokens_mistral': 314, 'n_tokens_neox': 282, 'n_words': 79, 'path': 'house_prediction.ipynb', 'repo_name': 'Gautamtverma/TensorFlow2.0_Notebooks', 'size': '861'}