New answers tagged python-3.x
2
votes
Neural Network for binary classification not working
I think the problem is here
y_pred = model.predict(X_test)
y_pred_classes = y_pred
y_preds = np.argmax(y_pred_classes, axis=1)
Your model outputs a single value (<...
Top 50 recent answers are included
Related Tags
python-3.x × 240python × 84
pandas × 44
machine-learning × 37
keras × 31
tensorflow × 24
scikit-learn × 21
nlp × 19
deep-learning × 18
dataframe × 18
neural-network × 11
dataset × 11
numpy × 11
classification × 9
clustering × 9
data-science-model × 9
matplotlib × 9
time-series × 8
regression × 8
recommender-system × 7
k-means × 7
seaborn × 7
random-forest × 6
image-classification × 6
visualization × 6