Skip to content

Commit aa7b933

Browse files
Merge pull request #178 from scikit-learn-contrib/dev
* Long EM and RPCA operations wrapped with tqdm progress bars * Readme code sample updated, and results table made consistant
2 parents 6383835 + 44805a2 commit aa7b933

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

qolmat/imputations/imputers_pytorch.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ def _fit_estimator(
107107
optimizer = optim.Adam(estimator.parameters(), lr=self.learning_rate)
108108
loss_fn = self.loss_fn
109109

110-
# if X.shape[0] != estimator[0].in_features:
111-
# raise ValueError(
112-
# "The number of features in X does not match the input "
113-
# "features of the estimator. The estimator expects"
114-
# f" {estimator[0].in_features} features, but X has "
115-
# f"{X.shape[0]} features."
116-
# )
117-
118110
with tqdm(total=self.epochs, desc="Training", unit="epoch") as pbar:
119111
for _ in range(self.epochs):
120112
estimator.train()

0 commit comments

Comments
 (0)