Questions tagged [functional-api]

37 questions
0
votes
0 answers

How to get a smooth ROC curve from CNN with keras functional API?

I use the following code: fpr, tpr, t = roc_curve(true_categories, predicted_categories) I know the predicted_categories should be probability or confidence. But as predict_proba() seems not working for keras Functional API, how should I get the…
0
votes
1 answer

Keras functional API doesn't create any layers on google colab (model.summary() prints no layer)

Problem Summarization I created keras model using functional API without any error. But when I call the model.summary(), there is not any layers but only parameters exists. When I call the model.layers, empty list is returned. For example, I created…
0
votes
1 answer

Tensorflow model architecture for sparse dataset

I have a regression dataset where approximately 95% of the target variables are zeros (the other 5% are between 1 and 30) and I am trying to design a Tensorflow model to model that data. I am thinking of implementing a model that combines a…
0
votes
2 answers

Custom loss function with multiple inputs for validation

I am creating a custom loss function following the instruction found here. When I add validation_data, I get an error message on ValueError. When I set validation_data=None, this error disappears. I found a similar question on Stackoverflow, but…
0
votes
2 answers

Merge 3 Deep Network and Train End-to-End

I'm using a deep learning concept but a beginner in it, I'm trying to build a feature fusion concept using 3 deep neural network models, the idea is I'm trying to get features from all three models and do classification on the last single sigmoid…
Ayat noor
  • 3
  • 4
0
votes
1 answer

shall i use a sequential model or Functional API to model a neural network for two input 2D matrix

Good morning, i tried to use a sequential model to create my neural network which have a multiple input (concatenated). But i want to know if shall i use The Keras functional API to CREATE my model. in1= loadtxt('in1.csv', delimiter=',')#2D…
0
votes
1 answer

How to build a model having multiple inputs and a single output using Keras

I am trying to use the functional api of Keras to build a model having multiple inputs and a single output. The goal is to combine each row of each input to predict the corresponding output (either 1 or 0). for example concatenate(inputs_1[0], and…
Kyv
  • 615
  • 6
  • 26
1 2
3