All Questions
315 questions
0
votes
0
answers
42
views
How to combine multiple models into one by combining pre-trained layers using Keras
I have multiple models pretrained to classification. I want to combine them into one model. Each of those models contain the same EfficentNet and Resnet achitecture, then there is concatenate layer ...
0
votes
0
answers
114
views
Haversine Loss function: No gradients provided for any variable?
I'm trying to implement a custom loss function, the haversine loss that computes the distance between two points on a sphere. The coordinates of the classes are saved in a csv, hence I have to convert ...
0
votes
1
answer
88
views
How to import dataset for image sequence classification?
I want to build a model (RNN) on an image sequence to predict a binary variable. I saw a lot of tutorials for multi-input classification, but I didn't find anywhere how to import my data ?
I have a ...
0
votes
1
answer
1k
views
can't load trained keras model with custom regularization class
I'm training the PointNet3D object classification model with my own dataset following the Tutorial here in Keras: https://keras.io/examples/vision/pointnet/#point-cloud-classification-with-pointnet
...
0
votes
1
answer
122
views
Multitask learning to classify on dog images
I'm trying to train a multitask classification model (mobilenet). Basically, a single model that given an image of a dog, it classifies both the color and the breed. Each dataset simply has ...
-2
votes
1
answer
58
views
Should my classification object be black or white inline [closed]
I have a simple question. I am doing 2D shape recognition using Keras. I have these sample images I have generated using cv2:
Quarter Circle
Cross
Rectangle.
I was wondering if I should do a black ...
-1
votes
1
answer
131
views
Improving Multi-Class classification model? [closed]
I'm creating a CNN for skin lesion classification.
I recently added a weighter loss function to my model to try and improve its accuracy, but even with the new weighted losses, my model still only ...
0
votes
1
answer
205
views
Train a classifier on specific labels of MNIST dataset with TensorFlow
I would like to train a classifier on MNIST dataset but with limited labels. For eg. I would like to train a classifier only on labels [1, 4, 5, 6, 8, 9] from all the labels [0-9]. I am getting the ...
0
votes
0
answers
68
views
drug pairs classification using lstm and cnn
I need some help for a classification problem.
I would be very grateful if anyone could help me.
So, the dataset is in the form of Drug pairs, and we have the embedding_df of every drug generated ...
0
votes
0
answers
721
views
Image Classification Fine-Tuning With EfficientNet
I'm trying to image classify with Keras Efficient Net. like here https://keras.io/examples/vision/image_classification_efficientnet_fine_tuning/ I have two folder named 1 and 0. The number of images ...
0
votes
1
answer
824
views
NN: AttributeError: 'History' object has no attribute 'predict'
I try to use Keras for a simple binary classification. For this I have created a simple neural network.
#hyperparameters
hidden_units=100
learning_rate=0.01
hidden_layer_act='tanh'
output_layer_act='...
1
vote
1
answer
109
views
Error 'img' when applying increment with keras and transformers for image classification
I would like to apply VIT for image classification. But I have one problem and I don't know as resolve it. My error is this "KeyError: 'img'". The error is shown when I apply the last comand,...
3
votes
2
answers
7k
views
AttributeError: 'Adam' object has no attribute 'build'
After creating a classification model I need to use the k-Cross Fold Validation but I keep getting this error: AttributeError: 'Adam' object has no attribute 'build'.
from scikeras.wrappers import ...
0
votes
1
answer
66
views
Multi-label classification predicting exactly n out of m options
Say I have m objects and I want to pick which n will be chosen (where m and n are both known). I could run multi-label classification and get the probability that each of the m is chosen and take the ...
1
vote
0
answers
119
views
How can I use SVM classifier for my Keras model?
I am working on predicting seizure epilepsy using CNN. I have 2 classes in my dataset. I want to use CNN model as a feature extractor, then I want to use SVM as a classifier. I don't know how to do ...