kears:java.lang.NullPointerException.
Hi,
I'm writting you because I need some help with a problem.
I'm trying to RapidMiner Studio using a keras model, wants to run a Process .I have a java.lang.NullPointerException.
I don't know why is this happening .
Here it's the XML log:
<?xml version="1.0" encoding="UTF-8"?><process version="9.7.002">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="9.7.002" expanded="true" name="Process">
<parameter key="logverbosity" value="init"/>
<parameter key="random_seed" value="2001"/>
<parameter key="send_mail" value="never"/>
<parameter key="notification_email" value=""/>
<parameter key="process_duration_for_mail" value="30"/>
<parameter key="encoding" value="SYSTEM"/>
<process expanded="true">
<operator activated="true" class="retrieve" compatibility="9.7.002" expanded="true" height="68" name="Retrieve Iris" width="90" x="45" y="238">
<parameter key="repository_entry" value="//Samples/data/Iris"/>
</operator>
<operator activated="true" class="split_data" compatibility="9.7.002" expanded="true" height="103" name="Split Data" width="90" x="246" y="238">
<enumeration key="partitions">
<parameter key="ratio" value="0.8"/>
<parameter key="ratio" value="0.2"/>
</enumeration>
<parameter key="sampling_type" value="automatic"/>
<parameter key="use_local_random_seed" value="false"/>
<parameter key="local_random_seed" value="1992"/>
</operator>
<operator activated="true" class="keras:sequential" compatibility="1.0.003" expanded="true" height="166" name="Keras Model" width="90" x="514" y="85">
<parameter key="input shape" value="(4,)"/>
<parameter key="loss" value="categorical_crossentropy"/>
<parameter key="optimizer" value="Adam"/>
<parameter key="learning rate" value="0.01"/>
<parameter key="momentum" value="0.0"/>
<parameter key="rho" value="0.9"/>
<parameter key="beta 1" value="0.999"/>
<parameter key="beta 2" value="0.999"/>
<parameter key="epsilon" value="1.0E-8"/>
<parameter key="decay" value="0.0"/>
<parameter key="schedule decay" value="0.004"/>
<parameter key="Nesterov" value="false"/>
<parameter key="use metric" value="false"/>
<enumeration key="metric"/>
<parameter key="epochs" value="1"/>
<parameter key="batch size" value="32"/>
<enumeration key="callbacks"/>
<parameter key="verbose" value="1"/>
<parameter key="validation split" value="0.0"/>
<parameter key="shuffle" value="false"/>
<parameter key="fix seed" value="false"/>
<parameter key="random seed" value="0"/>
<process expanded="true">
<operator activated="true" class="keras:core_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Core Layer" width="90" x="246" y="136">
<parameter key="layer_type" value="Dense"/>
<parameter key="no_units" value="4"/>
<parameter key="activation_function" value="'relu'"/>
<parameter key="use_bias" value="true"/>
<parameter key="kernel_initializer" value="glorot_uniform(seed=None)"/>
<parameter key="bias_initializer" value="Zeros()"/>
<parameter key="kernel_regularizer" value="None"/>
<parameter key="bias_regularizer" value="None"/>
<parameter key="activity_regularizer" value="None"/>
<parameter key="kernel_constraint" value="None"/>
<parameter key="bias_constraint" value="None"/>
<parameter key="rate" value="0.1"/>
<parameter key="noise_shape" value="None"/>
<parameter key="seed" value="None"/>
<parameter key="target_shape" value=""/>
<parameter key="dims" value="1.1"/>
<parameter key="repetition_factor" value="1"/>
<parameter key="function" value="None"/>
<parameter key="l1" value="0.0"/>
<parameter key="l2" value="0.0"/>
<parameter key="mask_value" value="0.0"/>
</operator>
<operator activated="true" class="keras:core_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Core Layer (2)" width="90" x="581" y="136">
<parameter key="layer_type" value="Dense"/>
<parameter key="no_units" value="3"/>
<parameter key="activation_function" value="'softmax'"/>
<parameter key="use_bias" value="true"/>
<parameter key="kernel_initializer" value="glorot_uniform(seed=None)"/>
<parameter key="bias_initializer" value="Zeros()"/>
<parameter key="kernel_regularizer" value="None"/>
<parameter key="bias_regularizer" value="None"/>
<parameter key="activity_regularizer" value="None"/>
<parameter key="kernel_constraint" value="None"/>
<parameter key="bias_constraint" value="None"/>
<parameter key="rate" value="0.1"/>
<parameter key="noise_shape" value="None"/>
<parameter key="seed" value="None"/>
<parameter key="target_shape" value=""/>
<parameter key="dims" value="1.1"/>
<parameter key="repetition_factor" value="1"/>
<parameter key="function" value="None"/>
<parameter key="l1" value="0.0"/>
<parameter key="l2" value="0.0"/>
<parameter key="mask_value" value="0.0"/>
</operator>
<connect from_op="Add Core Layer" from_port="layers 1" to_op="Add Core Layer (2)" to_port="layers"/>
<connect from_op="Add Core Layer (2)" from_port="layers 1" to_port="layers 1"/>
<portSpacing port="sink_layers 1" spacing="0"/>
<portSpacing port="sink_layers 2" spacing="0"/>
</process>
</operator>
<operator activated="true" class="keras:apply" compatibility="1.0.003" expanded="true" height="82" name="Apply Keras Model" width="90" x="715" y="238">
<parameter key="batch_size" value="32"/>
<parameter key="verbose" value="0"/>
</operator>
<connect from_op="Retrieve Iris" from_port="output" to_op="Split Data" to_port="example set"/>
<connect from_op="Split Data" from_port="partition 1" to_op="Keras Model" to_port="training set"/>
<connect from_op="Split Data" from_port="partition 2" to_op="Apply Keras Model" to_port="unlabelled data"/>
<connect from_op="Keras Model" from_port="model" to_op="Apply Keras Model" to_port="model"/>
<connect from_op="Apply Keras Model" from_port="labelled data" 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>
And the log of the problem:
Aug 19, 2020 1:07:13 PM INFO: Process //Local Repository/processes/iris-keras20200819 starts
Aug 19, 2020 1:07:13 PM SEVERE: Process failed: operator cannot be executed. Check the log messages...
Aug 19, 2020 1:07:13 PM SEVERE: Here:
Aug 19, 2020 1:07:13 PM SEVERE: Process[1] (Process)
Aug 19, 2020 1:07:13 PM SEVERE: subprocess 'Main Process'
Aug 19, 2020 1:07:13 PM SEVERE: +- Retrieve Iris[1] (Retrieve)
Aug 19, 2020 1:07:13 PM SEVERE: +- Split Data[1] (Split Data)
Aug 19, 2020 1:07:13 PM SEVERE: +- Keras Model[1] (Keras Model)
Aug 19, 2020 1:07:13 PM SEVERE: subprocess 'Executed Process'
Aug 19, 2020 1:07:13 PM SEVERE: | +- Add Core Layer[1] (Add Core Layer)
Aug 19, 2020 1:07:13 PM SEVERE: ==> | +- Add Core Layer (2)[1] (Add Core Layer)
Aug 19, 2020 1:07:13 PM SEVERE: +- Apply Keras Model[0] (Apply Keras Model)
Aug 19, 2020 1:07:13 PM SEVERE: java.lang.NullPointerException
Please
help me!!!
Thanks!!!