From eccf10ffba69bc9d89f04fdbbb4237dd7a2d6ae3 Mon Sep 17 00:00:00 2001 From: David Mayerich Date: Tue, 1 Aug 2017 13:26:18 -0500 Subject: [PATCH] added comments for the envi classification function --- python/classify.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/python/classify.py b/python/classify.py index 85e4e8e..a1f672c 100644 --- a/python/classify.py +++ b/python/classify.py @@ -159,6 +159,10 @@ def random_mask(M, n): new_mask[numpy.unravel_index(new_idx[0:n], new_mask.shape)] = True return new_mask +#perform classification of an ENVI image using batch processing +# input: E is the ENVI object (file is assumed to be loaded) +# C is a classifier - anything in sklearn should work +# batch is the batch size def envi_batch_predict(E, C, batch=10000): Fv = E.loadbatch(batch) -- libgit2 0.21.4