tagged [machine-learning]
Keras model.summary() result - Understanding the # of Parameters
Keras model.summary() result - Understanding the # of Parameters I have a simple NN model for detecting hand-written digits from a 28x28px image written in python using Keras (Theano backend): ``` mod...
- Modified
- 10 Jul at 09:1
How to check if an image contains a face and it is reasonably visible
How to check if an image contains a face and it is reasonably visible I am not sure if this is solveable, but I though I will ask anyway. In my company we deal with massive enrollment camps where smal...
- Modified
- 14 Nov at 21:30
ValueError: x and y must be the same size
ValueError: x and y must be the same size ``` import numpy as np import pandas as pd import matplotlib.pyplot as pt data1 = pd.read_csv('stage1_labels.csv') X = data1.iloc[:, :-1].values y = data1.ilo...
- Modified
- 5 Feb at 13:4
What is the role of "Flatten" in Keras?
What is the role of "Flatten" in Keras? I am trying to understand the role of the `Flatten` function in Keras. Below is my code, which is a simple two-layer network. It takes in 2-dimensional data of ...
- Modified
- 15 Oct at 16:54
Python: tf-idf-cosine: to find document similarity
Python: tf-idf-cosine: to find document similarity I was following a tutorial which was available at [Part 1](http://blog.christianperone.com/?p=1589) & [Part 2](http://blog.christianperone.com/?p=174...
- Modified
- 30 Apr at 11:58
ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT
ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT I have a dataset consisting of both numeric and categorical data and I want to predict adverse outc...
- Modified
- 20 Apr at 10:14
Scikit-learn: How to obtain True Positive, True Negative, False Positive and False Negative
Scikit-learn: How to obtain True Positive, True Negative, False Positive and False Negative I have a dataset which is a large JSON file. I read it and store it in the `trainList` variable. Next, I pre...
- Modified
- 17 Mar at 21:49
How to predict input image using trained model in Keras?
How to predict input image using trained model in Keras? I trained a model to classify images from 2 classes and saved it using `model.save()`. Here is the code I used: ``` from keras.preprocessing.im...
- Modified
- 22 Dec at 05:0
Getting TypeError: '(slice(None, None, None), 0)' is an invalid key
Getting TypeError: '(slice(None, None, None), 0)' is an invalid key Trying to plot the decision Boundary of the k-NN Classifier but is unable to do so getting `TypeError: '(slice(None, None, None), 0)...
- Modified
- 15 Mar at 07:29
Detecting rare incidents from multivariate time series intervals
Detecting rare incidents from multivariate time series intervals Given a time series of sensor state intervals, how do I implement a classifier which learns from supervised training data to detect an ...
- Modified
- 5 Oct at 00:13
How to compute precision, recall, accuracy and f1-score for the multiclass case with scikit learn?
How to compute precision, recall, accuracy and f1-score for the multiclass case with scikit learn? I'm working in a sentiment analysis problem the data looks like this: So my data is unbalanced since ...
- Modified
- 15 Mar at 20:59
Keras accuracy does not change
Keras accuracy does not change I have a few thousand audio files and I want to classify them using Keras and Theano. So far, I generated a 28x28 spectrograms (bigger is probably better, but I am just ...
- Modified
- 15 May at 13:11