You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jkbradley <gi...@git.apache.org> on 2016/03/21 07:12:25 UTC

[GitHub] spark pull request: [SPARK-14035][MLLIB] Make error message more v...

Github user jkbradley commented on the pull request:

    https://github.com/apache/spark/pull/11858#issuecomment-199143362
  
    When I caused a failure by modifying the checks in the test, it gave an error message like this.  Note this is to verify the error message; it is not an actual test failure example:
    ```
    [info]   Expected 0.5 and 1000000.4989503149 to be within 0.05 using absolute tolerance.
    [info]   validateModelFit:
    [info]    piData: [-0.6931471805599453, -1.2039728043259361, -1.6094379124341003]
    [info]    thetaData: [-0.6931471805599453, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -0.916290731874155]
    [info]   [-3.912023005428146, -0.35667494393873245, -2.3025850929940455, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146]
    [info]   [-3.912023005428146, -3.912023005428146, -0.5108256237659907, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -3.912023005428146, -1.2039728043259361]
    [info]    model.labels: [0.0, 1.0, 2.0]
    [info]    model.pi: [-0.6952487575155715, -1.2129771999650796, -1.5909161132025096]
    [info]    model.theta: [-0.6967594662458589, -3.7882040913369224, -3.9722971277792594, -3.753417975251507, -3.8334606829250433, -3.8521528159371963, -3.86163155989174, -3.930624431378691, -3.8808629218196273, -4.0269555403171235, -3.930624431378691, -0.9227216222044454]
    [info]   [-3.778491612803623, -0.35931949410361774, -2.174953422496711, -3.823612048084093, -3.823612048084093, -3.5912800707154764, -3.9549480501451795, -3.8871254538064184, -3.778491612803623, -4.126798307071839, -4.106179019869103, -4.027707404427607]
    [info]   [-3.8360251366561937, -3.63123072401018, -0.4893159402781082, -4.036695832118345, -3.7700671688643963, -3.906642703870147, -4.219017388912299, -3.8825451522910863, -3.9313353164605185, -3.7700671688643963, -3.813552280804135, -1.2166405726396397] (TestingUtils.scala:79)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org