Relative Content

Tag Archive for pythontensorflowkeras

Linear regression parameter estimate using Keras

My datasets has gotten extremely large so I am unable to use typical OLS methods to calculate my linear regression estimators, so I wanted to use a typical optimizer (Adam seems to be a good fit)

ValueError with tensorflow_hub.KerasLayer in Sequential model during transfer learning

I am following a YouTube tutorial on transfer learning with TensorFlow and TensorFlow Hub. I am trying to use the MobileNet V2 model as a feature extractor in a keras.Sequential model. However, I encounter a ValueError stating that only instances of keras.Layer can be added to a Sequential model, despite using hub.KerasLayer. The relevant part of my code is: