Skip to content

Commit

Permalink
Fixed args
Browse files Browse the repository at this point in the history
  • Loading branch information
argenisleon committed Nov 26, 2019
1 parent 6fbeda8 commit 27d2a7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions optimus/ml/keycollision.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,14 @@ def calculate_ngrams(value, args):


def fingerprint_cluster(df, input_cols, output: str = "dict"):
return base_cluster(df, input_cols, output, func=fingerprint, args=[input_cols])
return base_clustering_function(df, input_cols, output, func=fingerprint, args=[input_cols])


def n_gram_fingerprint_cluster(df, input_cols, n_size=2, output: str = "dict"):
return base_cluster(df, input_cols, output, func=n_gram_fingerprint, args=[input_cols, n_size])
return base_clustering_function(df, input_cols, output, func=n_gram_fingerprint, args=[input_cols, n_size])


# df, input_cols, output: str = "dict"
def base_cluster(df, input_cols, output, func=None, args=None):
def base_clustering_function(df, input_cols, output, func=None, args=None):
"""
Cluster a dataframe column based on the Fingerprint algorithm
:return:
Expand Down

0 comments on commit 27d2a7e

Please sign in to comment.