Questions tagged [classification]

An instance of supervised learning that identifies the category or categories which a new instance of dataset belongs.

Filter by
Sorted by
Tagged with
2
votes
0answers
14 views

AUC on ROC Curve near 1.0 for Multi-Class CNN but Precision/Recall are not perfect?

I am building a ROC Curve and calculating AUC for multi-class classification on the CIFAR-10 dataset using a CNN. My overall Accuracy is ~ 90% and my precision and recall are as follows: ...
2
votes
1answer
99 views

Text classification with multiple documents per labeled datapoint

I have a dataset with a label TRUE or FALSE for each person, but each person has multiple documents associated with them (emails ...
2
votes
1answer
676 views

Why does Feature Importance change with each iteration of a Decision Tree Classifier?

After applying PCA to reduce the number of features, I am using a DecisionTreeClassifier for a ML problem Additionally I want to compute the feature_importances_. However, with each iteration of the ...
1
vote
1answer
2k views

Using LSTM to predict binary classification - accuracy stuck at 50% - how to use statefulness

I am trying to use an LSTM model to make binary classifications; however when I train the model the loss stays around 0.69 (ie. -$\ln(0.5)$) and the accuracy at 0.5, which suggests to me the model is ...
2
votes
1answer
47 views

What's wrong with my implementation of the Adaline algorithm?

I'm working through the textbook called Learning From Data and one of the problems from the first chapter has the reader implement the Adaline algorithm from scratch and I chose to do so using Python. ...
0
votes
1answer
22 views

GridSearchCV Acting Weird

I am using GridSearchCV to find the best combination of parameters for SVM. However, the parameters chosen by GridSeasrchCV do not seem to be the best ones. I tried some parameters randomly and they ...
1
vote
1answer
15 views

Is each form of word classification also considered to be '(named) entity recognition'?

In an article that I am writing, I focus on word classification. A typical task that involves word classification is (named) entity recognition. Entity recognition is a rather broad task and seems to ...
0
votes
1answer
43 views

K-Nearest neighbor in transformed space

When googling "weighted KNN", the results appear to be focused on weighting the nearest neighbor values after those neighbors have been determined. I'm looking for something that assigns a level of ...
-1
votes
0answers
10 views

Network Architecture for Classification of numerical Dataset (CSV file) [closed]

i have a simple csv file with 3 labels and 26 features and want to classify it. I solved it with a Multi-Layer Perceptron Model. Just Dense and Dropout Layers. It works, but i was wondering if there ...
0
votes
1answer
57 views

How to Proceed with Tokenized text content which is given in number?

I have one data set of customer review, but the text data is given is tokenized text number. I am unable to proceed thinking about how to proceed? As I am encountering such data set the first time, ...
2
votes
1answer
35 views

NLP Emotion Detection - Model fails to learn to recognize negations

I am working on a nlp emotion detection project. The emotions that I try to predict are 'joy', 'fear', 'anger', 'sadness'. I use some publicly available labeled datasets to train my model e.g. ISEAR, ...
-2
votes
1answer
27 views

ML - Labelling - number of possibilities [closed]

I've started learning ML and stuck with the number of possibilities in labelling. I have a sample which comprises 4 attributes (binary) (from the book Apprentissage artificiel, Antoine Cornéujols) ...
0
votes
1answer
30 views

Ways to increase recall in SVM

I am training an SVM on UCI's Bank Marketing Data Set, the bank additional-full.csv. As the data is skewed I am also interested in recall. I am getting accuracy of about 87.95% but my recall is around ...
0
votes
1answer
48 views

How to choose a kernel function and a feature mapping function?

Although, after extensive of reading, I know the concepts of support vector machines pretty well by now, I have trouble translating the concept of the kernel function $K$ and the feature mapping ...
0
votes
1answer
13 views

Gender identification task on instance or user level?

I'm working on a task which is gender identification. Given a user account (e.g. Twitter account) with its documents (e.g. 100 tweets), the user should be classified as a male or a female. The ...
1
vote
1answer
419 views

How does a 3D, 4D,.. hyperplane look like (visualization)?

I am looking at support vector machine classification algorithm. It finds the optimal hyperplane. In linear algebra, hyperplane is a space that is one dimension lower than the ambient plane. For ...
0
votes
0answers
9 views

how to calculate mean average precision of custom object detection algorithms in python

I know that for calculating mean average precision first we must have ground truth files for each image in dataset. I am following this tutorial to detect whether a person has mask on its image or not....
1
vote
2answers
256 views

Intuition behind the fact that SVM uses only measure of similarity between examples for classification

I have read about SVM and although I did not understand the math behind it completly, I know that it produces decision plane with maximum margin between examples of different classes and role of ...
-1
votes
1answer
33 views

What algorithm should I use to get a mapping between two variables? [closed]

I have a dataset that contains for every row, a list X of x items, that is a subset of X_total, and a list Y of y items, that is a subset of Y_total. ...
2
votes
1answer
54 views

Making sense of loss and accuracy curves

This is an issue that I have come across over and over again. Loss (cross-entropy in this case) and accuracy plots that do not make sense. Here is an example: Here, I’m training a ReNet18 on CIFAR10. ...
2
votes
2answers
45 views

how to find parameters used in decision tree algorithm

I use a machine learning algorithm, for example decision tree classifier similar to this: ...
3
votes
1answer
1k views

SMOTE vs SMOTE-NC for binary classifier with categorical and numeric data

I am using Xgboost for classification. My y is 0 or 1 (true or false). I have categorical and numeric features, so theoretically, I need to use SMOTE-NC instead of ...
1
vote
1answer
241 views

How to get similar visualization to R fviz_cluster function in Python?

It looks like R has some cool visualization function for clusters that gives output like this: The input is 2D Points and labels for them. How can i get same visualization in Python?
-1
votes
0answers
11 views

extrapolation in SVM model cauchy [closed]

I am using a SupportVectorMachine model type Cauchy. The model was created with minimum value to predict is zero, but running ...
1
vote
0answers
14 views

state transition classification on terminal state

I have data on a unit $i$ which enters an entry state $S_0$. This unit has some covariates $x_i$ I would like to predict the probability the unit will reach the terminal state $S_{pos}$ or $S_{neg}$. ...
1
vote
0answers
14 views

Justification for keeping features that do not provide separation using Random Forest

I have a random forest classifier model with approximately 70% accuracy; when I remove some variables that allow less separaion, I remain with the exactly same accuracy. However, I did not test this ...
2
votes
1answer
72 views

Binary Classification Comparing two time series of variable length

Is there a machine learning model (something like LSTM or 1D-CNN) that takes two time series of variable length as input and ...
0
votes
3answers
47 views

How to convert images (.jpg) to vectors for image classification

I'm currently working on a project that involves classifying an image as either that of a dog or that of a cat. The twist is that I want to do this without using Convolutional Neural Networks, mainly ...
3
votes
3answers
79 views

Find recurrent dates in a small set (and get rid of non recurrent ones)

I need help in the analyse of a categorization problem. Given a set of dates (small set: 20 elements maximum), I would like to group dates which are equally distributed (with a tolerance). It can be,...
2
votes
1answer
30 views

Classifying objects based of a varying number of the same type of feature vector for each object

For a congressional session, I have created a doc2vec model of speeches made. Using the vectors from this model, I have a dataset of each congressperson, their political affiliation, and a list of the ...
0
votes
3answers
35 views

Distinguish randomly generated texts from reasonable for human texts [closed]

I have strings short texts of 2 types: '23jd2032n0d2mn', 'fn830n30rn83', 'fhui29n4ok', 'qn4foml', ... and ...
3
votes
1answer
431 views

Should I oversample my validation data to get better F1 score and PRC?

I am currently working with a dataset that is imbalanced, about 30k rows * 14 features (just for you know), and 99.5% of the data is labeled 0. Since the model is strongly imbalanced I decided to use ...
0
votes
0answers
13 views

Does vectorized implementation of logistic regression give better results than Sklearn-LogisticRegression? [closed]

I just learned the on vectorized implementation of Logistic regression along with linear regression. Do these techniques provide a better result or are they in anyway better than prewritten ...
4
votes
1answer
82 views

Is there an algorithm that imputes missing values based on n nearest columns? (KNN hybrid)

I have a dataset of 70 columns that have missing values. Each column has a few columns (3-5) that it is significantly more correlated than the others but each column's correlated columns are very ...
0
votes
1answer
19 views

When optimizing the MSE, the correlation between prediction and target increases?

After optimizing the MSE (mean squared error) in a regression task, how is the change in Pearson correlation coeficient between target vector and the prediction? Is any behaviour possible? Or is sure ...
-2
votes
0answers
16 views

Bag-of-words understanding in supervised embedding pipeline [closed]

I would like to unserstand more what is considered in a bag of words representation. let’s say I have an intent food: ...
0
votes
0answers
26 views

CNN model to predict if the shops are open or closed

I'm planning to train a model used to determine if a shop is open. Images are either shot by my students or scraped from the internet. They have manually cropped them so that only one shop is shown on ...
2
votes
1answer
20 views

Can I do bagging method as improvement technique to decision tree in research?

Bagging use decision tree as base classifier. I want to use bagging with decision tree(c4.5) as base as the method that improve decision tree(c4.5) in my research that solve problem overfitting. Is ...
5
votes
1answer
5k views

Using class weights in Keras with multiple binary outputs which are not simply one-hot-encoded

My labels are binary vectors of length 5, e.g., [0, 0, 1, 1, 1]. My label set is very biased, 1-to-50, where the case [0, 0, 0, 0, 0] is very common while all ...
0
votes
0answers
17 views

How to change Linear model in SGDClassifier scikit learn?

The SGDClassifier of scikit learn defines it as "Linear classifiers (SVM, logistic regression, etc.) with SGD training.". I understand from this that any Linear classifier can be used here. ...
1
vote
1answer
109 views

Tensorflow model works for classification but not for regression (all predictions equal the output layer bias)

I'm trying to build a model for FX prediction. It's giving some promising results for classifying each period as buy/sell/neutral. When used as a classifier, actual returns are converted to 0, 1, or ...
15
votes
3answers
3k views

Predict the best time of call

I have a dataset including a set of customers in different cities of California, time of calling for each customer, and the status of call (True if customer answers the call and False if customer does ...
4
votes
3answers
263 views

Reducing the size of a dataset

I am trying to classify gestures. I am using Python's scikit learn library classification algorithms for that. I have collected depth images for this purpose. 200 samples are collected for each ...
0
votes
0answers
22 views

Visualization of transformed features in BERT

So I'm trying the Intent Recognition with BERT using Keras and TensorFlow 2 available at kdnuggets.com and this is the code for the results evaluation. ...
-2
votes
0answers
25 views

Are these precision recall curves possible where single curve intersects each other? [closed]

Someone just showed me this precision-recall curve for decision tree classifiers after feeding scores and targets to scikit learns precision-recall curve module. Is this possible that the single curve ...
3
votes
2answers
128 views

Geometric interpretation of MLP output

I am really interested in the geometric interpretation of perceptron outputs, mainly as a way to better understand what the network is really doing, but I can't seem to find much information on this ...
7
votes
3answers
133 views

feature importance after classification

I have time series data and more or less 200 features for each sample, I used a recurrent neural network for the binary classification task. After the classification I would like to know which ...
1
vote
1answer
14 views

predict_proba() on a continuos target made binary

I am building a Newtons gravitation equation model. It receives two mass and a radius and outputs what it generates from the formula. $F = G \frac{m1 · m2}{r^2}$ I want to transform it now to a binary ...
1
vote
2answers
36 views

How to combine two different embeddings in the best way possible?

I have two models which are giving two books embedding Ml_model_a => book1_embedding [ 1, 200 ] Ml_model_b => book2_embedding [ 1, 200 ] I am building a ...

1
2 3 4 5
47