From 2efbabaab5d59f94086bed30f8929bb8d29035c9 Mon Sep 17 00:00:00 2001 From: pradeek v Date: Sat, 18 Apr 2020 13:48:02 +0530 Subject: [PATCH] Issue-3055-Remove-seed-parameter-from-SFrame-flat-map-method --- src/python/turicreate/data_structures/sframe.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/python/turicreate/data_structures/sframe.py b/src/python/turicreate/data_structures/sframe.py index fd8dec048b..b2ceb34df8 100644 --- a/src/python/turicreate/data_structures/sframe.py +++ b/src/python/turicreate/data_structures/sframe.py @@ -2702,7 +2702,7 @@ def apply(self, fn, dtype=None): with cython_context(): return SArray(_proxy=self.__proxy__.transform(fn, dtype, seed)) - def flat_map(self, column_names, fn, column_types="auto", seed=None): + def flat_map(self, column_names, fn, column_types="auto"): """ Map each row of the SFrame to multiple rows in a new SFrame via a function. @@ -2735,9 +2735,6 @@ def flat_map(self, column_names, fn, column_types="auto", seed=None): input. If the types cannot be inferred from the first 10 rows, an error is raised. - seed : int, optional - Used as the seed if a random number generator is included in `fn`. - Returns ------- out : SFrame @@ -2765,8 +2762,7 @@ def flat_map(self, column_names, fn, column_types="auto", seed=None): [6 rows x 2 columns] """ assert callable(fn), "Input must be callable" - if seed is None: - seed = abs(hash("%0.20f" % time.time())) % (2 ** 31) + seed = abs(hash("%0.20f" % time.time())) % (2 ** 31) # determine the column_types if column_types == "auto":