Issue As the title is self-descriptive, I’m looking for a way to reset the learning rate (lr) on each fold. The ReduceLROnPlateau callback of Keras manages the lr. Solution With no reproducible example I can only make a suggestion. If
Continue readingTag: tf.keras
[SOLVED] Multi Input Keras Model with Tfdata
Issue I have a model I am trying to set up with 8 inputs. The first 7 are length 1 IDs that are each fed into embedding layers and these outputs are concatenated with a set of 4 numeric variables.
Continue reading[SOLVED] What is the proper way to add layers using Keras functional API?
Issue I am trying to use Keras functional API to create a model with 2 branches but I need to add the output of the first branch (path23: m,n,5) with the second one (path10: m,n,1) and I need the output
Continue reading[SOLVED] AttributeError: module 'keras.api._v2.keras.metrics' has no attribute 'auc'
Issue I am running this particular notebook from this link Chexpert Keras CNN, which is training cnn model on the chexpert dataset and with keras library. However I am getting this particular error when I am running this syntax. history
Continue reading[SOLVED] How to do atrous convolution in tensorflow 2 (tf.keras)
Issue I am trying to convert some code from tensorflow 1.x to tensorflow 2.x. It’s been going well so far, but I’m stuck on atrous convolution. Unlike other layers, there doesn’t seem to be a one-to-one conversion. So far, I’ve
Continue reading[SOLVED] How does tf.keras.metrics.TopKCategoricalAccuracy differ from [email protected]?
Issue Coming from recommender systems, precisi[email protected] is a popular metric. [email protected] = number of relevant predictions in top k / k On the tensorflow docs for tf.keras.metrics.TopKCategoricalAccuracy it states Computes how often targets are in the top K predictions. https://www.tensorflow.org/api_docs/python/tf/keras/metrics/TopKCategoricalAccuracy
Continue reading[SOLVED] Adding Dropout Layers to Segmentation_Models Resnet34 with Keras
Issue I want to use the Segmentation_Models UNet (with ResNet34 Backbone) for uncertainty estimation, so i want to add some Dropout Layers into the upsampling part. The Model is not Sequential, so i think i have to reconnect some outputs
Continue reading[SOLVED] Model weights from sess.run(() is returning the value in bytes. How can I change to value?
Issue I’m trying to extract the model weights from a saved model in a .pbfile. However, when I run sess it returns the model weights in bytes and I cannot read it. My code follows: constant_values = {} with tf.compat.v1.Session(graph=tf.Graph())
Continue reading[SOLVED] How to get output_attentions of a pretrained Distilbert Model?
Issue I am using a pretrained DistilBert model: from transformers import TFDistilBertModel,DistilBertConfig dbert = ‘distilbert-base-uncased’ config = DistilBertConfig(max_position_embeddings=256 , dropout=0.2, attention_dropout=0.2, output_hidden_states=True, output_attentions=True) #or true dbert_model = TFDistilBertModel.from_pretrained(dbert, config) input_ids_in = tf.keras.layers.Input(shape=(256,), name=’input_id’, dtype=’int32′) input_masks_in = tf.keras.layers.Input(shape=(256,), name=’attn_mask’, dtype=’int32′) outputs
Continue reading[SOLVED] Overfitting on my model classification images CNN
Issue I tried a lot to make a change in my validation accuracy by adding layers and dropout but still, I have no change yet my accuracy is upper than 95% and my validation accuracy is always stuck in 88%.
Continue reading