Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhao062 committed Jul 18, 2019
1 parent af8744c commit c2fafbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions combo/models/classifier_comb.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ def predict(self, X):

all_scores = np.zeros([X.shape[0], self.len_classifiers_])

for i in range(self.len_classifiers_):
clf = self.classifiers[i]
for i, clf in enumerate(self.classifiers):
if clf.fitted_ != True and self.pre_fitted == False:
ValueError('Classifier should be fitted first!')
else:
Expand Down
2 changes: 0 additions & 2 deletions combo/test/test_classifier_comb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function

import os
import sys
Expand Down
3 changes: 0 additions & 3 deletions combo/test/test_score_comb.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import division
from __future__ import print_function

import os
import sys

Expand Down

0 comments on commit c2fafbe

Please sign in to comment.