Skip to content
Snippets Groups Projects
Commit 9ef84f27 authored by DesireeWyrzylala's avatar DesireeWyrzylala
Browse files

fix OCSVM

parent f5150fd0
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,16 @@ from sklearn.utils import check_array
from sklearn.utils.validation import check_is_fitted
from sklearn.preprocessing import MinMaxScaler
from .feature import Window
from .base import BaseDetector
from ..utils.utility import invert_order
from ..utils.utility import zscore
import sys
import os
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))
if BASE_DIR not in sys.path:
sys.path.append(BASE_DIR)
from src.models.feature import Window
from src.models.base import BaseDetector
from src.utils.utility import invert_order
from src.utils.utility import zscore
class OCSVM(BaseDetector):
"""Wrapper of scikit-learn one-class SVM Class with more functionalities.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment