oliverdain
02/12/2017, 1:21 AMClassifierTrainer<double[]>
I need to assign any such subclass to a Kotlin variable but can’t figure out a type that works. The obvious ClassifierTrainer<Array<Double>>
fails. Anyone know the right way to do this?aimozg
02/12/2017, 1:24 AMoliverdain
02/12/2017, 1:24 AM<http://log.info|log.info>(”The type is: {}”, TreeClassifier.Trainer::class.superClass.genericType)
but there doesn’t seem to be a way to get the superclass or the generics from a KClass
. doesn’t matter now but just out of curiosity, is it possible to do what I was trying to do?aimozg
02/12/2017, 1:40 AMoliverdain
02/12/2017, 1:57 AM