Most Popular

1500 questions
8
votes
4 answers

Determining size of FC layer after Conv layer in PyTorch

I am learning PyTorch and CNNs but am confused how the number of inputs to the first FC layer after a Conv2D layer is calculated. My network architecture is shown below, here is my reasoning using the calculation as explained here. The input images…
Into Jo
  • 83
  • 1
  • 1
  • 5
8
votes
1 answer

How to use SMOTE in Java Weka API?

I am trying to build classification model using Java Weka API. My training dataset have class imbalance problems. For this reason, I want to use SMOTE to reduce class imbalance problem. But, I do not know how to use it in Java Weka API.
Sagor Ali
  • 83
  • 3
8
votes
2 answers

How do I use a custom stopwords filter in the Java Weka API?

I am using the Java Weka API to build a classification model. I can use the builtin stopwords filter. However, I need to use a custom filter for my problem. I do not know how to use a custom stopwords filter in the Java Weka API.
Radia Karim
  • 158
  • 4
8
votes
1 answer

How can I calculate AUC from the ROC curve for the classification?

Based TPR and FPR, I have generate ROC curve for my binary classification model. I do not know, how to calculate AUC value. I would be very help for me if you can help me to calculate AUC value.
Reja
  • 898
  • 1
  • 9
  • 21
8
votes
1 answer

How does exactly class_weight in Keras work?

I'm working on a multi-label problem in Keras, using binary-cross-entropy loss function with sigmoid activation. Let's say I have 4 classes, so a response might look like this: [1, 0, 0, 1] Though a vast majority of the responses will actually be…
8
votes
3 answers

What to consider before learning a new language for data analysis

I'm currently in the very early stages of preparing a new research-project (still at the funding-application stage), and expect that data-analysis and especially visualisation tools will play a role in this project. In view of this I face the…
Patrick Allo
  • 191
  • 4
8
votes
2 answers

How to train ML model with multiple variables?

I am trying to learn Machine Learning concepts these days. I understand in a traditional ML data, we will have features and labels. I have following toy data in my mind where I have features like 'units_sold' and 'num_employees' and a label of…
Hannan
  • 183
  • 1
  • 1
  • 5
8
votes
2 answers

Filtering spam from retrieved data

I once heard that filtering spam by using blacklists is not a good approach, since some user searching for entries in your dataset may be looking for particular information from the sources blocked. Also it'd become a burden to continuously validate…
Rubens
  • 4,097
  • 5
  • 23
  • 42
8
votes
1 answer

Dealing with extreme values in softmax cross entropy?

I am dealing with numerical overflows and underflows with softmax and cross entropy function for multi-class classification using neural networks. Given logits, we can subtract the maximum logit for dealing with overflow but if the values of the…
RE60K
  • 183
  • 1
  • 4
8
votes
2 answers

Display Images (url) Inside Pandas Dataframe

I would like to display images (mostly jpg and png formats) directly from their url link inside a pandas dataframe. Imagine I already have the following dataframe: id image_url 1 …
TwinPenguins
  • 4,157
  • 3
  • 17
  • 53
8
votes
1 answer

How far can one go with excel?

in my business we handle all analytics through Excel. This includes mostly scheduling, production planning and accounting operations. We currently are looking into adding a bit of predictive modelling and Excel does suffice to a point, but doesn't…
Jcart
  • 340
  • 1
  • 6
8
votes
3 answers

What is parts of speech technique in sentiment analysis?

In an article, I saw Sentiment Analysis using Parts Of Speech(POS) technique. When I searched I got some paper on POS but I couldn't understand what POS basically is. Though I am new to sentiment analysis please help me to understand POS.
SRJ577
  • 197
  • 1
  • 4
  • 14
8
votes
2 answers

What is the difference between multi-layer perceptron and generalized feed forward neural network?

I'm reading this paper:An artificial neural network model for rainfall forecasting in Bangkok, Thailand. The author created 6 models, 2 of which have the following architecture: model B: Simple multilayer perceptron with Sigmoid activation function…
hyTuev
  • 267
  • 2
  • 9
8
votes
3 answers

How to compare experiments run over different infrastructures

I'm developing a distributed algorithm, and to improve efficiency, it relies both on the number of disks (one per machine), and on an efficient load balance strategy. With more disks, we're able to reduce the time spent with I/O; and with an…
Rubens
  • 4,097
  • 5
  • 23
  • 42
8
votes
5 answers

I got the following error : 'DataFrame' object has no attribute 'data'

I am trying to get the 'data' and the 'target' of the iris setosa database, but I can't. For example, when I load the iris setosa directly from sklearn datasets I get a good result: Program: from sklearn import datasets import numpy as np iris =…
user58187
  • 81
  • 1
  • 1
  • 2