"Impute missing values using a saved model"
Hello,
I am trying to impute missing values using knn learner. I am working with a large dataset and saved the model. Now, I want to use the saved model for new (unseen) data in the impute operator. This is because the new data is a much smaller sample size. Unfortunately, I cannot get the saved model to impute the dataset. Can someone please help me. Here is what I am trying to do but does not work:
John
I am trying to impute missing values using knn learner. I am working with a large dataset and saved the model. Now, I want to use the saved model for new (unseen) data in the impute operator. This is because the new data is a much smaller sample size. Unfortunately, I cannot get the saved model to impute the dataset. Can someone please help me. Here is what I am trying to do but does not work:
Thanks in advance!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.008">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" breakpoints="after" class="retrieve" compatibility="5.3.008" expanded="true" height="60" name="Labor-Negotiations" width="90" x="313" y="30">
<parameter key="repository_entry" value="//Samples/data/Labor-Negotiations"/>
</operator>
<operator activated="true" breakpoints="after" class="impute_missing_values" compatibility="5.3.008" expanded="true" height="60" name="Impute Missing Values" width="90" x="514" y="30">
<process expanded="true">
<operator activated="true" class="read_model" compatibility="5.3.008" expanded="true" height="60" name="Read Model" width="90" x="246" y="30">
<parameter key="model_file" value="C:\Users\John Richardson\Desktop\test"/>
</operator>
<operator activated="true" class="apply_model" compatibility="5.3.008" expanded="true" height="76" name="Apply Model" width="90" x="380" y="165">
<list key="application_parameters"/>
</operator>
<connect from_port="example set source" to_op="Apply Model" to_port="unlabelled data"/>
<connect from_op="Read Model" from_port="output" to_op="Apply Model" to_port="model"/>
<connect from_op="Apply Model" from_port="model" to_port="model sink"/>
<portSpacing port="source_example set source" spacing="0"/>
<portSpacing port="sink_model sink" spacing="0"/>
</process>
</operator>
<connect from_op="Labor-Negotiations" from_port="output" to_op="Impute Missing Values" to_port="example set in"/>
<connect from_op="Impute Missing Values" from_port="example set out" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>
John