All Questions
3,141 questions
1
vote
1
answer
63
views
Regression error with Python tensorflow keras
could someone please help me to fix the following error :
[AttributeError: 'super' object has no attribute 'sklearn_tags']
based on my code :
from tensorflow import keras
from scikeras.wrappers ...
0
votes
1
answer
108
views
tuple has no attribute "rank" error when trying to build bayesian neural net
I'm trying to build a BNN but am encountering the error in the title. I tried to ensure I'm not passing a tuple to .shape.rank by :
using the functional API with explicit Input (should make first ...
0
votes
1
answer
69
views
can't load the saved model YOLOV8Backbone from keras_cv after thefine-tuning
checkpoint_filepath='E:\model.yolo_v8_s_ft.h5'
# backbone = keras_cv.models.YOLOV8Backbone.from_preset("yolo_v8_m_backbone_coco")
backbone = keras.models.load_model(checkpoint_filepath)
...
-1
votes
1
answer
45
views
implement a differentiable L0 regularizer to keras layer
What is the appropriate way to implement a differentiable variant of L0 regularizer (count the non-zero values in a Conv layer / matrix) to keras layer?
I was thinking of using r(x) = tanh(abs(f*x)) ...
0
votes
1
answer
51
views
Tensorflow error unknown expected keyword during loading of trained model
I have trained a Tensorflow model and saved it on another machine and want to load it locally. When i try to load it i get an error saying Agent.init() got an unexpected keyword argument 'name'. My ...
0
votes
0
answers
56
views
Tensorflow - Encode Target Labels within Pipeline
I know this is not efficient/optimal for this data; this is just for study and me trying to understand it.
I have a DataFrame with 4 numerical features and a class label with 3 unique string values
...
0
votes
0
answers
49
views
Discrepancies between tensorflow and pytorch while maintaining batch size, loss functions, architectures, metric, data, optimizer
It is a follow up question to Investigating discrepancies in TensorFlow and PyTorch performance
The author stated that there is a performance gap between Pytorch and Tensorflow while maintaining the ...
0
votes
0
answers
58
views
Dst tensor not initialising, Memory allocatiion
I am having issue with a Dst tensor not initializing, there are similar posts but the solutions there are too outdated and my issue is pretty specific
I am running:
python - 3.11,
Tensorflow - 2.15,
...
1
vote
2
answers
73
views
tensorflow.keras only runs correctly once
I am using tensorflow.keras in a jupyter notebook to produce a neural network to match some real world data. The first time I run my code, it works correctly. The neural network gives a model to match ...
1
vote
0
answers
36
views
Loss Function Too High and Accuracy 0.0000e+00 for Recognition model Using ResNet50 + BiLSTM
I am working on a handwritten sentence recognition task using a combination of ResNet50 and BiLSTM. My dataset includes images of handwritten sentences, with each sentence represented as a sequence of ...
1
vote
1
answer
63
views
Loaded Keras Model Throws Error While Predicting (Likely Issues with Masking)
I am currently developing and testing a RNN that relies upon a large amount of data for training, and so have attempted to separate my training and testing files. I have one file where I create, train,...
0
votes
1
answer
71
views
Tensorflow - Time Series Tutorial - How Does Data Windowing Works?
I am following the Time Series tutorial from TensorFlow, which takes in weather data and predicts the future value of temperature.
I have a hard time wrapping my head around how the Window Generator ...
0
votes
0
answers
29
views
adapt() doesn't work within tf.data.Dataset.map() while building a preprocessing pipeline using keras preprocessing layers
I'm trying to create a neural network that assigns tasks to employees based on their skills (https://www.kaggle.com/datasets/umerfarooq09/skill-based-task-assignment).
The data contains categorical ...
-5
votes
1
answer
64
views
why do we need a y variable in keras model.fit()? [closed]
I am working with the hand written digits dataset. The data is loaded as follows:
(X_train, y_train), (X_test, y_test) = keras.datasets.mnist.load_data()
This is the code for a neural network created ...
0
votes
1
answer
39
views
How should I determine the input size for layers following the initial layer in a CNN?
I am working on CS50AI unit 5, and this is the code from the number recognition part of the lecture. If I wanted to add another convolutional layer after the max pooling, how would I determine the ...