cheese: set label for everything to 1

This commit is contained in:
Starbeamrainbowlabs 2022-09-16 16:42:05 +01:00
parent b31645bd5d
commit fcab227f6a
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -27,9 +27,9 @@ def vis_embeddings(filepath_output, features):
# 2: Parallel coordinates
figure.add_subplot(1, 2, 2)
# CHEESE: This won't produce a terribly accurate result, as we're just ignoring the most of CLIP's embedded features.
dataframe = pandas.DataFrame(features)
dataframe["Label"] = range(len(features))
dataframe["Label"] = [1] * len(features)
# dataframe["Label"] = range(len(features)) # used when we actually have labels. In this case we don't though
pandas.plotting.parallel_coordinates(
dataframe,
"Label",