Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

[WIP] kwargs flow through for Image Similarity -> Nearest Neighbors #3233

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@


def create(
dataset, label=None, feature=None, model="resnet-50", verbose=True, batch_size=64
dataset,
label=None,
feature=None,
model="resnet-50",
verbose=True,
batch_size=64,
**kwargs
):
"""
Create a :class:`ImageSimilarityModel` model.
Expand Down Expand Up @@ -63,6 +69,9 @@ def create(
batch_size : int, optional
If you are getting memory errors, try decreasing this value. If you
have a powerful computer, increasing this value may improve performance.

**kwargs : optional
Options for downstream methods like tc.nearest_neighbors.create().
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change tc.nearest_neighbors.create() to :py:func:turicreate.nearest_neighbors.create()`. That will cause the text, in our API docs, to be linked to the appropriate documentation page for that function.


Returns
-------
Expand Down Expand Up @@ -148,6 +157,7 @@ def create(
label=label,
features=["__image_features__"],
verbose=verbose,
**kwargs
)

# set input image shape
Expand Down