continuous functions skipping fields

This commit is contained in:
Steve Nyemba 2021-04-01 13:43:07 -05:00
parent 5b2aeb0e3e
commit db496f9983
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class Components :
# #
# We need to make sure that continuous columns are removed # We need to make sure that continuous columns are removed
if x_cols : if x_cols :
_args['data'] = _args['data'][list(set(df.columns) - set(x_cols))] _args['data'] = _args['data'][list(set(_args['data'].columns) - set(x_cols))]
if 'gpu' in args : if 'gpu' in args :
_args['gpu'] = self.set_gpu(gpu=args['gpu']) _args['gpu'] = self.set_gpu(gpu=args['gpu'])
if df.shape[0] and df.shape[0] : if df.shape[0] and df.shape[0] :
@ -237,7 +237,7 @@ class Components :
# @TODO: Abstract this !! # @TODO: Abstract this !!
# #
if x_cols : if x_cols :
args['data'] = args['data'][list(set(df.columns) - set(x_cols))] args['data'] = args['data'][list(set(args['data'].columns) - set(x_cols))]
args['candidates'] = 1 if 'candidates' not in args else int(args['candidates']) args['candidates'] = 1 if 'candidates' not in args else int(args['candidates'])
if 'gpu' in args : if 'gpu' in args :