Skip to content

Commit

Permalink
added doc strings for histogram matching funciton
Browse files Browse the repository at this point in the history
  • Loading branch information
KMarkert committed Apr 19, 2021
1 parent 4aafd14 commit 1ff65d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hydrafloods/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,18 @@ def apply_image_pca(img, eigen_vecs, names, center=None):


def hist_matching(samples, predictor, target, n_estimators=50):
"""Trains classifiers to perform histogram matching
args:
samples (ee.FeatureCollection): feature collection with samples for histogram matching
predictor (str): column name of values to transform
target (str): column name of values to match
n_estimators (int, optional): number of trees to create random forest models from. default = 50
returns:
list[ee.Classifier]: list of classifiers with first element being the val to proba and second being proba to val classifiers
"""

def get_cdf(fc,column):
def array_to_features(l):
Expand Down

0 comments on commit 1ff65d1

Please sign in to comment.