Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
silence session close exception
  • Loading branch information
somefreestring committed Jan 9, 2020
commit 507ca1e0b7123690f249466a4475981fb15ab2d0
2 changes: 1 addition & 1 deletion pandas_ml_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Augment pandas DataFrame with methods for machine learning"""
__version__ = '0.0.22'
__version__ = '0.0.23'

# imports to provide functionality via root import like import pandas_ml_utils as pmu; pmu.XY
from pandas_ml_utils.pandas_utils_extension import *
Expand Down
5 changes: 4 additions & 1 deletion pandas_ml_utils/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ def __setstate__(self, state):

def __del__(self):
if self.is_tensorflow:
self.session.close()
try:
self.session.close()
except AttributeError:
pass

def __call__(self, *args, **kwargs):
new_model = KerasModel(self.keras_model_provider,
Expand Down