Questions tagged [one-class-classification]

34 questions
6
votes
2 answers

One Class SVM and Isolation Forest for novelty detection

My question is regarding the Novelty detection algorithms - Isolation Forest and One Class SVM. I have a training dataset(with 4-5 features) where all the sample points are inliers and I need to classify any new data as an inlier or outlier and…
5
votes
1 answer

One class SVM model for text classification (scikit-learn)

I am attempting to classify a train set of texts to be used for predicting similar texts in the test set of texts. I am using the one_class_svm model. 'author_corpus' contains a list of texts written by a single author and 'test_corpus' contains a…
5
votes
1 answer

Passing Target/Label data to Scikit-learn GridSearchCV's fit method for OneClassSVM

From my understanding, One-Class SVM's are trained without target/label data. One answer at Use of OneClassSVM with GridSearchCV suggests passing Target/Label data to GridSearchCV's fit method when the classifier is the OneClassSVM. How does the…
4
votes
1 answer

Re-using created dataset for different task (object detection - image classification)

I have created a large dataset in Amazon sagemaker and labeled it using bounding boxes. I used this dataset for object detection and everything worked fine. Later, I wanted to use this dataset for simple image classification. But every time, I try…
2
votes
1 answer

One Class Classification in R language. What am I doing wrong when generating the confusion matrix?

I am trying to understand and implement classifiers A class in R is based on several UCIs and one of them (http://archive.ics.uci.edu/ml/datasets/Chronic_Kidney_Disease). When trying to print a confusion matrix you are giving the error “all…
1
vote
1 answer

OneClassSVM performances not repeatable. Why?

I train a OneClassSVM for anomaly detection using GridSearchCV for hyperparameters tuning. What I do is 1-fold cross validation, passing it my class of interest to train on for each HP configuration and a mix of my class of interest and other…
1
vote
0 answers

Requested tensor connection from unknown node: "dense_5_target:0"

I'm faced this error when I running this code in Google colab. The error is: InvalidArgumentError Traceback (most recent call last) in () 22 23 model3 = get_model3() ---> 24…
1
vote
1 answer

Does H2O support one-class classification?

I'd like to build a one-class classification (OCC) model using the H2O package either for Python or R but I couldn't find any reference on the internet. So I wonder, does H2O support one-class classification? If it does, could someone here help me…
1
vote
0 answers

R One-Class SVM - Get Probabilistic outputs

I am trying to find away to derive probabilistic outputs when predicting from a one-class svm in R. I know this is not supported in libsvm and I also know this question has been asked before and here a couple of years ago on SO but packages were not…
A_Murphy
  • 184
  • 2
  • 14
1
vote
0 answers

How to troubleshoot the dimensions for my layers in PyTorch

I am working through my training loop errors where my dimensions are incorrect. Of course there is other code here and there, but I thought this the most important to show here. I feel everywhere I look online I am getting told different info or in…
1
vote
1 answer

Which algorithm does R use for computing one-class SVM ? (package e1071)

Which algorithm does R use for computing one-class SVM ? This is the function e1071::svm(..., type=one-classification, ...) I have found this very nice blog, where author writes about two algorithms for one-class SVM. Which one does the function…
pikachu
  • 690
  • 1
  • 6
  • 17
0
votes
0 answers

One Class SVM for Anomaly DIagnosis

I have a dataset of normal points Xtr and I would like to fit a OneClass-SVM for anomaly detection purposes. from sklearn.svm import OneClassSVM #fit ocsvm = OneClassSVM(nu=NU, kernel='rbf', gamma=GAMMA) ocsvm.fit(X=Xtr) Then, I would like to…
Pier
  • 97
  • 1
  • 13
0
votes
0 answers

My One Class Autoencoder's ROC Curve Appears to be Inverted

I am training a One Class Autoencoder on 50,000 benign samples. Then, when testing the model, I am giving it 10,000 benign samples and 10,000 anomolies. The resulting F1 and Recall score of the model is 0.974 ad 0.992, respectively. It is able to…
0
votes
1 answer

Feature selection for one class classification

I try to apply One Class SVM but my dataset contains too many features and I believe feature selection would improve my metrics. Are there any methods for feature selection that do not need the label of the class? If yes and you are aware of an…
Gvasiles
  • 85
  • 6
0
votes
1 answer

One class SVM always returns FALSE

I have a project in my ML course about anomaly/novelty detection and decided to study the One-class SVM algorithm as described in this paper: http://research.microsoft.com/pubs/69731/tr-99-87.pdf. In the package e1071 in R there is an svm function…
1
2 3