Skip to content

Commit

Permalink
labels updated to load all the feature vector elements in the mat files
Browse files Browse the repository at this point in the history
  • Loading branch information
lim185 committed Oct 1, 2025
1 parent c751d57 commit a94fffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipe/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def extract(spark: SparkSession) -> DataFrame:
"""

path = Path("/app/workdir")
labels = []
labels = [DataKind.BB, DataKind.FPS, DataKind.NSD, DataKind.NCNT,
DataKind.SPEC, DataKind.TARGET, DataKind.TREATMENT]
with open(path / "train.csv", "r") as file:
for line in file:
labels.append(line.strip().split(",")[0])
Expand Down

0 comments on commit a94fffa

Please sign in to comment.