Unable to import tensorflow in VScode (despite having downloaded it successfully)
Just like the title says. My vscode does not recognize and cannot access tensorflow although I have installed it.
OSError: SavedModel file does not exist at: model.h5{saved_model.pbtxt|saved_model.pb}
How can I resolve this?
From keras.models, keras.layers and keras.optimizers, Import not resolved
Just ran into one problem which is that the from keras.models, keras.layers and keras.optimizers it says import could not be resolved, do you know how I can fix this? Thanks
TensorFlow: “Using a symbolic `tf.Tensor` as a Python `bool` is not allowed” error in custom BatchNormalization layer
I’m encountering an error while using a custom BatchNormalization layer in TensorFlow for an object detection project. The error message I’m getting is:
Error from Keras: ValueError: Must provide at least one structure
I spotted weird problem with my script to train CNN model on Keras library. When I’m trying to learn simple CNN model during ending first epoch Keras throwing an error saying:
ValueError: Input 0 of layer “sequential_4” is incompatible with the layer: expected shape=(None, 100, 100, 3), found shape=(None, 100, 3)
I am trying to use a CNN keras model that I trained to classify images. I am using model.predict(img) and I am getting an error with the expected shape. It says the found shape=(None,100,3) and the expected shape=(None,100,100,3).
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:
Does using a for loop with model.fit give the same results as not using it?
Following codes yield the same result?
How to get access to each training sample (x) in a custom Keras loss function?
I want to design a model that takes an array of data as input and predicts another array of data as output. One metric that I want to use is the pearsonr
. In other words, I want to minimize the difference between pearsonr(x_train, y_train)
and pearsonr(x_train, y_pred)