All Questions
Tagged with keras machine-learning
584
questions
0
votes
0
answers
32
views
Keras multi-label model predictions always sum to ~1
I believe I've configured this model correctly for multi-label classification, but it would seem that it insists on behaving like a multi-class model, since the predictions it outputs always sum to 1 (...
0
votes
1
answer
57
views
Is it possible to train a neural network to feed into a Random Forest Classifier or any other type of classifier like XGBoost or Decision Tree?
I want to create a model architecture to predict future stock price movement as such:
The Goal of this model is to predict if the price will go UP or DOWN within the next 3 months.
I have tried a few ...
2
votes
1
answer
51
views
Custom loss function in python
I am trying to implement a custom loss function inspired by https://arxiv.org/pdf/2305.10464.pdf. That is:
$ L(\mathbf{x}) = (1-y) \left\lVert \mathbf{x_{true} - \mathbf{x_{pred}}} \right\rVert^2 + y \...
0
votes
0
answers
18
views
How to make my validation plots more stable and improve R2 metric?
I'm working on predicting 4 numeric values basing on signal spectrum (spectrum is represented as an array of 800 numeric values in scale 0 to 1). The input values are scaled by using StandardScaler. ...
0
votes
0
answers
20
views
Keras DNN outputs the same value over and over
I'm creating an ensemble of NNs with the same architecture, but each NN only outputs one value when given X_test data. The data (continuous values transformed to be [-1,1]) yields results as expected ...
0
votes
0
answers
10
views
I'm trying to build image search like Google Photo-Image with face is given to model & it'll get all the images in database in which he/she is present
When a user upload a selfie, the model search same person in dataset of images of multiple persons and get back all the images in which that person is present.
Step 1: From dataset of images I detect ...
1
vote
1
answer
139
views
activation=tf.keras.activations.relu vs activation='relu'
Both models are for binary classification problems
Model 1
...
0
votes
1
answer
49
views
Confusion with tensorflow's Sequential Dense Layers
I'm working on a regression probem using Tensorflow, and have created two models with slight differences in their first Dense layer.
The Models
...
0
votes
0
answers
25
views
How to choose the right typt of ANN architecture for a regression model
So, im working on a project where i am leveraging ai to get accurate price predictions in terms of houses and real estate properties. I would like to use an artificial neural network so now i have to ...
0
votes
0
answers
35
views
LSTM - How can I predict the status an hour before in advance?
I’m very beginner, I’m trying to design a prediction model for forecasting the status one hour ahead.I have 150 sample data, each consisting of of 24 hours of time-series data with multiple features (...
0
votes
0
answers
47
views
L2 regularisation included in Validation Loss is counter intuitive?
I have been trying to tune hyperparameters for a neural network - I noticed the validation data loss for tensorflow in particular includes the L2 regularisation loss as a measure of the total loss.
...
1
vote
1
answer
108
views
Deep learning model produces very different results when classifying the same samples
I'm trying to design a simple deep learning application for biometric system verification, but every time I run the application I get very different results and I can't figure out why. I don't use ...
0
votes
0
answers
192
views
Get graph execution error for BiLSTM and LSTM on keras
I want to use BiLSTM mode for text classification tasks. I use a data generator to get already batched and embedded files that have been split into 64 different files(for training) and 4 files each ...
0
votes
0
answers
10
views
Derive Keras Cosine Restarts Scheduler Formula from Source Code
I used Keras implementation of the cosine restarts algorithm. I need to know the exact formula of the algorithm for my LaTeX manuscript. The documentation is here. The implementation differs (in terms ...
0
votes
0
answers
48
views
Multi input model tensorflow with fixed data as input
I am tring to implement the following architecture.
alpha and beta are fixed matrices, they are matrices I want to input on every forward pass. Meaning for every batch they should be the same My ...