Top "Machine-learning" questions

Implementation questions about machine learning algorithms.

Convert array of indices to 1-hot encoded numpy array

Let's say I have a 1d numpy array a = array([1,0,3]) I would like to encode this as a 2D one-hot …

python numpy machine-learning numpy-ndarray one-hot-encoding
How to load a model from an HDF5 file in Keras?

How to load a model from an HDF5 file in Keras? What I tried: model = Sequential() model.add(Dense(64, input_…

python machine-learning keras data-science
Why binary_crossentropy and categorical_crossentropy give different performances for the same problem?

I'm trying to train a CNN to categorize text by topic. When I use binary cross-entropy I get ~80% accuracy, with …

machine-learning keras neural-network deep-learning conv-neural-network
How to interpret "loss" and "accuracy" for a machine learning model

When I trained my neural network with Theano or Tensorflow, they will report a variable called "loss" per epoch. How …

machine-learning neural-network mathematical-optimization deep-learning objective-function
What is logits, softmax and softmax_cross_entropy_with_logits?

I was going through the tensorflow API docs here. In the tensorflow documentation, they used a keyword called logits. What …

python machine-learning tensorflow
Is there a rule-of-thumb for how to divide a dataset into training and validation sets?

Is there a rule-of-thumb for how to best divide data into training and validation sets? Is an even 50/50 split advisable? …

machine-learning
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: label instances 5 1190 4 838 3 239 1 204 2 127 So my data is unbalanced since 1190 …

python machine-learning nlp artificial-intelligence scikit-learn
What is the difference between supervised learning and unsupervised learning?

In terms of artificial intelligence and machine learning, what is the difference between supervised and unsupervised learning? Can you provide …

machine-learning artificial-intelligence supervised-learning unsupervised-learning
TensorFlow, "'module' object has no attribute 'placeholder'"

I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 …

python machine-learning tensorflow
Can anyone explain me StandardScaler?

I am unable to understand the page of the StandardScaler in the documentation of sklearn. Can anyone explain this to …

python machine-learning scikit-learn scaling standardized