Skip to content

Conversation

@pparkkin
Copy link
Contributor

@pparkkin pparkkin commented Jun 9, 2015

Test cases for both StreamingLinearRegression and StreamingLogisticRegression, and code fix.

Edit:
This contribution is my original work and I license the work to the project under the project's open source license.

@srowen
Copy link
Member

srowen commented Jun 9, 2015

@pparkkin please review https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark Among other things this needs an actual title.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use !rdd.isEmpty as it will be notably faster.

@pparkkin pparkkin changed the title Fix SPARK-8200 [SPARK-8200] [MLlib] Check for empty RDDs in StreamingLinearAlgorithm Jun 9, 2015
@pparkkin pparkkin changed the title [SPARK-8200] [MLlib] Check for empty RDDs in StreamingLinearAlgorithm [SPARK-8200] [MLlib] [WIP] Check for empty RDDs in StreamingLinearAlgorithm Jun 9, 2015
@pparkkin
Copy link
Contributor Author

pparkkin commented Jun 9, 2015

Thanks for the quick review and comments! Sorry about not following the guide completely.

I updated the PR title and description.

I'll make the code changes when I get back to work tomorrow morning.

@srowen
Copy link
Member

srowen commented Jun 9, 2015

Sorry, I merged another PR to fix the superfluous match construct here. You may need a rebase too now.

@pparkkin pparkkin force-pushed the streamingmodel-empty-rdd branch from e3e358f to 54ad89e Compare June 9, 2015 22:49
@pparkkin
Copy link
Contributor Author

pparkkin commented Jun 9, 2015

Done.

@srowen
Copy link
Member

srowen commented Jun 10, 2015

OK to test

@srowen
Copy link
Member

srowen commented Jun 10, 2015

Jenkins, test this please

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34587 has finished for PR 6713 at commit ff5cd78.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #894 timed out for PR 6713 at commit ff5cd78 after a configured wait of 175m.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(no need for toString here but don't worry about it)

@srowen
Copy link
Member

srowen commented Jun 10, 2015

Is this ready -- just checking since there is [WIP] in the title.

@pparkkin pparkkin changed the title [SPARK-8200] [MLlib] [WIP] Check for empty RDDs in StreamingLinearAlgorithm [SPARK-8200] [MLlib] Check for empty RDDs in StreamingLinearAlgorithm Jun 10, 2015
@pparkkin
Copy link
Contributor Author

Changed title.

@asfgit asfgit closed this in b928f54 Jun 10, 2015
asfgit pushed a commit that referenced this pull request Jun 10, 2015
Test cases for both StreamingLinearRegression and StreamingLogisticRegression, and code fix.

Edit:
This contribution is my original work and I license the work to the project under the project's open source license.

Author: Paavo <[email protected]>

Closes #6713 from pparkkin/streamingmodel-empty-rdd and squashes the following commits:

ff5cd78 [Paavo] Update strings to use interpolation.
db234cf [Paavo] Use !rdd.isEmpty.
54ad89e [Paavo] Test case for empty stream.
393e36f [Paavo] Ignore empty RDDs.
0bfc365 [Paavo] Test case for empty stream.

(cherry picked from commit b928f54)
Signed-off-by: Sean Owen <[email protected]>
@pparkkin pparkkin deleted the streamingmodel-empty-rdd branch June 10, 2015 22:38
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
Test cases for both StreamingLinearRegression and StreamingLogisticRegression, and code fix.

Edit:
This contribution is my original work and I license the work to the project under the project's open source license.

Author: Paavo <[email protected]>

Closes apache#6713 from pparkkin/streamingmodel-empty-rdd and squashes the following commits:

ff5cd78 [Paavo] Update strings to use interpolation.
db234cf [Paavo] Use !rdd.isEmpty.
54ad89e [Paavo] Test case for empty stream.
393e36f [Paavo] Ignore empty RDDs.
0bfc365 [Paavo] Test case for empty stream.
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.

3 participants