Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsilver-bdai committed Jun 29, 2023
1 parent c1f714e commit 0823953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions predicators/approaches/active_sampler_learning_approach.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,11 @@ def _vector_score_fn_to_score_fn(vector_fn: Callable[[Array], float],

def _score_fn(state: State, objects: Sequence[Object],
param_lst: List[Array]) -> List[float]:
X = np.array([
xs = [
_construct_sampler_input(state, objects, p, nsrt.option)
for p in param_lst
])
scores = [vector_fn(X) for p in param_lst]
]
scores = [vector_fn(x) for x in xs]
return scores

return _score_fn
Expand Down

0 comments on commit 0823953

Please sign in to comment.