Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR backports #13619.

The original test added in branch-2.0 was failed in branch-1.6.

This seems because the behaviour was changed in 101663f. This was failure while calculating Euler's number which ends up with a infinity regardless of this path.

So, I brought the dataset from AFTSurvivalRegressionExample to make sure this is working and then wrote the test.

I ran the test before/after creating empty partitions. model.scale becomes 1.0 with empty partitions and becames 1.547 without them.

After this patch, this becomes always 1.547.

How was this patch tested?

Unit test in AFTSurvivalRegressionSuite.

@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented Jun 17, 2016

cc @jkbradley I am sure that this tests this patch correctly anyway but less sure that checking scale is sensible. I am not familiar with ML although I know a bit. I will close it if it does not make sense! thanks!

@SparkQA
Copy link

SparkQA commented Jun 17, 2016

Test build #60676 has finished for PR 13725 at commit 9cf8152.

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

asfgit pushed a commit that referenced this pull request Jun 18, 2016
… 1.6

## What changes were proposed in this pull request?

This PR backports #13619.

The original test added in branch-2.0 was failed in branch-1.6.

This seems because the behaviour was changed in 101663f. This was failure while calculating Euler's number which ends up with a infinity regardless of this path.

So, I brought the dataset from `AFTSurvivalRegressionExample` to make sure this is working and then wrote the test.

I ran the test before/after creating empty partitions. `model.scale` becomes `1.0` with empty partitions and becames `1.547` without them.

After this patch, this becomes always `1.547`.

## How was this patch tested?

Unit test in `AFTSurvivalRegressionSuite`.

Author: hyukjinkwon <[email protected]>

Closes #13725 from HyukjinKwon/SPARK-15892-1-6.
@mengxr
Copy link
Contributor

mengxr commented Jun 18, 2016

LGTM. Merged into branch-1.6. Thanks for backporting the patch!

@HyukjinKwon
Copy link
Member Author

I am closing this as this is merged. Thank you @mengxr again!

zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jun 20, 2016
… 1.6

## What changes were proposed in this pull request?

This PR backports apache#13619.

The original test added in branch-2.0 was failed in branch-1.6.

This seems because the behaviour was changed in apache@101663f. This was failure while calculating Euler's number which ends up with a infinity regardless of this path.

So, I brought the dataset from `AFTSurvivalRegressionExample` to make sure this is working and then wrote the test.

I ran the test before/after creating empty partitions. `model.scale` becomes `1.0` with empty partitions and becames `1.547` without them.

After this patch, this becomes always `1.547`.

## How was this patch tested?

Unit test in `AFTSurvivalRegressionSuite`.

Author: hyukjinkwon <[email protected]>

Closes apache#13725 from HyukjinKwon/SPARK-15892-1-6.

(cherry picked from commit fd05389)
@HyukjinKwon HyukjinKwon deleted the SPARK-15892-1-6 branch January 2, 2018 03:42
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