Skip to content

Commit

Permalink
reload the __str__ and __repr__ to print the model summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-nuclear committed Mar 17, 2024
1 parent 9df75e6 commit 748a5df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gnnwr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,14 @@ def getCoefs(self):
result_data.set_index('id', inplace=True)
result_data = result_data.join(data)
return result_data
def __str__(self) -> str:
print("Model Name: ", self._modelName)
print("Model Structure: ", self._model)
return ""
def __repr__(self) -> str:
print("Model Name: ", self._modelName)
print("Model Structure: ", self._model)
return ""


class GTNNWR(GNNWR):
Expand Down

0 comments on commit 748a5df

Please sign in to comment.