Skip to content
Discussion options

You must be logged in to vote

In the class PairwiseTransformer, the type variable T_in is scoped to the class. That means it needs to be receive a type argument at the time the class is instantiated (when you call PairwiseTransformer()). Most generic classes define a constructor that includes class-scoped type variables in one or more of its input parameter type annotations, allowing the type arguments for the class to be inferred from the arguments passed to the constructor call. In your case, however, there is no constructor defined, so the value of T_in goes unsolved when calling PairwiseTransformer(). That means the type of this expression PairwiseTransformer() is PairwiseTransformer[Any], which is probably not wh…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pedrovhb
Comment options

Answer selected by pedrovhb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants