Skip to content

Commit

Permalink
investigate datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
fzayguler committed May 10, 2024
1 parent fdc437c commit f39696d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion authorship-verification-submission/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
predictions = model.predict(df["text"])
df["generated"] = predictions
df = df[["id", "generated"]]

print(len(df.index))

# Save the predictions
output_directory = get_output_directory(str(Path(__file__).parent))
Expand Down
5 changes: 4 additions & 1 deletion authorship-verification-submission/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
df = text.join(labels.set_index("id"))

# print the first 5 rows
#print(df.head())
print(df.head())
#print the number of rows
print(len(df.index))


# export the data to a json file with indent=4
#df.to_json(Path(__file__).parent / "data.json", indent=4)
Expand Down

0 comments on commit f39696d

Please sign in to comment.