  @Test
  public void correctScoreResultForOneSample() throws Exception {


    INDArray label = Nd4j.create(1, 2);
    label.put(0, 0, 1);
    label.put(0, 1, 0);    


    INDArray preOutput = Nd4j.create(label.shape());
    preOutput.put(0, 0, 4);
    preOutput.put(0, 1, 0);


    INDArray mask = Nd4j.ones(1,1);

    IActivation tanH = new ActivationTanH();

    DosSantosPairwiseRankingLoss rankingLoss = new DosSantosPairwiseRankingLoss();

    INDArray scoreArray = rankingLoss.scoreArray(label, preOutput, tanH, mask);

    double score = scoreArray.sumNumber().doubleValue();

    assertThat(scoreArray.getDouble(0,0), is(closeTo(3.05d, 0.05d)));
    assertThat(scoreArray.getDouble(0,1), is(closeTo(1.31d, 0.05d)));
    assertThat(score, is(closeTo(4.362d, 0.05d)));
  }