All Questions
2,789 questions
1
vote
1
answer
62
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
0
answers
30
views
How to load a Neural Network Model along with MinMaxScalar? [duplicate]
I have a simple neural network model, of 4 layers, that I trained on a numerical dataset of 25K data points.
It takes a good time to load the data, whenever I want to evaluate new features to python ...
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
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
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
0
answers
40
views
How to set non-trainable weights?
The method keras.Model.set_weights seems to only take trainable weights. Non-trainable weights such as those from normalization layers cannot be imported this way. This is problematic, since in Keras ...
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 ...
0
votes
0
answers
173
views
Image-to-Image with U-Net with no Skip-connections. Is it real?
In general, U-Net is needed to create another style image, but preserve the structure. For example, a full-fledged drawing from a sketch. Right?
I want to preserve the style, but change the structure. ...
0
votes
0
answers
37
views
How to understand NN input and Output
I have a project where I want to do feature extraction in images. I have this CNN layer:
model = keras.Sequential(
[
layers.Input((2*imsize,imsize,3)),
layers.Reshape((2,imsize,imsize,3)), #...
0
votes
0
answers
69
views
Input shape argument isn't recognized for cvnn with cvnn libary
I have a problem with my little code project, where I want to program a complex valued neural network, which can take real number and complex numbers as inputs and approximate a simple function f(x,y) ...