Issue
I wrote this in colab while trying Recoomendation System ,Unsupervised learning
import tensorflow as tf
import numpy as np
import keras
from keras import Sequential
from keras.layers import Dense
from keras.layers import Input
---other variables---
input_user=Input(shape(num_user_features))
when I run this NameError: name 'shape' is not defined pops up
I imported all need from Keras but still it isnt running smoothly as I expected
Solution
to fix this try
input_user = Input(shape=(num_user_features,))
Answered By - Ugochukwu Obinna
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.