<jupyter_start><jupyter_text>Housing prices Exercise<jupyter_code># imports
import numpy as np
from tensorflow import keras
# presuming 50K+50k per bedroom, 1bhk=100k, 2bhk=150k, etc 
# build a model
def house_model(y_new):
    xs = np.array([i for i in range(10)],dtype=float)
    ys = np.array([0.50+(j*0.50) for j in range(10)],dtype=float)
    model = keras.Sequential([
        keras.layers.Dense(units=1, input_shape=[1])
    ])
    model.compile(loss='mse',optimizer='sgd')
    model.fit(xs,ys,epochs=2000)
    return model.predict(y_new)[0]
house_model([7.0])
!git add .
!git commit -m "saving week 1 exercise with accepted answer"
!git push<jupyter_output>[master 44eca19] saving week 1 exercise
 1 file changed, 30 insertions(+), 5 deletions(-)
Counting objects: 6, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 978 bytes | 978.00 KiB/s, done.
Total 6 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.[K
To github.com:arjun921/dl-refresher.git
   5da5654..44eca19  master -> master
{'fraction_non_alphanumeric': 0.13489208633093525, 'fraction_numerical': 0.07553956834532374, 'mean_word_length': 4.537313432835821, 'pattern_counts': {'":': 0, '<': 4, '<?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': '173951', 'license': 'Apache-2.0', 'n_tokens_mistral': 470, 'n_tokens_neox': 403, 'n_words': 119, 'path': 'deeplearning.ai-tensorflow-developer-certificate/1-of-4-intro-to-tf/Week_1/Week_1_ex_1.ipynb', 'repo_name': 'arjun921/DeepLearning-TIL', 'size': '1112'}