Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
- Fixed bug
  • Loading branch information
rebelosa committed Dec 21, 2020
1 parent bf737ae commit f95f49e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion randomsubgroups/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.4.1"
11 changes: 10 additions & 1 deletion randomsubgroups/pysubgrouputils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_score(self, dataset_size, dataset_target, subgroup_size, subgroup_target
return (subgroup_size/self.dataset_statistics.size) ** self.a * self.kl_divergence(dataset_target, subgroup_target)


class DynamicSpecializationOperatorWithMaxFeatures:
class SpecializationOperator:
"""
This SpecializationOperator is similar to
StaticSpecializationOperator except that in every
Expand Down Expand Up @@ -193,6 +193,15 @@ def execute(self, task):
result.sort(key=lambda x: x[0], reverse=True)
return ps.SubgroupDiscoveryResult(result, task)

# def create_selectors(data, n_bins=5, intervals_only=True, binning='ef', ignore=None):
# if ignore is None:
# ignore = []
# search_space = []
# [search_space.extend(make_nominal_bins(values)) for key, values in
# data.select_dtypes(exclude=['number']).iteritems() if key not in ignore]
# [search_space.extend(make_numeric_bins(values, n_bins, intervals_only, binning)) for key, values in
# data.select_dtypes(include=['number']).iteritems() if key not in ignore]
# return search_space


def get_search_space(data, n_bins=5, intervals_only=True, binning='ef', ignore=None):
Expand Down

0 comments on commit f95f49e

Please sign in to comment.