Skip to content

Commit a1a54c4

Browse files
committed
v0.7.1
1 parent d2bcb67 commit a1a54c4

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and the versioning is mostly derived from [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v0.7.1] - 2025-07-25
8+
### Changed
9+
- improved memory requirements estimate
10+
711
## [v0.7.0] - 2025-07-13
812
### Breaking Changes
913
- the shape of the bags parameter has been changed from (n\_outer\_bags, n\_samples) to (n\_samples, n\_outer\_bags)

python/interpret-core/interpret/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Distributed under the MIT software license
33

44
# NOTE: Version is replaced by a regex script.
5-
__version__ = "0.7.0"
5+
__version__ = "0.7.1"

python/interpret-core/interpret/glassbox/_ebm/_ebm.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,6 @@ def estimate_mem(self, X, y=None):
17211721
native = Native.get_native_singleton()
17221722

17231723
objective = self.objective
1724-
n_classes = Native.Task_Unknown
17251724
if objective is not None:
17261725
if len(objective.strip()) == 0:
17271726
objective = None
@@ -1757,15 +1756,19 @@ def estimate_mem(self, X, y=None):
17571756
msg = f"Unrecognized objective {self.objective}"
17581757
_log.error(msg)
17591758
raise ValueError(msg)
1760-
else:
1759+
1760+
n_samples = None if y is None else len(y)
1761+
X, n_samples = preclean_X(
1762+
X, self.feature_names, self.feature_types, n_samples, "y"
1763+
)
1764+
1765+
if y is None:
17611766
n_classes = Native.Task_Regression
17621767
# create a dummy y array (simulate regression)
17631768
y = np.zeros(n_samples, dtype=np.float64)
17641769

17651770
n_scores = Native.get_count_scores_c(n_classes)
17661771

1767-
X, n_samples = preclean_X(X, self.feature_names, self.feature_types, None, None)
1768-
17691772
bin_levels = [self.max_bins, self.max_interaction_bins]
17701773

17711774
binning_result = construct_bins(

python/interpret-core/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools.command.sdist import sdist
1313

1414
# NOTE: Version is replaced by a regex script.
15-
version = "0.7.0"
15+
version = "0.7.1"
1616

1717

1818
def _copy_native_code_to_setup():

python/interpret/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name = "interpret"
77
# NOTE: Version is replaced by a regex script.
8-
version = "0.7.0"
8+
version = "0.7.1"
99
long_description = """
1010
In the beginning machines learned in darkness, and data scientists struggled in the void to explain them.
1111

shared/vis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@interpretml/interpret-inline",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Interpret inline library for rendering visualizations across all notebook environments.",
55
"main": "index.js",
66
"keywords": [],

0 commit comments

Comments
 (0)