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 multi pick list map vectorizer test #292

Merged
merged 5 commits into from
Apr 17, 2019

Conversation

wsuchy
Copy link
Contributor

@wsuchy wsuchy commented Apr 17, 2019

..and another test fixed

@@ -94,8 +94,7 @@ final class MultiPickListMapVectorizerModel[T <: OPMap[Set[String]]] private[op]
operationName: String,
uid: String
)(implicit tti: TypeTag[T])
extends SequenceModel[T, OPVector](operationName = operationName, uid = uid)
with VectorizerDefaults with CleanTextMapFun {
extends SequenceModel[T, OPVector](operationName = operationName, uid = uid) with CleanTextMapFun {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@wsuchy please also remove VectorizerDefaults mixin from MultiPickListMapVectorizer class

@@ -46,11 +46,20 @@ import org.slf4j.LoggerFactory


@RunWith(classOf[JUnitRunner])
class MultiPickListMapVectorizerTest extends FlatSpec with TestSparkContext with AttributeAsserts {
class MultiPickListMapVectorizerTest extends
OpEstimatorSpec[OPVector, SequenceModel[MultiPickListMap, OPVector], MultiPickListMapVectorizer[MultiPickListMap]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

better put the newline before the extends

class MultiPickListMapVectorizerTest
    extends OpEstimatorSpec[...] {
}

@@ -70,7 +79,8 @@ class MultiPickListMapVectorizerTest extends FlatSpec with TestSparkContext with
lazy val (dataSetAllEmpty, _) = TestFeatureBuilder(top.name,
Seq(MultiPickListMap.empty, MultiPickListMap.empty, MultiPickListMap.empty))

val vectorizer = new MultiPickListMapVectorizer().setCleanKeys(true).setMinSupport(0).setTopK(10).setInput(top, bot)
val estimator:MultiPickListMapVectorizer[MultiPickListMap]
Copy link
Collaborator

Choose a reason for hiding this comment

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

idents:

val estimator: MultiPickListMapVectorizer[MultiPickListMap] =
     new MultiPickListMapVectorizer()...

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

@codecov
Copy link

codecov bot commented Apr 17, 2019

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #292   +/-   ##
======================================
  Coverage    86.4%   86.4%           
======================================
  Files         319     319           
  Lines       10452   10452           
  Branches      346     346           
======================================
  Hits         9031    9031           
  Misses       1421    1421
Impacted Files Coverage Δ
...ages/impl/feature/MultiPickListMapVectorizer.scala 100% <ø> (ø) ⬆️

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 f228f26...ccfd730. Read the comment docs.

@wsuchy wsuchy merged commit f984f21 into master Apr 17, 2019
@tovbinm tovbinm deleted the ks/improved-tests-MultiPickListMapVectorizerTest branch April 17, 2019 22:13
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants