# Cross-validation model

**URL:** <https://forum.knime.com/t/cross-validation-model/71048>\
**Category:** KNIME Analytics Platform\
**Created:** [July 25, 2023, 10:03am UTC](https://forum.knime.com/t/cross-validation-model/71048 "2023-07-25T10:03:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritazh](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@ritazh](https://forum.knime.com/u/ritazh)\
**Post date:** [July 25, 2023, 10:03am UTC](https://forum.knime.com/t/cross-validation-model/71048/1 "2023-07-25T10:03:17Z")

</div>

How to save the best model trained with cross-validation as PMML model ?

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [July 26, 2023, 4:08pm UTC](https://forum.knime.com/t/cross-validation-model/71048/2 "2023-07-26T16:08:48Z")

</div>

Hi @ritazh and welcome to the forum.

You might try something like this workflow as a starting point.

> **[Cross Validation with SVM and Parameter Optimization – knime](https://hub.knime.com/knime/spaces/Examples/latest/04_Analytics/11_Optimization/07_Cross_Validation_with_SVM_and_Parameter_Optimization~jMyRo6wCNaPC0OHh)**
>
> A Cross-Validation setup is provided by using a Support-Vector-Machine (SVM) as base learning algorithm.

After parameter optimization, you could train the model using the chosen hyper parameters on your full dataset, then use a [PMML Writer](https://kni.me/n/eAuKUZhMgP4rEMDZ) node to save the model. Note that not all model types support writing as PMML, if that’s a strict requirement for you.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [October 24, 2023, 4:09pm UTC](https://forum.knime.com/t/cross-validation-model/71048/3 "2023-10-24T16:09:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
