Questions tagged [one-class-classification]
32 questions
6
votes
1 answer
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…
![](../../users/profiles/12201114.webp)
subhadeep sarkar
- 61
- 2
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…
![](../../users/profiles/3731622.webp)
user3731622
- 3,753
- 2
- 31
- 64
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…
![](../../users/profiles/13885236.webp)
Kristina Olešová
- 41
- 2
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…
![](../../users/profiles/11619197.webp)
StaLLoNe_CoBRa
- 25
- 6
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…
![](../../users/profiles/3397819.webp)
Anastasiya-Romanova 秀
- 2,744
- 21
- 41
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…
![](../../users/profiles/12286520.webp)
A_Murphy
- 110
- 2
- 9
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…
![](../../users/profiles/10161315.webp)
Jennifer Crosby
- 115
- 1
- 1
- 10
1
vote
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…
![](../../users/profiles/11576797.webp)
MythKhan
- 61
- 6
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…
![](../../users/profiles/11254837.webp)
pikachu
- 403
- 4
- 14
0
votes
0 answers
why I cant build a prediction model for OneClassSVM in sklearn
I am trying to detect outliers to a dataset using OneClassSVM, my code is as follows
from sklearn.svm import OneClassSVM
import pandas as pd
input_file = "training.csv"
training_data = pd.read_csv(input_file)
X = training_data[['header1',…
![](../../users/profiles/15396183.webp)
hanimn
- 1
0
votes
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…
![](../../users/profiles/15067294.webp)
Ahad
- 1
- 1
0
votes
0 answers
OC-SVM based threshold setting
Could anyone please suggest some papers on it? I have already done some research but seems hard to find somethin on it.
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) /…
![](../../users/profiles/13688215.webp)
George
- 166
- 7
0
votes
0 answers
Is decision surface (hypersphere in one class svm) is similar to threshold setting?
I'm trying to find training methods of a threshold setting based on one-class support vector machine. So my question is, is decision surface as hypersphere in one class svm is similar to threshold setting in the case i mentioned?
I'm quite new to…
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…
![](../../users/profiles/14067295.webp)
Piyush Kansal
- 31
- 2