Skip to content

Commit

Permalink
codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ardunn committed Feb 2, 2019
1 parent a957d67 commit 42918d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions automatminer/analytics/core.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
import warnings

import matplotlib.pyplot as plt
from matminer.datasets import load_dataset

try:
from skater.core.explanations import Interpretation
Expand Down
2 changes: 1 addition & 1 deletion automatminer/featurization/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
try:
import torch
import cgcnn
except:
except ImportError:
torch, cgcnn = None, None

__authors__ = ["Alex Dunn", "Alex Ganose"]
Expand Down
4 changes: 2 additions & 2 deletions automatminer/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def benchmark(self, df, target, kfold, fold_subset=None):
"may be extended!")
results = []
fold = 0
for train_ix, test_ix in kfold.split(df):
for _, test_ix in kfold.split(df):
if fold in fold_subset:
self.logger.info("Training on fold index {}".format(fold))
# Split and identify test set
Expand All @@ -240,7 +240,7 @@ def benchmark(self, df, target, kfold, fold_subset=None):
"dataframe for benchmark.")
df = self.autofeaturizer.fit_transform(df, target)

for train_ix, test_ix in kfold.split(df):
for _, test_ix in kfold.split(df):
if fold in fold_subset:
self.logger.info("Training on fold index {}".format(fold))

Expand Down

0 comments on commit 42918d2

Please sign in to comment.