Can someone please explain, how the logistic_layer.get_weights() function returns w and b? I can see the model, but I do not understand how this model was trained. Where is the data input?

Perhaps I dont understand what get_layer() does?

Can someone please explain, how the logistic_layer.get_weights() function returns w and b? I can see the model, but I do not understand how this model was trained. Where is the data input?

Perhaps I dont understand what get_layer() does?

Hello @Kosmetsas_Tilemahos,

The model has not been trained when it calls `get_weights()`

, what you are getting is only the initialized w and b.

Raymond

Thanks! I see it initializes different weights each time I restart the kernel. So they are randomly chosen (at this point) ?

Yes. To make sure they are initialized to the same set of parameter values, call `tf.random.set_seed(1234)`

before calling `Sequential`

. `1234`

is a seed, but you can use any other number as the seed.