Skip to content
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

Add test for RealNNVectorizer #288

Merged
merged 16 commits into from
Apr 17, 2019
Merged

Conversation

crupley
Copy link
Contributor

@crupley crupley commented Apr 16, 2019

Related issues
Improve test coverage for transformers & estimators #278

Describe the proposed solution
Tests using OpTransformerSpec and also checks .vectorize shortcut

Describe alternatives you've considered
None

Additional context
None

Copy link
Collaborator

@tovbinm tovbinm left a comment

Choose a reason for hiding this comment

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

Lgtm, see comments


val expectedResult: Seq[OPVector] = Array(-1.0, -4.0, 5.0, -5.5, 0.1, 2.0, 0.0).map(Array(_).toOPVector)

behavior of "RealNNVectorizerTest"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don’t think god need to specify the ‘behavior’ as the test name is set in the base class

import com.salesforce.op.test.{OpTransformerSpec, TestFeatureBuilder}


class RealNNVectorizerTest extends OpTransformerSpec[OPVector, RealNNVectorizer] {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add run with junit annotation

@codecov
Copy link

codecov bot commented Apr 16, 2019

Codecov Report

Merging #288 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #288      +/-   ##
==========================================
+ Coverage    86.4%   86.42%   +0.01%     
==========================================
  Files         319      319              
  Lines       10453    10453              
  Branches      351      561     +210     
==========================================
+ Hits         9032     9034       +2     
+ Misses       1421     1419       -2
Impacted Files Coverage Δ
...es/src/main/scala/com/salesforce/op/OpParams.scala 89.79% <0%> (+4.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 699f978...e225c39. Read the comment docs.

@tovbinm tovbinm merged commit d02fb32 into salesforce:master Apr 17, 2019
@crupley crupley deleted the cr/realnntest branch April 26, 2019 17:26
@Jauntbox Jauntbox mentioned this pull request May 2, 2019
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.

None yet

2 participants