-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modify recommendation assertion. #2
base: keerthiyanda/spark3.4
Are you sure you want to change the base?
modify recommendation assertion. #2
Conversation
…daOS/SynapseML into keerthiyanda/spark3.4
Add line to delete the azure search index before recreating it because "put" fails on the index if one already exists. (cherry picked from commit 214060c)
@BrendanWalsh Hi Brendan, can you help to review it? Thanks. |
@@ -24,4 +39,18 @@ class RankingAdapterModelSpec extends RankingTestBase with TransformerFuzzing[Ra | |||
} | |||
|
|||
override def reader: MLReadable[_] = RankingAdapterModel | |||
|
|||
override def assertDFEq(df1: DataFrame, df2: DataFrame)(implicit eq: Equality[DataFrame]): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless i'm missing something this is the same as above. can we reduce code duplication?
@@ -15,6 +17,19 @@ class RankingAdapterSpec extends RankingTestBase with EstimatorFuzzing[RankingAd | |||
|
|||
override def modelReader: MLReadable[_] = RankingAdapterModel | |||
|
|||
override def assertDFEq(df1: DataFrame, df2: DataFrame)(implicit eq: Equality[DataFrame]): Unit = { | |||
def prep(df: DataFrame) = { | |||
// sort rows and round decimals before compare two dataframes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the goal of making sure that we're not hiding a real issue by changing tests, are we sure it's accurate to sort and round?
Why did it work before when it was unsorted and unrounded?
b6f0551
to
f59a40c
Compare
No description provided.