I execute this command I get:
print(df.shape)
(172717, 1521)
but if I convert the dataframe to a tf dataframe:
df_numpy = df.to_numpy()
df_tensor = tf.ragged.constant(df_numpy)
I can see rows but not columns:
len(list(df_tensor))
172717
I have a ML model and I want the input layer to be generated dynamically so I need the columns to add them together to create the input shape:
input_shape = (df.shape[1] + df2.shape[1] + df3.shape[1]))
obviously, this works with pandas but it doesn't work with tf datasets because I cannot get the shape.
Is there a way to get around this?