Skip to content

Conversation

@feynmanliang
Copy link

  • Fixes 100cw
  • Adds MathJax to Elastic Net exposition
  • Adds regularization term to Elastic Net formula and describes
    correspondance between formula symbols and ML pipeline parameters
  • Joins LogisticRegressionSummary example with training example to
    reuse code

 * Adds MathJax to Elastic Net exposition
 * Adds regularization term to Elastic Net formula and describes
   correspondance between formula symbols and ML pipeline parameters
 * Joins LogisticRegressionSummary example with training example to
   reuse code
MechCoder added a commit that referenced this pull request Aug 18, 2015
Documentation cleanup in `ml-linear-methods`
@MechCoder MechCoder merged commit 83d229f into MechCoder:log_summary_user_guide Aug 18, 2015
@feynmanliang feynmanliang deleted the log_summary_user_guide branch August 18, 2015 18:31
MechCoder pushed a commit that referenced this pull request Aug 12, 2016
## What changes were proposed in this pull request?
This patch introduces SQLQueryTestSuite, a basic framework for end-to-end SQL test cases defined in spark/sql/core/src/test/resources/sql-tests. This is a more standard way to test SQL queries end-to-end in different open source database systems, because it is more manageable to work with files.

This is inspired by HiveCompatibilitySuite, but simplified for general Spark SQL tests. Once this is merged, I can work towards porting SQLQuerySuite over, and eventually also move the existing HiveCompatibilitySuite to use this framework.

Unlike HiveCompatibilitySuite, SQLQueryTestSuite compares both the output schema and the output data (in string form).

When there is a mismatch, the error message looks like the following:

```
[info] - blacklist.sql !!! IGNORED !!!
[info] - number-format.sql *** FAILED *** (2 seconds, 405 milliseconds)
[info]   Expected "...147483648	-214748364[8]", but got "...147483648	-214748364[9]" Result should match for query #1 (SQLQueryTestSuite.scala:171)
[info]   org.scalatest.exceptions.TestFailedException:
[info]   at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495)
[info]   at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
[info]   at org.scalatest.Assertions$class.assertResult(Assertions.scala:1171)
```

## How was this patch tested?
This is a test infrastructure change.

Author: petermaxlee <[email protected]>

Closes apache#14472 from petermaxlee/SPARK-16866.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants