Skip to content
Merged

Dev #178

Changes from all commits
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
8 changes: 0 additions & 8 deletions qolmat/imputations/imputers_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@ def _fit_estimator(
optimizer = optim.Adam(estimator.parameters(), lr=self.learning_rate)
loss_fn = self.loss_fn

# if X.shape[0] != estimator[0].in_features:
# raise ValueError(
# "The number of features in X does not match the input "
# "features of the estimator. The estimator expects"
# f" {estimator[0].in_features} features, but X has "
# f"{X.shape[0]} features."
# )

with tqdm(total=self.epochs, desc="Training", unit="epoch") as pbar:
for _ in range(self.epochs):
estimator.train()
Expand Down
Loading