Fix typos
Change-Id: I9fc28742ecbd0cf8d5bcadd7c330e428aa6460bc
This commit is contained in:
parent
5f9495f0e4
commit
75999b9d6e
|
@ -83,7 +83,7 @@ class DecisionTreeClassifier(BaseSML):
|
|||
def learn_structure(self, samples):
|
||||
X_train, X_train_label, X_test, X_test_label = \
|
||||
self._generate_train_test_sets(samples, 0.75)
|
||||
logger.info('Trainig with ' + str(len(X_train)) +
|
||||
logger.info('Training with ' + str(len(X_train)) +
|
||||
'samples; testing with ' + str(len(X_test)) + ' samples.')
|
||||
|
||||
dt_detector = self._get_best_detector(X_train, X_train_label)
|
||||
|
|
|
@ -75,7 +75,7 @@ class EllipticEnvelope(BaseSML):
|
|||
|
||||
def learn_structure(self, samples):
|
||||
X_train, X_test = self._generate_train_test_sets(samples, 0.75)
|
||||
logger.info('Trainig with ' + str(len(X_train)) +
|
||||
logger.info('Training with ' + str(len(X_train)) +
|
||||
'samples; testing with ' + str(len(X_test)) + ' samples.')
|
||||
|
||||
ee_detector = self._get_best_detector(X_train)
|
||||
|
|
|
@ -75,7 +75,7 @@ class IsolationForest(BaseSML):
|
|||
|
||||
def learn_structure(self, samples):
|
||||
X_train, X_test = self._generate_train_test_sets(samples, 0.75)
|
||||
logger.info('Trainig with ' + str(len(X_train)) +
|
||||
logger.info('Training with ' + str(len(X_train)) +
|
||||
'samples; testing with ' + str(len(X_test)) + ' samples.')
|
||||
|
||||
if_detector = self._get_best_detector(X_train)
|
||||
|
|
|
@ -82,7 +82,7 @@ class LogisticRegression(BaseSML):
|
|||
def learn_structure(self, samples):
|
||||
X_train, X_train_label, X_test, X_test_label = \
|
||||
self._generate_train_test_sets(samples, 0.75)
|
||||
logger.info('Trainig with ' + str(len(X_train)) +
|
||||
logger.info('Training with ' + str(len(X_train)) +
|
||||
'samples; testing with ' + str(len(X_test)) + ' samples.')
|
||||
|
||||
lr_detector = self._get_best_detector(X_train, X_train_label)
|
||||
|
|
|
@ -82,7 +82,7 @@ class RandomForestClassifier(BaseSML):
|
|||
def learn_structure(self, samples):
|
||||
X_train, X_train_label, X_test, X_test_label = \
|
||||
self._generate_train_test_sets(samples, 0.75)
|
||||
logger.info('Trainig with ' + str(len(X_train)) +
|
||||
logger.info('Training with ' + str(len(X_train)) +
|
||||
'samples; testing with ' + str(len(X_test)) + ' samples.')
|
||||
|
||||
rf_detector = self._get_best_detector(X_train, X_train_label)
|
||||
|
|
|
@ -82,7 +82,7 @@ class Svc(BaseSML):
|
|||
def learn_structure(self, samples):
|
||||
X_train, X_train_label, X_test, X_test_label = \
|
||||
self._generate_train_test_sets(samples, 0.75)
|
||||
logger.info('Trainig with ' + str(len(X_train)) +
|
||||
logger.info('Training with ' + str(len(X_train)) +
|
||||
'samples; testing with ' + str(len(X_test)) + ' samples.')
|
||||
|
||||
svc_detector = self._get_best_detector(X_train, X_train_label)
|
||||
|
|
Loading…
Reference in New Issue