Open SEHABI-YOUSSOUF opened 4 months ago
Hello, the inputs are supposed to be a list/tuple of 2D tensors of shapes (batch size, num sparse features), (batch size, num dense features)
and labels a 2D tensor of shape (batch size, num tasks)
. If you have only sparse or dense features you need to adapt the model accordingly.
I added this example notebook with random data. I hope that helps.
hi sir i keep getting this error can you help me for instance give me exemple in collab of runing code please and thank you
----> 1 history =model.fit(x=sample_dataset, epochs=1)
2 frames /tmp/__autograph_generated_filedpw8h24k.py in tfcall(self, inputs) 10 (cat_inputs, cont_inputs) = ag.ld(inputs) 11 cat_embed = ag.converted_call(ag__.ld(self).embedding_layer, (ag.ld(cat_inputs),), None, fscope) ---> 12 combined_inputs = ag.converted_call(ag.ld(tf).concat, ([ag.ld(cat_embed), ag.ld(cont_inputs)],), dict(axis=-1), fscope) 13 out = ag__.converted_call(ag.ld(self).mlp, (ag.ld(combined_inputs),), None, fscope) 14 try:
ValueError: in user code: