Questions tagged [classification]

In machine learning and statistics, classification is the problem of identifying which of a set of categories a new observation belongs to, on the basis of a training set of data containing observations whose category membership (label) is known.

In machine learning and statistics, classification refers to the problem of predicting category memberships based on a set of pre-labeled examples. It is thus a type of supervised learning.

Some of the most important classification algorithms are support vector machines , logistic regression, naive Bayes, random forest and artificial neural networks .

When we wish to associate inputs with continuous values in a supervised framework, the problem is instead known as . The unsupervised counterpart to classification is known as (or cluster analysis), and involves grouping data into categories based on some measure of inherent similarity.

7859 questions
2
votes
1 answer

How do I save an image classification model and use it for android

How do i save an image classification model as .pb file and its label.txt by using Keras And Tensorflow in order to use this two files on android.i have a code for beginning and the code is only save .pb file but not label.txt I have already done…
2
votes
0 answers

Is it possible to use a matrix instead of vector as a one-hot encoder for classification?

I need to classify a picture that includes two different images inside. Classes are identical for both images. For example, a picture can include a dog and a cat or two dogs or two cats (In reality, I have much more classes, but all classes are…
Inna
  • 663
  • 8
  • 12
2
votes
1 answer

How to calculate an 0-1 certainty score for DecisionTreeClassifier?

Dataset 0-9 columns: float features (parameters of a product) 10 column: int labels (products) Goal Calculate an 0-1 classification certainty score for the labels (this is what my current code should do) Calculate the same certainty score for each…
sogu
  • 2,738
  • 5
  • 31
  • 90
2
votes
1 answer

TensorFlow + Keras multi gpu model with inference

I am trying to do image classification using Keras's Xception model modeled after this code. However I want to use multiple GPU's to do batch parallel image classification using this function. I believe it is possible and I have the original code…
Troy Zuroske
  • 762
  • 1
  • 12
  • 31
2
votes
2 answers

How to modify keras model to get output between 0 to 7 except for just 0 and 1?

I am pretty new to data science and neural network. I have a dataset of unicode sentences which havebeen labeled as 0 and 1 for 'spam' or 'not_spam'. the Model I used for data is the code below(excluding the data preprocessing): from keras.models…
Masoud Masoumi Moghadam
  • 1,094
  • 3
  • 23
  • 45
2
votes
1 answer

class_weight dictionary format for sklearn classification

Attempting to perform classification on a large ~2500*~4000 features and have a confidence document accompanying the training data. I am attempting to use the confidence values as the class_weight parameter of a classifier and am having trouble…
Cameron L
  • 86
  • 12
2
votes
0 answers

Keras Tensorflow works well in training and test, but predict same class for all inputs in final dataset

I'm having trouble using Tensorflow to solve a classification problem I have a dataset with 259,514 rows, classified into the following groups: Groups: [0,1) - 171.646 rowns [1,55) - 17.262 rowns [55,105) - 17.320 rowns [105,170) …
2
votes
2 answers

Tensorflow 2-coordinates classifier

Im a novice experimenting with machine learning. I saw this repo https://github.com/jbp261/Optimal-Classification-Model-of-BLE-RSSI-Dataset and wanted to replicate a similar experiment. So I have 2 receivers and want to classify near which one the…
2
votes
0 answers

How to use run_classifer.py,an example of Pytorch implementation of Bert for classification Task?

How to use the fine-tuned bert pytorch model for classification (CoLa) task? I do not see the argument --do_predict, in /examples/run_classifier.py. However, --do_predict exists in the original implementation of the Bert. The fine-tuned model is…
2
votes
1 answer

DNN binary classifier's accuracy not increasing

My binary classifier DNN's accuracy seems stuck since epoch 1. I think this means that the model is not learning. Any insight on why this is happening? Problem statement: I would like to classify a given sequence of readings for sensors (ex. [0 1 15…
2
votes
0 answers

Short string classification, high acc tons of false positives. ¿Are we on the right path?

TL;DR AT THE END I've been working on feature extraction of documents with multiple frameworks for a few months, and recently the project has found a dead end. I'm aiming to find any kind of identification string within the document. Thanks in…
2
votes
1 answer

What does clf.score(X_train,Y_train) evaluate in decision tree?

I'm trying to build a decision tree, and found the following code online. My question is: What is clf.score(X_train,Y_train) evaluate for in decision tree? The output is in the following screenshot, I'm wondering what is that value for? clf =…
2
votes
1 answer

classification and data mining. Difference?

I am working in the area of machine learning and pattern recognition for the last 8-10 years. I use it for image classification and recognition. Recently, I started learning about some Data Mining. How much is data mining related to classification?…
2
votes
0 answers

Heatmap and Gradient-weighted Class Activation Mapping (Grad CAM) on binary classification dataset without bounding boxes

I want to generate the class activation map (CAM) for a binary classification problem. The data I have does not have any bounding boxes or contain any kind of annotation and it is a simple binary classification problem. The sample data input and…
2
votes
2 answers

Over-Sampling Class Imbalance Train/Test Split "Found input variables with inconsistent numbers of samples" Solution?

Trying to follow this article to perform over-sampling for imbalanced classification. My class ratio is about 8:1. https://www.kaggle.com/rafjaa/resampling-strategies-for-imbalanced-datasets/notebook I am confused on the pipeline + coding…
thePurplePython
  • 2,621
  • 1
  • 13
  • 34
1 2 3
99
100