From 5beb4bca68d7f5dc214d6aa9f7215713eb5817d4 Mon Sep 17 00:00:00 2001 From: Ali Date: Sat, 3 Sep 2022 13:04:12 +0200 Subject: [PATCH] added enumerate --- docs/README.md | 3 +-- scifAI/ml/features.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index 852d00f..4bf36bd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -7,5 +7,4 @@ IFC notebooks included - Classification of Human White Blood Cells Using Machine Learning for Stain-Free Imaging Flow Cytometry https://doi.org/10.1002/cyto.a.2392 - In vivo identification of apoptotic and extracellular vesicle-bound live cells using image-based deep learning https://doi.org/10.1080/20013078.2020.1792683 Other datasets: -- Malaria Cell Images Dataset downloaded from https://www.kaggle.com/datasets/iarunava/cell-images-for-detecting-malaria which is taken from the official NIH Website: https://ceb.nlm.nih.gov/repositories/malaria-datasets/ - +- Malaria Cell Images Dataset downloaded from https://www.kaggle.com/datasets/iarunava/cell-images-for-detecting-malaria which is taken from the official NIH Website: https://ceb.nlm.nih.gov/repositories/malaria-datasets/ \ No newline at end of file diff --git a/scifAI/ml/features.py b/scifAI/ml/features.py index e89f134..00ebe00 100644 --- a/scifAI/ml/features.py +++ b/scifAI/ml/features.py @@ -384,7 +384,7 @@ def transform(self, X): visualize=False, multichannel=False) - for i in range(len(hog_features)): + for i, _ in enumerate(hog_features): features["Hog_" + str(i) + "_Ch" + str(ch+1)] = hog_features[i] return features @@ -452,7 +452,7 @@ class CenterOfCellsDistances(BaseEstimator, TransformerMixin): Returns ------- - features : dict + features : dict dictionary including hog_1, hog_2 ... """