11import numpy as np
22import tensorflow as tf
3-
3+ import tf_keras
44from learntools .core import *
55
66# Using *Concrete* dataset
@@ -33,16 +33,16 @@ def check(self, input_shape):
3333class Q2 (CodingProblem ):
3434 _hint = """Your answer should look something like:
3535```python
36- model = keras .Sequential([
36+ model = tf_keras .Sequential([
3737 ____
3838])
3939```
4040"""
4141 _solution = CS ("""
42- from tensorflow import keras
43- from tensorflow.keras import layers
42+ import tf_keras
43+ from tf_keras import layers
4444
45- model = keras .Sequential([
45+ model = tf_keras .Sequential([
4646 layers.Dense(512, activation='relu', input_shape=input_shape),
4747 layers.Dense(512, activation='relu'),
4848 layers.Dense(512, activation='relu'),
@@ -85,7 +85,7 @@ class Q3(CodingProblem):
8585 _hidden_units = 32
8686 _hint = """Your model should look something like:
8787```python
88- model = keras .Sequential([
88+ model = tf_keras .Sequential([
8989 layers.Dense(____),
9090 layers.Activation(____),
9191 layers.Dense(____),
@@ -95,7 +95,7 @@ class Q3(CodingProblem):
9595```
9696"""
9797 _solution = CS ("""
98- model = keras .Sequential([
98+ model = tf_keras .Sequential([
9999 layers.Dense(32, input_shape=[8]),
100100 layers.Activation('relu'),
101101 layers.Dense(32),
0 commit comments