Questions tagged [one-class-classification]
34 questions
0
votes
1 answer
How to compute False Accept and False reject rates using one class SVM Python
How to compute False Accept and False reject rates using one class SVM? I have a user data with around 70000 samples. I am trying to apply one class SVM here. The number of -1 values obtained are 12765 and the rest are displayed as 1. From these…

sindhu reddy
- 61
- 8
0
votes
1 answer
One-class svm classification error : Classification metrics can't handle a mix of unknown and binary targets
X_train, X_test, y_train, y_test = train_test_split(x, y, test_size=0.3, random_state = 2020, stratify=y)
X_train_user = X_train[y_train == 'ji2hwh']
X_train_attacker = X_train[y_train != 'ji2hwh']
outlier_prop = len(X_train_user) /…

George
- 328
- 1
- 9
0
votes
0 answers
Binary Classification on Unbalanced Medical Datasets
I want to work on a binary classification problem using a medical dataset consisting of 35K images. I have a few questions on the same.
1.) The architectures like VGG, Inception, etc which are typically used on datasets like COCO, ImageNet, etc are…

Piyush Kansal
- 43
- 4
0
votes
1 answer
Hyperparameter tuning one-class SVM
I am looking for a package or a 'best practice' approach to automated hyper-parameter selection for one-class SVM using Gaussian(RBF) kernel. I am currently implementing libsvm's one-class svm in R so preferably an approach incorporating that or, at…

A_Murphy
- 184
- 2
- 14
0
votes
0 answers
Node JS require trained in Python One Class SVM and use it for predictions
I need to train a One Class SVM model for an anomaly detection task in Python, export it (for ex. using pickle or tfjs-converter) and require it into a NodeJS function just for predictions.
I have tried using TensorflowJS library but it only works…

Kostas Letros
- 53
- 1
- 11
0
votes
1 answer
Problem comparing a tensor with binary values
I have a problem where there is an image and a given question. The answer is of the form [False, True]. During training I try to find whether the prediction is right or wrong.
def build_loss(logits, labels):
# Cross-entropy loss
loss =…

Rishik Mani
- 490
- 8
- 27
0
votes
1 answer
Binary vs Multiclass Classification using TPU
I am using an EfficientNetB7 and EfficientNetB0 model for training my dataset, and am facing a major anomaly.
EfficientNetB7 gave 96.4 percent accuracy with 40 epochs, lr_callback,4 nb_classes,imagenet weights.
GCS_DS_PATH =…

Bhavesh2799
- 1
- 2
0
votes
1 answer
I am not able to generate the confusion matrix of a classification with One Class in R
I am trying to understand and implement One Class Classification in R on dataset in Kaggle(https://www.kaggle.com/uciml/breast-cancer-wisconsin-data).
When trying to print a confusion matrix you are giving the error:
Error in! All.equal (nrow…

StaLLoNe_CoBRa
- 23
- 6
0
votes
1 answer
Can I build a one class cnn in keras?
Can I build a cnn in keras with only one class (class - 0) so it can predict if the given date belongs to this class?
Thanks in advance
Edite :Thanks for the answer and comments so far. My data is acceleration time series from a healthy structure…

zahra
- 1
- 1
- 2
0
votes
2 answers
How to make OneClassSVM model more accurate? (Scikit-learn)
I have been attempting to classify an author using multiple texts written by this author, which I would then use to find similarities in other texts to identify that author in the test group.
I have been successful with some of the predictions,…

MythKhan
- 121
- 7
0
votes
1 answer
sklearn oneclass svm KeyError
My Dataset is a set of system calls for both malware and benign, I preprocessed it and now it looks like…
user8022066
0
votes
1 answer
The train and validation accuracy of image classification with single class data are wrong and want to fix this
I have built an image classification program using 32 images for train and 16 images for validation with batch size of 16 and 10 epochs.
I have used ImageDataGenerator(rescale=1./255).flow_from_directory(image path and other parameters) for train…

user12174104
- 37
- 4
0
votes
0 answers
Best discriminatory method for 1d data with a lot of variance
I have a problem that I have tried to solve using Support Vector Machines (SVMs) to discriminate 1d series of data between two classes. One of the classes have very specific characteristics and are easily distinguishable from a human perspective,…

Kristian
- 1
0
votes
1 answer
How to make one_class svm working for multi-class classification?
am trying to do classification using one class svm. but I want to know how can I make it working for multi-class classification?

Haider A Hussien
- 17
- 1
0
votes
0 answers
Opencv SVM One-class prediction always return 0
I'm working with SVM and one-class classification problem. Data is a nx3 matrix, where each row is a sample, so I have n samples in data matrix:
0.012873813, 0.094377473, 0.0043269233
0.020184161, 0.10070252, 0.0045584044
0.023954002, 0.10439565, …