Skip to content

Tier 2 - Deep Learning, Tensorflow error #31

@willsmithorg

Description

@willsmithorg

In Surface_Observation_Prediction_in_Tensorflow.ipynb:

Section 'Creating the Model'

When I execute this cell:
model = fullyconnected_sequential( time_of_day_train_norm.shape[1], depth=3, width=32, activation="tanh", learning_rate=10**(-3) )

I get the error
`
ValueError Traceback (most recent call last)
in <cell line: 0>()
----> 1 model = fullyconnected_sequential(
2 time_of_day_train_norm.shape[1], depth=3, width=32, activation="tanh", learning_rate=10**(-3)
3 )
3 frames
/usr/local/lib/python3.11/dist-packages/keras/src/backend/common/variables.py in standardize_shape(shape)
560 raise ValueError("Undefined shapes are not supported.")
561 if not hasattr(shape, "iter"):
--> 562 raise ValueError(f"Cannot convert '{shape}' to a shape.")
563 if config.backend() == "tensorflow":
564 if isinstance(shape, tf.TensorShape):

ValueError: Cannot convert '1' to a shape.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions