Skip to content

Commit abc33e3

Browse files
Merge pull request #55 from adapt-python/antoinedemathelin-patch-5
Add n_features_in_ to BaseAdapt
2 parents ecec514 + d34492c commit abc33e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎adapt/base.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ def fit(self, X, y, Xt=None, yt=None, domains=None, **fit_params):
469469
else:
470470
Xt = check_array(Xt, ensure_2d=True, allow_nd=True)
471471
set_random_seed(self.random_state)
472+
473+
self.n_features_in_ = X.shape[1]
472474

473475
if hasattr(self, "fit_weights"):
474476
if self.verbose:
@@ -1663,4 +1665,4 @@ def _initialize_networks(self):
16631665
name="discriminator")
16641666

16651667
def _initialize_pretain_networks(self):
1666-
pass
1668+
pass

0 commit comments

Comments
 (0)