Kian Yang Lee
Kian Yang Lee
hi isn't it already executed without said property?
Leaving below code to stream iterable for anyone that might need it: ```java private Iterable filterByType(Iterable ingredients, Type type) { return StreamSupport.stream(ingredients.spliterator(), false).filter(x -> x.getType().equals(type)) .collect(Collectors.toList()); ```
Refer to this for examples on using Evaluation to modify threshold https://deeplearning4j.org/api/latest/org/nd4j/evaluation/classification/Evaluation.html
Dear @evanyeohboonkhai your review is needed on this just a reminder Tq.
@danli349 If you look closely, it's not repeated, as `assignments` is reassigned in line 56.
> I mean, why are the HTTP assertions better than this: > > ```go > r := httptest.NewRequest(http.MethodGet, "http://example.com/biscuit", nil) > w := httptest.NewRecorder() > myHandler(w, r) > assert.Equal(t, http.StatusOK,...