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

Improved OpScalarStandardScalerTest #317

Merged
merged 5 commits into from
May 14, 2019

Conversation

wsuchy
Copy link
Contributor

@wsuchy wsuchy commented May 13, 2019

Improved OpScalarStandardScalerTest by extending OpEstimatorSpec

@codecov
Copy link

codecov bot commented May 13, 2019

Codecov Report

Merging #317 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #317    +/-   ##
========================================
  Coverage   86.51%   86.51%            
========================================
  Files         325      325            
  Lines       10581    10581            
  Branches      349      565   +216     
========================================
  Hits         9154     9154            
  Misses       1427     1427

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 d6bb99b...0e98c73. Read the comment docs.


// create the feature to which the normalizer transformer will be applied
val someNumericFeature = FeatureBuilder.RealNN[StdScTestData].extract(_.someNumericFeature.toRealNN).asPredictor

lazy val testData: Dataset[StdScTestData] = DataStdScTest.input.toDS()

Spec[OpScalarStandardScaler] should
Copy link
Collaborator

Choose a reason for hiding this comment

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

use it instead of Spec[OpScalarStandardScaler]


// create the feature to which the normalizer transformer will be applied
val someNumericFeature = FeatureBuilder.RealNN[StdScTestData].extract(_.someNumericFeature.toRealNN).asPredictor

lazy val testData: Dataset[StdScTestData] = DataStdScTest.input.toDS()
Copy link
Collaborator

Choose a reason for hiding this comment

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

so why not replace with TestFeatureBuilder ?

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, some minor comments

@tovbinm tovbinm merged commit 9d01538 into master May 14, 2019
@tovbinm tovbinm deleted the ks/improved-tests-OpScalarStandardScalerTest branch May 14, 2019 20:08
This was referenced Jul 10, 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.

2 participants