Skip to content

Commit

Permalink
backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Jan 10, 2024
1 parent 92ffd9f commit 5a9b163
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fiftyone/brain/internal/core/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,15 @@ def __init__(
label_ids=None,
backend=None,
):
dataset = samples._dataset
embeddings, sample_ids, label_ids = self._parse_data(
dataset,
samples,
config,
embeddings=embeddings,
sample_ids=sample_ids,
label_ids=label_ids,
)

self._dataset = dataset
self._dataset = samples._dataset
self._embeddings = embeddings
self._sample_ids = sample_ids
self._label_ids = label_ids
Expand Down Expand Up @@ -667,7 +666,7 @@ def _parse_data(
):
if embeddings is None:
embeddings, sample_ids, label_ids = fbu.get_embeddings(
samples,
samples._dataset,
patches_field=config.patches_field,
embeddings_field=config.embeddings_field,
)
Expand Down

0 comments on commit 5a9b163

Please sign in to comment.