mgyigit commited on
Commit
b5647e6
1 Parent(s): d488d89

Update src/bin/target_family_classifier.py

Browse files
src/bin/target_family_classifier.py CHANGED
@@ -100,7 +100,7 @@ def score_protein_rep(dataset):
100
 
101
  print('Producing protein family predictions...\n')
102
  for i in tqdm(range(10)):
103
- clf = linear_model.SGDClassifier(class_weight="balanced", loss="log", penalty="elasticnet", max_iter=1000, tol=1e-3, random_state=i, n_jobs=-1)
104
  clf2 = OneVsRestClassifier(clf, n_jobs=-1)
105
 
106
  train_indexx = train_index.iloc[i].astype(int)
 
100
 
101
  print('Producing protein family predictions...\n')
102
  for i in tqdm(range(10)):
103
+ clf = linear_model.SGDClassifier(class_weight="balanced", loss="log_loss", penalty="elasticnet", max_iter=1000, tol=1e-3, random_state=i, n_jobs=-1)
104
  clf2 = OneVsRestClassifier(clf, n_jobs=-1)
105
 
106
  train_indexx = train_index.iloc[i].astype(int)