All Questions
Tagged with keras scikit-learn
82
questions
0
votes
0
answers
37
views
Calculate AUC-ROC and AUC-PRC for an LSTM Model
I have the following simple Bidirectional LSTM model for a binary classification task:
...
-1
votes
1
answer
54
views
In order to predict after training on Standardized data, do I need the StandardScaler as well?
Is the scaler saved inside the model.keras file or I need to separately save it?
I want to train an neural network, save it, and ...
0
votes
1
answer
88
views
Why most keras examples use shape=(None,) instead of shape=(None)?
I'm reading several keras tutorials and found that many examples are written like this:
keras.Input(shape=(None,), dtype="int64", name="english")...
0
votes
0
answers
21
views
Input shape CNN speech
The shapes of
x_train=(514, 256), y_train=(514,)
x_test=(254, 256), y_test=(254,)
I have 256 features and 770 samples of which ...
1
vote
1
answer
898
views
How to compare $R^{2}$ of train and test data in a Deep Learning Neural Network Regression model?
I want to judge the goodness of my neural network regression model built using Keras Python Library. The problem is the following: from an input like (1000, 5000) so 1000 samples and each sample has ...
0
votes
1
answer
115
views
Export a detailed report with metrics after the training process of a Keras model
I have an image-segmentation model (.h5) which was trained using dice coefficient, recall and precision metrics.
The model was trained using the ImageDataGenerator class with the following code:
...
0
votes
1
answer
999
views
numpy.ndarray' object has no attribute 'batch' [closed]
I am building an image classifier using cnn using the following code-
I am getting this error, despite making several changes-
Kindly help me fix this error.
0
votes
1
answer
358
views
Sklearn vs Pytorch vs Tensorflow vs Keras
I just need to understand the differences between sklearn, pytorch, tensorflow and keras in terms which implements traditional machine learning algorithms ( Linear regression , knn, decision trees, ...
0
votes
1
answer
1k
views
Input shape error
I've this item:
['6', '1', '6', '843537', '3', '0', '5', '1006709', '3', '1', '4']
with shape: (11,)
but when go to predict with:
...
2
votes
1
answer
448
views
Fashion MNIST: Is there an easy way to extract only 1% of the data to do a minimal gridsearch?
I am trying implement several models on the fashion-MNIST. I have imported the data according to the tf.keras tutorial:
...
0
votes
2
answers
7k
views
NameError: name 'model' is not defined Keras with f1_score
I'm having a problem with my Keras model, in the .compile() I use accuracy, loss, precision, recall and AUC, but also I need f1_score, due to Keras doesn´t include f1_score, I tried to calculate by ...
3
votes
1
answer
1k
views
How to identify/recognize that a sentence about talks about future?
Brief Introduction:
I have a report/paragraph in which there are sentences with reference to future plans/outlooks/expectations for a particular entity. I want to extract all such sentences for now.
...
1
vote
0
answers
86
views
Why are the results from the keras validation split different from sklearn metrics?
I am training a Keras model, and running:
model.fit(X, y, epochs=10, validation_data=(X_test, y_val))
I'm using AUC, precision, and recall as the metrics (also ...
0
votes
1
answer
404
views
Unable to generate confusion matrix
I am using keras flow from directory for image segmentation. Following are my codes
...
0
votes
0
answers
234
views
text classification - does number of features matters?
I'm working on a multi-class text classification project that aims to assign a "new bug" to his "final group assignee"
To do that I was able to extract ~17000 samples and divided ...