Skip to content

Conversation

@shahidki31
Copy link
Contributor

@shahidki31 shahidki31 commented Jan 18, 2019

What changes were proposed in this pull request?

Currently, there are some minor inconsistencies in doc compared to the code. In this PR, I am correcting those inconsistencies.

How was this patch tested?

NA

@SparkQA
Copy link

SparkQA commented Jan 18, 2019

Test build #101412 has finished for PR 23589 at commit 9eeeca8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shahidki31
Copy link
Contributor Author

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Jan 18, 2019

Test build #101414 has finished for PR 23589 at commit c25b342.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shahidki31
Copy link
Contributor Author

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Jan 19, 2019

Test build #101423 has finished for PR 23589 at commit a160561.

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

@SparkQA
Copy link

SparkQA commented Jan 19, 2019

Test build #101430 has finished for PR 23589 at commit b763bab.

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

</td>
<td>
$p(k)=\frac{1}{M} \sum_{i=0}^{M-1} {\frac{1}{k} \sum_{j=0}^{\text{min}(\left|D\right|, k) - 1} rel_{D_i}(R_i(j))}$
$p(k)=\frac{1}{M} \sum_{i=0}^{M-1} {\frac{1}{k} \sum_{j=0}^{\text{min}(\left|R_i\right|, k) - 1} rel_{D_i}(R_i(j))}$
Copy link
Member

Choose a reason for hiding this comment

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

Although we usually have k <= |D| and k <= |R_i|, I agree that this is technically what must have been meant. How about using Q here instead of |R_i|? it was already used in the following formula. You can change both, sure, either way, as long as they're consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually the Q will vary with i, that is why I gave the notation |R_i|.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe; it could be the same for all users, or not. The documentation above this suggests there are equal numbers of recommended and relevant docs for each user (Q and N) but at least, it will almost never be true that |D_i| is the same for all users. Q could well be a constant.

But the implementation doesn't assume that and it's not necessary to, so I might even just remove the references to Q and N, or label them "Q_i" and "N_i" if you really want to be complete.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. updated.

@shahidki31 shahidki31 force-pushed the docCorrection branch 2 times, most recently from 542d687 to 60bec8e Compare January 19, 2019 16:28
@shahidki31
Copy link
Contributor Author

Thank you @srowen for the review.

@SparkQA
Copy link

SparkQA commented Jan 19, 2019

Test build #101434 has finished for PR 23589 at commit 542d687.

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

@SparkQA
Copy link

SparkQA commented Jan 19, 2019

Test build #101435 has finished for PR 23589 at commit 2003599.

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

</td>
<td>
$p(k)=\frac{1}{M} \sum_{i=0}^{M-1} {\frac{1}{k} \sum_{j=0}^{\text{min}(\left|D\right|, k) - 1} rel_{D_i}(R_i(j))}$
$p(k)=\frac{1}{M} \sum_{i=0}^{M-1} {\frac{1}{k} \sum_{j=0}^{\text{min}(\left|R_i\right|, k) - 1} rel_{D_i}(R_i(j))}$
Copy link
Member

Choose a reason for hiding this comment

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

Maybe; it could be the same for all users, or not. The documentation above this suggests there are equal numbers of recommended and relevant docs for each user (Q and N) but at least, it will almost never be true that |D_i| is the same for all users. Q could well be a constant.

But the implementation doesn't assume that and it's not necessary to, so I might even just remove the references to Q and N, or label them "Q_i" and "N_i" if you really want to be complete.

@SparkQA
Copy link

SparkQA commented Jan 20, 2019

Test build #101439 has finished for PR 23589 at commit d89fd0d.

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

srowen pushed a commit that referenced this pull request Jan 21, 2019
…luation metrics

## What changes were proposed in this pull request?
Currently, there are some minor inconsistencies in doc compared to the code. In this PR, I am correcting those inconsistencies.
1) Links related to the evaluation metrics in the docs are not working
2) Minor correction in the evaluation metrics formulas in docs.

## How was this patch tested?

NA

Closes #23589 from shahidki31/docCorrection.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit 9a30e23)
Signed-off-by: Sean Owen <[email protected]>
srowen pushed a commit that referenced this pull request Jan 21, 2019
…luation metrics

## What changes were proposed in this pull request?
Currently, there are some minor inconsistencies in doc compared to the code. In this PR, I am correcting those inconsistencies.
1) Links related to the evaluation metrics in the docs are not working
2) Minor correction in the evaluation metrics formulas in docs.

## How was this patch tested?

NA

Closes #23589 from shahidki31/docCorrection.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit 9a30e23)
Signed-off-by: Sean Owen <[email protected]>
@srowen
Copy link
Member

srowen commented Jan 21, 2019

Merged to master/2.4/2.3

@srowen srowen closed this in 9a30e23 Jan 21, 2019
@shahidki31
Copy link
Contributor Author

Thank you @srowen

jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…luation metrics

## What changes were proposed in this pull request?
Currently, there are some minor inconsistencies in doc compared to the code. In this PR, I am correcting those inconsistencies.
1) Links related to the evaluation metrics in the docs are not working
2) Minor correction in the evaluation metrics formulas in docs.

## How was this patch tested?

NA

Closes apache#23589 from shahidki31/docCorrection.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Jul 23, 2019
…luation metrics

## What changes were proposed in this pull request?
Currently, there are some minor inconsistencies in doc compared to the code. In this PR, I am correcting those inconsistencies.
1) Links related to the evaluation metrics in the docs are not working
2) Minor correction in the evaluation metrics formulas in docs.

## How was this patch tested?

NA

Closes apache#23589 from shahidki31/docCorrection.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit 9a30e23)
Signed-off-by: Sean Owen <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Aug 1, 2019
…luation metrics

## What changes were proposed in this pull request?
Currently, there are some minor inconsistencies in doc compared to the code. In this PR, I am correcting those inconsistencies.
1) Links related to the evaluation metrics in the docs are not working
2) Minor correction in the evaluation metrics formulas in docs.

## How was this patch tested?

NA

Closes apache#23589 from shahidki31/docCorrection.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit 9a30e23)
Signed-off-by: Sean Owen <[email protected]>
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