Fix featurename

This commit is contained in:
Ruben 2016-09-14 16:35:14 +01:00
parent 5a765edef3
commit 3bc73d412f

View file

@ -28,7 +28,7 @@ foreach(range(0, 100, 10) as $i) {
/* @var $hitRepo EmotionHero\Models\HitRepository */ /* @var $hitRepo EmotionHero\Models\HitRepository */
$hitRepo = $em->getRepository(EmotionHero\Models\Hit::class); $hitRepo = $em->getRepository(EmotionHero\Models\Hit::class);
$hit = $hitRepo->getClosestHit("anger", $i); $hit = $hitRepo->getClosestHit("anger", $i);
$img = $hit->getFeatureImgAsString("anger"); $img = $hit->getFeatureImgAsString("brows");
$score = $hit->getEmotions()->getEmotionScore("anger"); $score = $hit->getEmotions()->getEmotionScore("anger");
$percentage = sprintf("%.4f %%",$score); $percentage = sprintf("%.4f %%",$score);