Skip to content

Commit

Permalink
bump version --> 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Aug 7, 2024
1 parent b44e383 commit d9efdfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from codecs import open
from os import path

__version__ = '0.10.0'
__version__ = '0.9.1'


with open("README.md", "r") as fh:
Expand Down
7 changes: 5 additions & 2 deletions teller/explainer/explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def predict_proba(x):
return self.obj.predict_proba(x)[:, self.y_class]

y_hat = predict_proba(X)
self.residuals_ = y - y_hat

# heterogeneity of effects
if method == "avg":
Expand Down Expand Up @@ -247,6 +248,7 @@ def predict_proba(x):
self.score_ = score_regression(self.obj, X, y, scoring=self.scoring)

y_hat = self.obj.predict(X)
self.residuals_ = y - y_hat

# heterogeneity of effects
if method == "avg":
Expand Down Expand Up @@ -378,8 +380,7 @@ def foo_gaussian(ix):
ss_tot = np.sum((y - self.y_mean_) ** 2)
ss_reg = np.sum((y_hat - self.y_mean_) ** 2)
ss_res = np.sum((y - y_hat) ** 2)

self.residuals_ = y - y_hat

self.r_squared_ = 1 - ss_res / ss_tot
self.adj_r_squared_ = 1 - (1 - self.r_squared_) * (n - 1) / (
n - p - 1
Expand Down Expand Up @@ -530,6 +531,8 @@ def summary(self):
],
).transpose()
)

return

def plot(self, what):
"""Plot average effects, heterogeneity of effects, ...
Expand Down

0 comments on commit d9efdfc

Please sign in to comment.