Skip to content

Commit

Permalink
Improved multi pick list map vectorizer test (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsuchy authored Apr 17, 2019
1 parent f228f26 commit f984f21
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MultiPickListMapVectorizer[T <: OPMap[Set[String]]]
uid: String = UID[MultiPickListMapVectorizer[T]]
)(implicit tti: TypeTag[T], ttiv: TypeTag[T#Value])
extends SequenceEstimator[T, OPVector](operationName = "vecCatMap", uid = uid)
with VectorizerDefaults with PivotParams with MapPivotParams with TextParams
with PivotParams with MapPivotParams with TextParams
with MapStringPivotHelper with CleanTextMapFun with MinSupportParam with TrackNullsParam
with MaxPctCardinalityParams with MaxPctCardinalityFun {

Expand Down Expand Up @@ -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 {

def transformFn: (Seq[T]) => OPVector = row => {
// Combine top values for each feature with map feature
Expand Down
Loading

0 comments on commit f984f21

Please sign in to comment.