graphing coefficients

staskhalitovstaskhalitov Member Posts: 3 Contributor I
edited December 2018 in Help

Is there a way to graph the coefficients from a Numerical Attribute? ... to observe the factor difference from the lowest to the highest? 


For example, say i have a numerical attribute that is 'Age of Driver', and i use it in a GLM. 

My output would look like this:

Attribute          |  Coefficient

Age of Driver  |      0.001


How do i visually see that the factor for 18yo is 1.018 and for a 60yo is 1.062   ... assuming log link. 



Ideally i want to recreate the Emblem view where i have all of these in one graph: (model factor, model average, actual observed, exposure weight)




  • Options
    lionelderkrikorlionelderkrikor Moderator, RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn

    Hi @staskhalitov,


    Here a beginning of solution in this process : 

    <?xml version="1.0" encoding="UTF-8"?><process version="9.0.001">
    <operator activated="true" class="process" compatibility="9.0.001" expanded="true" name="Process">
    <process expanded="true">
    <operator activated="true" class="retrieve" compatibility="9.0.001" expanded="true" height="68" name="Retrieve Golf" width="90" x="112" y="85">
    <parameter key="repository_entry" value="//Samples/data/Golf"/>
    <operator activated="true" class="h2o:generalized_linear_model" compatibility="9.0.000" expanded="true" height="124" name="Generalized Linear Model" width="90" x="380" y="85">
    <list key="beta_constraints"/>
    <list key="expert_parameters"/>
    <operator activated="true" class="weights_to_data" compatibility="9.0.001" expanded="true" height="68" name="Weights to Data" width="90" x="514" y="187"/>
    <operator activated="true" class="extract_macro" compatibility="9.0.001" expanded="true" height="68" name="Extract Macro" width="90" x="648" y="187">
    <parameter key="macro" value="coeff_temperature"/>
    <parameter key="macro_type" value="data_value"/>
    <parameter key="attribute_name" value="Weight"/>
    <parameter key="example_index" value="1"/>
    <list key="additional_macros"/>
    <operator activated="true" class="generate_attributes" compatibility="9.0.001" expanded="true" height="82" name="Generate Attributes" width="90" x="715" y="85">
    <list key="function_descriptions">
    <parameter key="linear_Temperature" value="Temperature*eval(%{coeff_temperature})"/>
    <connect from_op="Retrieve Golf" from_port="output" to_op="Generalized Linear Model" to_port="training set"/>
    <connect from_op="Generalized Linear Model" from_port="model" to_port="result 1"/>
    <connect from_op="Generalized Linear Model" from_port="exampleSet" to_op="Generate Attributes" to_port="example set input"/>
    <connect from_op="Generalized Linear Model" from_port="weights" to_op="Weights to Data" to_port="attribute weights"/>
    <connect from_op="Weights to Data" from_port="example set" to_op="Extract Macro" to_port="example set"/>
    <connect from_op="Extract Macro" from_port="example set" to_port="result 3"/>
    <connect from_op="Generate Attributes" from_port="example set output" to_port="result 2"/>
    <portSpacing port="source_input 1" spacing="0"/>
    <portSpacing port="sink_result 1" spacing="0"/>
    <portSpacing port="sink_result 2" spacing="0"/>
    <portSpacing port="sink_result 3" spacing="0"/>
    <portSpacing port="sink_result 4" spacing="0"/>






Sign In or Register to comment.