Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
axl1313 committed Jun 17, 2024
1 parent 7fdb8d4 commit b00aaae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cleanlab_studio/studio/studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def download_pred_probs(
If you want to work with predicted probabilities for an image project, the recommended workflow is to download probabilities with the option `keep_id=True`, and then do a join with the original dataset on the ID column.
Alternatively, you can follow the steps [here](/reference/python/studio#method-download_embeddings), and filter out the rows that were not analyzed. The filtered dataset will then have rows that align with the predicted probabilities DataFrame.
"""
pred_probs: Union[npt.NDArray[np.float_], pd.DataFrame] = api.download_array(
pred_probs: Union[npt.NDArray[np.float64], pd.DataFrame] = api.download_array(
self._api_key, cleanset_id, "pred_probs"
)
if not isinstance(pred_probs, pd.DataFrame):
Expand All @@ -396,7 +396,7 @@ def download_pred_probs(
def download_embeddings(
self,
cleanset_id: str,
) -> npt.NDArray[np.float_]:
) -> npt.NDArray[np.float64]:
"""
Downloads feature embeddings for a cleanset (available only for text and image projects).
These are numeric vectors produced via neural network representations of each data point in your dataset.
Expand Down

0 comments on commit b00aaae

Please sign in to comment.