Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -287,5 +287,5 @@ def _is_image_deep_feature_sarray(feature_sarray, model_name):
if type(feature_sarray[0]) != array:
return False
if len(feature_sarray[0]) != MODEL_TO_FEATURE_SIZE_MAPPING[model_name]:
return False
raise _ToolkitError("The given deep features are for a model other than {model_name}.".format(model_name=model_name))
return True
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def create(
elif dataset[feature].dtype is _tc.Image:
feature_type = "image"
else:
raise _ToolkitError('The "{feature}" column of the sFrame neither has the dataype image or extracted features array.'.format(feature=feature)
raise _ToolkitError('The "{feature}" column of the SFrame neither has the dataype image or extracted features array.'.format(feature=feature)
+ ' "Datasets" consists of columns with types: '
+ ", ".join([x.__name__ for x in dataset.column_types()])
+ "."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def create(
elif dataset[feature].dtype is _tc.Image:
feature_type = "image"
else:
raise _ToolkitError('The "{feature}" column of the sFrame neither has the dataype image or array (for extracted features)'.format(feature=feature)
raise _ToolkitError('The "{feature}" column of the SFrame neither has the dataype image or array (for extracted features)'.format(feature=feature)
+ ' "datasets" consists of columns with types: '
+ ", ".join([x.__name__ for x in dataset.column_types()])
+ "."
Expand Down Expand Up @@ -350,7 +350,7 @@ def _extract_features(self, dataset, verbose=False, batch_size=64):
}
)
else:
raise _ToolkitError('The "{feature}" column of the sFrame neither has the dataype image or extracted features array.'.format(feature=feature)
raise _ToolkitError('The "{feature}" column of the SFrame neither has the dataype image or extracted features array.'.format(feature=feature)
+ ' "Datasets" consists of columns with types: '
+ ", ".join([x.__name__ for x in dataset.column_types()])
+ "."
Expand Down