Hi Yanbo,

Thanks for your answer, I'm looking forward to 1.6 then.

On Sun, Nov 29, 2015 at 3:44 PM, Yanbo Liang <yblia...@gmail.com> wrote:

> Hi Ben,
>
> We can get the best model from CrossValidatorModel.BestModel, further
> more we can use the write function of CrossValidatorModel
> <https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/tuning/CrossValidator.scala#L340>
> to implement model persistent and use the best model at other place (after
> 1.6 release). So I think to expose the best model parameters as public API
> is not very necessary.
>
> 2015-11-29 7:36 GMT+08:00 BenFradet <benjamin.fra...@gmail.com>:
>
>> Hi everyone,
>>
>> Is there a better way to retrieve the best model parameters obtained from
>> cross validation than inspecting the logs issued while calling the fit
>> method (with the call here:
>>
>> https://github.com/apache/spark/blob/branch-1.5/mllib/src/main/scala/org/apache/spark/ml/tuning/CrossValidator.scala#L106
>> )?
>>
>> Wouldn't it be useful to expose this to the end user through the
>> crossValidatorModel?
>>
>> Thanks for your response.
>>
>> Best,
>> Ben.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-spark-user-list.1001560.n3.nabble.com/Retrieve-best-parameters-from-CrossValidator-tp25508.html
>> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
>> For additional commands, e-mail: user-h...@spark.apache.org
>>
>>
>


-- 
Ben Fradet.

Reply via email to