mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-10-14 03:40:59 +02:00
break tests into separate files; test 0 results
This commit is contained in:
1 parent
1b5b808ff6
commit
cb92890bb9
124 files changed
+59708
-43
No files matched your search
@@ -1,9 +1,13 @@
|
||||
from typing import List
|
||||
from numpy import ndarray
|
||||
|
||||
|
||||
from src.text_generation.domain.abstract_semantic_similarity_result import AbstractSemanticSimilarityResult
|
||||
|
||||
|
||||
class SemanticSimilarityResult(AbstractSemanticSimilarityResult):
|
||||
def __init__(self, scores: List[float], mean: float):
|
||||
def __init__(self, scores: ndarray):
|
||||
super().__init__()
|
||||
self.scores: List[float] = scores
|
||||
self.mean: float = mean
|
||||
self.scores: List[float] = scores.tolist()
|
||||
self.mean: float = float(scores.mean())
|
||||
self.max: float = float(scores.max())
|
||||
Reference in new issue
Block a user