Skip to content

Commit

Permalink
Initialize random_state param to None (#36)
Browse files Browse the repository at this point in the history
* Update tabnet.py

Solve issue "unsupported operand type(s) for ** or pow(): 'NoneType' and 'dict' " in TabNetRegressor

* Add random_state param in stacked_tabnet to ensure reproducibility

* Initialize random_state param to None
  • Loading branch information
SakshiT1406 authored Oct 13, 2022
1 parent a486406 commit 53b144b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabnet/stacked_tabnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(self, feature_columns,
virtual_batch_size=None,
num_groups=2,
epsilon=1e-5,
random_state=random_state,
random_state=None,
**kwargs):
"""
Tensorflow 2.0 implementation of [TabNet: Attentive Interpretable Tabular Learning](https://arxiv.org/abs/1908.07442)
Expand Down Expand Up @@ -272,7 +272,7 @@ def __init__(self, feature_columns,
virtual_batch_size=None,
num_groups=2,
epsilon=1e-5,
random_state=random_state,
random_state=None,
**kwargs):
"""
Tensorflow 2.0 implementation of [TabNet: Attentive Interpretable Tabular Learning](https://arxiv.org/abs/1908.07442)
Expand Down

0 comments on commit 53b144b

Please sign in to comment.