stim2 = ImageStim(data=stim.data)
result = ClarifaiAPIExtractor().transform(stim2).to_df()
assert result["apple"][0] > 0.5
assert result.ix[:, 5][0] > 0.0
@pytest.mark.skipif(""CLARIFAI_APP_ID" not in os.environ")
def test_clarifai_api_extractor_batch():
After Change
concepts = ["cat", "dog"]
result = ClarifaiAPIExtractor(select_concepts=concepts).transform(stim)
result = result.to_df()
assert result.shape == (1, 4)
assert "cat" in result.columns and "dog" in result.columns