Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kacperlukawski/ccb153456881ccbbfd0b885be9a716eb to your computer and use it in GitHub Desktop.
Save kacperlukawski/ccb153456881ccbbfd0b885be9a716eb to your computer and use it in GitHub Desktop.
sample_df = dataset_df.sample(n=2000, random_state=643)
image_vectors = image_pipeline.transform(sample_df)
text_vectors = text_pipeline.transform(sample_df)
sample_df["image_vector"] = image_vectors.tolist()
sample_df["text_vector"] = text_vectors.tolist()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment