Category "keras"

Calculate loss in Keras without running the model

Is there a way to get the loss of the model, with it's current weights, without running evaluate, or fit, on it? model = keras.Sequential([ keras.layers.In

Value Error: No such layer - Extracting the output of a tensorflow keras layer

I'm trying to extract the output of thelayer in my autoencoder and have referenced this Keras documentation and this stackoverflow post so far. When I try to ex

How to specify the correlation coefficient as the loss function in keras

I am using keras+tensorflow for the first time. I would like to specify the correlation coefficient as the loss function. It makes sense to square it so that it

Displaying images from each class of a batched tensorflow dataset

I'm doing an assignment creating a cv model with 6 different classes. I've loaded my dataset as per this example: https://keras.io/examples/vision/image_classif

Apply different loss function to part of tensor in keras

I'm trying to build a custom loss function where it will apply different function to different part of tensor based on groundtruth. Say for example the groundt

Dependent hyperparameters with keras tuner

My goal is to tune over possible network architectures that meet the following criteria: Layer 1 can have any number of hidden units from this list: [32, 64, 12

Making neural network training reproducible using RStudio's Keras interface

I'm trying to make neural network training reproducible using RStudio's Keras interface. Setting a seed in the R script (set.seed(42)) doesn't seem to work. Is

module 'keras.engine' has no attribute 'Layer'

----> 6 from mrcnn.model import MaskRCNN /usr/local/lib/python3.7/dist-packages/mrcnn/model.py in () 253 254 --> 255 class ProposalLayer(KE.Layer): 256

Use different metrics in tf.keras.metrics for mutli-classification model

I am using the TensorFlow federated framework for a multiclassification problem. I am following the tutorials and most of them use the metric (tf.keras.metrics.

How to split folders to 3 datasets with ImageDataGenerator?

validation_split parameter is able to allow ImageDataGenerator to split the data sets reading from the folder into 2 different disjoint sets. Is there any way t

ImportError: cannot import name 'keras' from 'tensorflow'

I'm try learning TensorFlow but i have a problem. I'm importing TensorFlow like in official website but i take a error. import pandas as pd import numpy as np i

Reload Keras-Tuner Trials from the directory

I'm trying to reload or access the Keras-Tuner Trials after the Tuner's search has completed for inspecting the results. I'm not able to find any documentation

Issues running a Keras model with custom layers

I am currently working on my bachelor's thesis at FIIT STU, the primary goal of which is to attempt to replicate and verify the results of the following study.

Why does BERT Model fail to find an option that matches my input positional arguments?

While attempting an NLP exercise, I tried to make use of BERT architecture to get a good training model. So I defined a function that builds and compiles the mo

TensorFlow, Keras download issue on Raspberry Pi 3B+

I need help installing TensorFlow/Keras on raspberry pi 3B+ Python version 3.9.2 Keras version 2.8.0 TensorFlow version 1.8.0 I downloaded them via pip3 on pro

ran into TensorFlow ValueError during my TensorFlow Course with Udemy

I have being trying to fit the error during my Tensorflow course (Section 3: Neural network Regression with Tensorflow) with Udemy. import tensorflow as tf impo

Keras history callback loss does not match with console output of loss

I am Training a cnn in Keras at the moment. Now I want to log the history of the training process for later visualizations, which I do with: history_callback =

Jupyter Kernel Dies Importing Keras

I am running an Apple Macbook with 16 GB of RAM and the M1 chip. I am trying to import Keras through the command: from tensorflow.keras.models import Sequential

tflite: get_tensor on non-output tensors gives random values

I'm trying to debug my tflite model, that uses custom ops. I've found the correspondence between op names (in *.pb) and op ids (in *.tflite), and I'm doing a la

How to calculate similarity for pre-trained word embeddings

I want to know the most similar words to another from a pretrained embedding vectors in R. E.g: words similar to "beer". For this, I download the pretrained emb