Skip to content

Commit

Permalink
Merge pull request #93 from AnFreTh/main
Browse files Browse the repository at this point in the history
v0.1.8
  • Loading branch information
AnFreTh authored Aug 25, 2024
2 parents 2a7102a + a4aa16e commit 1600f42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion stream_topic/NAM/NAM.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ def __init__(
columns=["text", "tokens"], errors="ignore"
)

if "predictions" in self.structured_data.columns:
self.structured_data = self.structured_data.drop(columns=["predictions"])

self.target_column = target_column

# Combine topic probabilities with structured data
Expand Down Expand Up @@ -520,7 +523,6 @@ def forward(self, x):

def training_step(self, batch, batch_idx):
x, y = batch
print(y)
y_hat = self(x)
loss = self.loss_fn(y_hat, y)

Expand Down
2 changes: 1 addition & 1 deletion stream_topic/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.1.7"
__version__ = "0.1.8"

0 comments on commit 1600f42

Please sign in to comment.