Skip to content

Commit

Permalink
enabling float for private data (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Sharma <[email protected]>

Signed-off-by: Amit Sharma <[email protected]>
  • Loading branch information
amit-sharma authored Oct 10, 2022
1 parent ed69a7a commit 7d8db2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice_ml/data_interfaces/private_data_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, params):
self.categorical_levels = {}

for feature in features_dict:
if isinstance(features_dict[feature][0], int): # continuous feature
if isinstance(features_dict[feature][0], (int, float)): # continuous feature
self.continuous_feature_names.append(feature)
else:
self.categorical_feature_names.append(feature)
Expand Down

0 comments on commit 7d8db2c

Please sign in to comment.