Most Popular
1500 questions
12
votes
3 answers
Help regarding NER in NLTK
I have been working in NLTK for a while using Python. The problem I am facing is that their is no help available on training NER in NLTK with my custom data. They have used MaxEnt and trained it on ACE corpus. I have searched on the web a lot but I…
Sarmad
- 295
- 3
- 9
12
votes
3 answers
How to plot logistic regression decision boundary?
I am running logistic regression on a small dataset which looks like this:
After implementing gradient descent and the cost function, I am getting a 100% accuracy in the prediction stage, However I want to be sure that everything is in order so I…
rrz0
- 311
- 1
- 3
- 15
12
votes
4 answers
Is GLM a statistical or machine learning model?
I thought that generalized linear model (GLM) would be considered a statistical model, but a friend told me that some papers classify it as a machine learning technique. Which one is true (or more precise)? Any explanation would be appreciated.
user77571
- 313
- 1
- 2
- 5
12
votes
1 answer
How does Naive Bayes classifier work for continuous variables?
I know that for categorical features we just calculate the prior and likelihood probability assuming conditional independence between the features.
How does it work for continuous variables? How can we calculate likelihood probability for continuous…
Jeeth
- 931
- 2
- 10
- 19
12
votes
4 answers
How will Occam's Razor principle work in Machine learning
The following question displayed in the image was asked during one of the exams recently. I am not sure if I have correctly understood the Occam's Razor principle or not. According to the distributions and decision boundaries given in the question…
user1479198
- 123
- 1
- 5
12
votes
6 answers
How to use sklearn train_test_split to stratify data for multi-label classification?
I am attempting to mirror a machine learning program by Ahmed Besbes, but scaled up for multi-label classification. It seems that any attempt to stratify the data returns the following error: The least populated class in y has only 1 member, which…
Michael Joy
- 121
- 1
- 1
- 5
12
votes
1 answer
Cross validation for highly imbalanced data with undersampling
In my problem, I am dealing with a highly imbalanced data set, say for every positive class there are 10000 negative one. A normal starting method to train a model is to undersample the data. In this procedure, it is very important to train our…
Amin Kiany
- 223
- 2
- 6
12
votes
1 answer
What is the difference between regplot and lmplot in seaborn?
Seaborn library in python suggests to use either lmplot or regplot to visualise a regression between two variables. What is the difference between the two plots ? The result I was able to get are slightly different but I have no idea why !
Rishabh Sharma
- 659
- 2
- 8
- 18
12
votes
2 answers
Difference between a target and a label in machine learning
If I have a supervised learning system (for example for the MNIST dataset) I have features (pixel values of MNIST data) and labels (correct digit-value).
However sometimes people use the word target (instead of label).
Are target and label…
Niklas
- 223
- 1
- 2
- 6
12
votes
7 answers
How to apply class weight to a multi-output model?
I have a model with 2 categorical outputs.
The first output layer can predict 2 classes: [0, 1]
and the second output layer can predict 3 classes: [0, 1, 2].
How can I apply different class weight dictionaries for each of the outputs?
For example,…
Gal Avineri
- 366
- 1
- 2
- 12
12
votes
1 answer
Load keras model in Java
What are the requirements to load the trained model by Keras in Java?
I checked that DeepLearning4J supports Keras models, network architecture and weights can be easily loaded. The only cons are probably that we need to use ND4J backend or it does…
wpazio
- 293
- 4
- 8
12
votes
4 answers
How to change the names of the layers of deep learning in Keras?
I am using vgg16 to create a deep learning model. I want to know how to change the names of the layers of deep learning in Keras?
I tried this
for layer in vgg_model.layers:
layer.name = layer.name + str("_")
But when I change the names of the…
N.IT
- 1,995
- 4
- 19
- 35
12
votes
1 answer
Optimizer for Convolutional neural network
What is the best optimizer for Convolutional neural network (CNN)?
Can I use RMSProp for CNN or only for RNN?
Noran
- 768
- 3
- 8
- 21
12
votes
1 answer
Reinforcement learning: decreasing loss without increasing reward
I'm trying to solve OpenAI Gym's LunarLander-v2.
I'm using the Deep Q-Learning algorithm. I have tried various hyperparameters, but I can't get a good score.
Generally the loss decreases over many episodes but the reward doesn't improve much.
How…
Atuos
- 327
- 1
- 2
- 7
12
votes
5 answers
How to merge monthly, daily and weekly data?
Google Trends returns weekly data so I have to find a way to merge them with my daily/monthly data.
What I have done so far is to break each serie into daily data, for exemple:
from:
2013-03-03 - 2013-03-09 37
to:
2013-03-03 37
2013-03-04…
Lucas Morin
- 2,196
- 5
- 21
- 42