The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Keras RNN indexing issue

varunm1varunm1 Member Posts: 1,207 Unicorn
edited June 2019 in Help

@hermawan_eriadi

 

Hi, Thanks for your reply. I am unable to attach file in that comments. So I created a new thread. I am attaching the data set in this. Can you please inform what the issue is? The same dataset worked with other algorithms like SVM. But not with keras and RNN. I am trying to use Simple RNN with 200 units and a dense layer with 2 units as output has 2 classes in keras model. The label is mentioned as label column in this file. If you are able to get the classification result, please share the XML code.

 

The error log is shown below. 

 

Jun 22, 2018 9:39:38 AM INFO: File "C:\Users\varun\Anaconda3\lib\site-packages\keras\engine\training_utils.py", line 78, in standardize_input_data

Jun 22, 2018 9:39:38 AM INFO: if isinstance(data[0], list):

Jun 22, 2018 9:39:38 AM INFO:

Jun 22, 2018 9:39:38 AM INFO: IndexError: list index out of range (script, line 295)

Regards,
Varun
https://www.varunmandalapu.com/

Be Safe. Follow precautions and Maintain Social Distancing

Best Answer

  • hermawan_eriadihermawan_eriadi Member Posts: 7 Contributor II
    Solution Accepted

    Try this...

     

    <?xml version="1.0" encoding="UTF-8"?><process version="8.2.000">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="8.2.000" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="read_csv" compatibility="8.2.000" expanded="true" height="68" name="Read CSV" width="90" x="45" y="34">
            <parameter key="csv_file" value="C:\Users\USER\Documents\2. BIG DATA\0. Rapidminer Tutorial\2 Clip ORG CB &amp; T2.csv"/>
            <parameter key="column_separators" value=","/>
            <parameter key="first_row_as_names" value="false"/>
            <list key="annotations">
              <parameter key="0" value="Name"/>
            </list>
            <parameter key="encoding" value="windows-1252"/>
            <list key="data_set_meta_data_information">
              <parameter key="0" value="AverageattemptCount.true.real.attribute"/>
              <parameter key="1" value="AveragebottomHint.true.real.attribute"/>
              <parameter key="2" value="AverageconsecutiveErrorsInRow.true.real.attribute"/>
              <parameter key="3" value="Averagecorrect.true.real.attribute"/>
              <parameter key="4" value="AverageendsWithAutoScaffolding.true.real.attribute"/>
              <parameter key="5" value="AverageendsWithScaffolding.true.real.attribute"/>
              <parameter key="6" value="AveragefrIsHelpRequest.true.real.attribute"/>
              <parameter key="7" value="AveragefrIsHelpRequestScaffolding.true.real.attribute"/>
              <parameter key="8" value="AveragefrPast5HelpRequest.true.real.attribute"/>
              <parameter key="9" value="AveragefrPast5WrongCount.true.real.attribute"/>
              <parameter key="10" value="AveragefrPast8HelpRequest.true.real.attribute"/>
              <parameter key="11" value="AveragefrPast8WrongCount.true.real.attribute"/>
              <parameter key="12" value="AveragefrTimeTakenOnScaffolding.true.real.attribute"/>
              <parameter key="13" value="AveragefrTotalSkillOpportunitiesScaffolding.true.real.attribute"/>
              <parameter key="14" value="AveragefrWorkingInSchool.true.integer.attribute"/>
              <parameter key="15" value="AveragehelpAccessUnder10Sec.true.integer.attribute"/>
              <parameter key="16" value="AveragehelpAccessUnder1Sec.true.integer.attribute"/>
              <parameter key="17" value="AveragehelpAccessUnder2Sec.true.integer.attribute"/>
              <parameter key="18" value="AveragehelpAccessUnder5Sec.true.integer.attribute"/>
              <parameter key="19" value="AveragehelpOnFirstAttemptAndTimeLess2Sec.true.integer.attribute"/>
              <parameter key="20" value="Averagehint.true.real.attribute"/>
              <parameter key="21" value="AveragehintCount.true.real.attribute"/>
              <parameter key="22" value="AveragehintTotal.true.real.attribute"/>
              <parameter key="23" value="Averageoriginal.true.real.attribute"/>
              <parameter key="24" value="Averagepast8BottomOut.true.real.attribute"/>
              <parameter key="25" value="AveragepercentCorrectPerSkill.true.real.attribute"/>
              <parameter key="26" value="AverageprevHintThisWrong.true.integer.attribute"/>
              <parameter key="27" value="AverageresponseIsChosen.true.real.attribute"/>
              <parameter key="28" value="AverageresponseIsFillIn.true.real.attribute"/>
              <parameter key="29" value="Averagescaffold.true.real.attribute"/>
              <parameter key="30" value="AveragestlHintUsed.true.integer.attribute"/>
              <parameter key="31" value="AveragesumHelp.true.integer.attribute"/>
              <parameter key="32" value="AveragesumofRightPerSkill.true.real.attribute"/>
              <parameter key="33" value="AveragesumRight.true.real.attribute"/>
              <parameter key="34" value="AveragesumSameSkillWrongonFirstAttempt.true.integer.attribute"/>
              <parameter key="35" value="AveragesumTime3SDWhen3RowRight.true.real.attribute"/>
              <parameter key="36" value="AveragesumTime5SDWhen5RowRight.true.real.attribute"/>
              <parameter key="37" value="AveragesumTimePerSkill.true.real.attribute"/>
              <parameter key="38" value="AveragetimeGreater10AndPrevActionWrong.true.real.attribute"/>
              <parameter key="39" value="AveragetimeGreater10SecAndNextActionRight.true.real.attribute"/>
              <parameter key="40" value="AveragetimeGreater10SecPrevActionHelpOrBug.true.integer.attribute"/>
              <parameter key="41" value="AveragetimeGreater5Secprev2wrong.true.real.attribute"/>
              <parameter key="42" value="AveragetimeSinceSkill.true.integer.attribute"/>
              <parameter key="43" value="AveragetimeTaken.true.real.attribute"/>
              <parameter key="44" value="AveragetotalFrAttempted.true.real.attribute"/>
              <parameter key="45" value="AveragetotalFrPastWrongCount.true.real.attribute"/>
              <parameter key="46" value="AveragetotalFrPercentPastWrong.true.real.attribute"/>
              <parameter key="47" value="AveragetotalFrSkillOpportunities.true.real.attribute"/>
              <parameter key="48" value="AveragetotalFrSkillOpportunitiesByScaffolding.true.real.attribute"/>
              <parameter key="49" value="AveragetotalFrTimeOnSkill.true.real.attribute"/>
              <parameter key="50" value="AveragetotalTimeByPercentCorrectForskill.true.real.attribute"/>
              <parameter key="51" value="MaxattemptCount.true.integer.attribute"/>
              <parameter key="52" value="MaxbottomHint.true.integer.attribute"/>
              <parameter key="53" value="MaxconsecutiveErrorsInRow.true.integer.attribute"/>
              <parameter key="54" value="Maxcorrect.true.integer.attribute"/>
              <parameter key="55" value="MaxendsWithAutoScaffolding.true.integer.attribute"/>
              <parameter key="56" value="MaxendsWithScaffolding.true.integer.attribute"/>
              <parameter key="57" value="MaxfrIsHelpRequest.true.integer.attribute"/>
              <parameter key="58" value="MaxfrIsHelpRequestScaffolding.true.integer.attribute"/>
              <parameter key="59" value="MaxfrPast5HelpRequest.true.integer.attribute"/>
              <parameter key="60" value="MaxfrPast5WrongCount.true.integer.attribute"/>
              <parameter key="61" value="MaxfrPast8HelpRequest.true.integer.attribute"/>
              <parameter key="62" value="MaxfrPast8WrongCount.true.integer.attribute"/>
              <parameter key="63" value="MaxfrTimeTakenOnScaffolding.true.real.attribute"/>
              <parameter key="64" value="MaxfrTotalSkillOpportunitiesScaffolding.true.integer.attribute"/>
              <parameter key="65" value="MaxfrWorkingInSchool.true.integer.attribute"/>
              <parameter key="66" value="MaxhelpAccessUnder10Sec.true.integer.attribute"/>
              <parameter key="67" value="MaxhelpAccessUnder1Sec.true.integer.attribute"/>
              <parameter key="68" value="MaxhelpAccessUnder2Sec.true.integer.attribute"/>
              <parameter key="69" value="MaxhelpAccessUnder5Sec.true.integer.attribute"/>
              <parameter key="70" value="MaxhelpOnFirstAttemptAndTimeLess2Sec.true.integer.attribute"/>
              <parameter key="71" value="Maxhint.true.integer.attribute"/>
              <parameter key="72" value="MaxhintCount.true.integer.attribute"/>
              <parameter key="73" value="MaxhintTotal.true.integer.attribute"/>
              <parameter key="74" value="Maxoriginal.true.integer.attribute"/>
              <parameter key="75" value="Maxpast8BottomOut.true.integer.attribute"/>
              <parameter key="76" value="MaxpercentCorrectPerSkill.true.real.attribute"/>
              <parameter key="77" value="MaxprevHintThisWrong.true.integer.attribute"/>
              <parameter key="78" value="MaxresponseIsChosen.true.integer.attribute"/>
              <parameter key="79" value="MaxresponseIsFillIn.true.integer.attribute"/>
              <parameter key="80" value="Maxscaffold.true.integer.attribute"/>
              <parameter key="81" value="MaxstlHintUsed.true.integer.attribute"/>
              <parameter key="82" value="MaxsumHelp.true.integer.attribute"/>
              <parameter key="83" value="MaxsumofRightPerSkill.true.integer.attribute"/>
              <parameter key="84" value="MaxsumRight.true.integer.attribute"/>
              <parameter key="85" value="MaxsumSameSkillWrongonFirstAttempt.true.integer.attribute"/>
              <parameter key="86" value="MaxsumTime3SDWhen3RowRight.true.real.attribute"/>
              <parameter key="87" value="MaxsumTime5SDWhen5RowRight.true.real.attribute"/>
              <parameter key="88" value="MaxsumTimePerSkill.true.real.attribute"/>
              <parameter key="89" value="MaxtimeGreater10AndPrevActionWrong.true.integer.attribute"/>
              <parameter key="90" value="MaxtimeGreater10SecAndNextActionRight.true.integer.attribute"/>
              <parameter key="91" value="MaxtimeGreater10SecPrevActionHelpOrBug.true.integer.attribute"/>
              <parameter key="92" value="MaxtimeGreater5Secprev2wrong.true.integer.attribute"/>
              <parameter key="93" value="MaxtimeSinceSkill.true.integer.attribute"/>
              <parameter key="94" value="MaxtimeTaken.true.real.attribute"/>
              <parameter key="95" value="MaxtotalFrAttempted.true.integer.attribute"/>
              <parameter key="96" value="MaxtotalFrPastWrongCount.true.integer.attribute"/>
              <parameter key="97" value="MaxtotalFrPercentPastWrong.true.real.attribute"/>
              <parameter key="98" value="MaxtotalFrSkillOpportunities.true.integer.attribute"/>
              <parameter key="99" value="MaxtotalFrSkillOpportunitiesByScaffolding.true.real.attribute"/>
              <parameter key="100" value="MaxtotalFrTimeOnSkill.true.real.attribute"/>
              <parameter key="101" value="MaxtotalTimeByPercentCorrectForskill.true.real.attribute"/>
              <parameter key="102" value="MinattemptCount.true.integer.attribute"/>
              <parameter key="103" value="MinbottomHint.true.integer.attribute"/>
              <parameter key="104" value="MinconsecutiveErrorsInRow.true.integer.attribute"/>
              <parameter key="105" value="Mincorrect.true.integer.attribute"/>
              <parameter key="106" value="MinendsWithAutoScaffolding.true.integer.attribute"/>
              <parameter key="107" value="MinendsWithScaffolding.true.integer.attribute"/>
              <parameter key="108" value="MinfrIsHelpRequest.true.integer.attribute"/>
              <parameter key="109" value="MinfrIsHelpRequestScaffolding.true.integer.attribute"/>
              <parameter key="110" value="MinfrPast5HelpRequest.true.integer.attribute"/>
              <parameter key="111" value="MinfrPast5WrongCount.true.integer.attribute"/>
              <parameter key="112" value="MinfrPast8HelpRequest.true.integer.attribute"/>
              <parameter key="113" value="MinfrPast8WrongCount.true.integer.attribute"/>
              <parameter key="114" value="MinfrTimeTakenOnScaffolding.true.real.attribute"/>
              <parameter key="115" value="MinfrTotalSkillOpportunitiesScaffolding.true.integer.attribute"/>
              <parameter key="116" value="MinfrWorkingInSchool.true.integer.attribute"/>
              <parameter key="117" value="MinhelpAccessUnder10Sec.true.integer.attribute"/>
              <parameter key="118" value="MinhelpAccessUnder1Sec.true.integer.attribute"/>
              <parameter key="119" value="MinhelpAccessUnder2Sec.true.integer.attribute"/>
              <parameter key="120" value="MinhelpAccessUnder5Sec.true.integer.attribute"/>
              <parameter key="121" value="MinhelpOnFirstAttemptAndTimeLess2Sec.true.integer.attribute"/>
              <parameter key="122" value="Minhint.true.integer.attribute"/>
              <parameter key="123" value="MinhintCount.true.integer.attribute"/>
              <parameter key="124" value="MinhintTotal.true.integer.attribute"/>
              <parameter key="125" value="Minoriginal.true.integer.attribute"/>
              <parameter key="126" value="Minpast8BottomOut.true.integer.attribute"/>
              <parameter key="127" value="MinpercentCorrectPerSkill.true.real.attribute"/>
              <parameter key="128" value="MinprevHintThisWrong.true.integer.attribute"/>
              <parameter key="129" value="MinresponseIsChosen.true.integer.attribute"/>
              <parameter key="130" value="MinresponseIsFillIn.true.integer.attribute"/>
              <parameter key="131" value="Minscaffold.true.integer.attribute"/>
              <parameter key="132" value="MinstlHintUsed.true.integer.attribute"/>
              <parameter key="133" value="MinsumHelp.true.integer.attribute"/>
              <parameter key="134" value="MinsumofRightPerSkill.true.integer.attribute"/>
              <parameter key="135" value="MinsumRight.true.integer.attribute"/>
              <parameter key="136" value="MinsumSameSkillWrongonFirstAttempt.true.integer.attribute"/>
              <parameter key="137" value="MinsumTime3SDWhen3RowRight.true.real.attribute"/>
              <parameter key="138" value="MinsumTime5SDWhen5RowRight.true.real.attribute"/>
              <parameter key="139" value="MinsumTimePerSkill.true.real.attribute"/>
              <parameter key="140" value="MintimeGreater10AndPrevActionWrong.true.integer.attribute"/>
              <parameter key="141" value="MintimeGreater10SecAndNextActionRight.true.integer.attribute"/>
              <parameter key="142" value="MintimeGreater10SecPrevActionHelpOrBug.true.integer.attribute"/>
              <parameter key="143" value="MintimeGreater5Secprev2wrong.true.integer.attribute"/>
              <parameter key="144" value="MintimeSinceSkill.true.integer.attribute"/>
              <parameter key="145" value="MintimeTaken.true.real.attribute"/>
              <parameter key="146" value="MintotalFrAttempted.true.integer.attribute"/>
              <parameter key="147" value="MintotalFrPastWrongCount.true.integer.attribute"/>
              <parameter key="148" value="MintotalFrPercentPastWrong.true.real.attribute"/>
              <parameter key="149" value="MintotalFrSkillOpportunities.true.integer.attribute"/>
              <parameter key="150" value="MintotalFrSkillOpportunitiesByScaffolding.true.real.attribute"/>
              <parameter key="151" value="MintotalFrTimeOnSkill.true.real.attribute"/>
              <parameter key="152" value="MintotalTimeByPercentCorrectForskill.true.real.attribute"/>
              <parameter key="153" value="SumattemptCount.true.integer.attribute"/>
              <parameter key="154" value="SumbottomHint.true.integer.attribute"/>
              <parameter key="155" value="SumconsecutiveErrorsInRow.true.integer.attribute"/>
              <parameter key="156" value="Sumcorrect.true.integer.attribute"/>
              <parameter key="157" value="SumendsWithAutoScaffolding.true.integer.attribute"/>
              <parameter key="158" value="SumendsWithScaffolding.true.integer.attribute"/>
              <parameter key="159" value="SumfrIsHelpRequest.true.integer.attribute"/>
              <parameter key="160" value="SumfrIsHelpRequestScaffolding.true.integer.attribute"/>
              <parameter key="161" value="SumfrPast5HelpRequest.true.integer.attribute"/>
              <parameter key="162" value="SumfrPast5WrongCount.true.integer.attribute"/>
              <parameter key="163" value="SumfrPast8HelpRequest.true.integer.attribute"/>
              <parameter key="164" value="SumfrPast8WrongCount.true.integer.attribute"/>
              <parameter key="165" value="SumfrTimeTakenOnScaffolding.true.real.attribute"/>
              <parameter key="166" value="SumfrTotalSkillOpportunitiesScaffolding.true.integer.attribute"/>
              <parameter key="167" value="SumfrWorkingInSchool.true.integer.attribute"/>
              <parameter key="168" value="SumhelpAccessUnder10Sec.true.integer.attribute"/>
              <parameter key="169" value="SumhelpAccessUnder1Sec.true.integer.attribute"/>
              <parameter key="170" value="SumhelpAccessUnder2Sec.true.integer.attribute"/>
              <parameter key="171" value="SumhelpAccessUnder5Sec.true.integer.attribute"/>
              <parameter key="172" value="SumhelpOnFirstAttemptAndTimeLess2Sec.true.integer.attribute"/>
              <parameter key="173" value="Sumhint.true.integer.attribute"/>
              <parameter key="174" value="SumhintCount.true.integer.attribute"/>
              <parameter key="175" value="SumhintTotal.true.integer.attribute"/>
              <parameter key="176" value="Sumoriginal.true.integer.attribute"/>
              <parameter key="177" value="Sumpast8BottomOut.true.integer.attribute"/>
              <parameter key="178" value="SumpercentCorrectPerSkill.true.real.attribute"/>
              <parameter key="179" value="SumprevHintThisWrong.true.integer.attribute"/>
              <parameter key="180" value="SumresponseIsChosen.true.integer.attribute"/>
              <parameter key="181" value="SumresponseIsFillIn.true.integer.attribute"/>
              <parameter key="182" value="Sumscaffold.true.integer.attribute"/>
              <parameter key="183" value="SumstlHintUsed.true.integer.attribute"/>
              <parameter key="184" value="SumsumHelp.true.integer.attribute"/>
              <parameter key="185" value="SumsumofRightPerSkill.true.integer.attribute"/>
              <parameter key="186" value="SumsumRight.true.integer.attribute"/>
              <parameter key="187" value="SumsumSameSkillWrongonFirstAttempt.true.integer.attribute"/>
              <parameter key="188" value="SumsumTime3SDWhen3RowRight.true.real.attribute"/>
              <parameter key="189" value="SumsumTime5SDWhen5RowRight.true.real.attribute"/>
              <parameter key="190" value="SumsumTimePerSkill.true.real.attribute"/>
              <parameter key="191" value="SumtimeGreater10AndPrevActionWrong.true.integer.attribute"/>
              <parameter key="192" value="SumtimeGreater10SecAndNextActionRight.true.integer.attribute"/>
              <parameter key="193" value="SumtimeGreater10SecPrevActionHelpOrBug.true.integer.attribute"/>
              <parameter key="194" value="SumtimeGreater5Secprev2wrong.true.integer.attribute"/>
              <parameter key="195" value="SumtimeSinceSkill.true.integer.attribute"/>
              <parameter key="196" value="SumtimeTaken.true.real.attribute"/>
              <parameter key="197" value="SumtotalFrAttempted.true.integer.attribute"/>
              <parameter key="198" value="SumtotalFrPastWrongCount.true.integer.attribute"/>
              <parameter key="199" value="SumtotalFrPercentPastWrong.true.real.attribute"/>
              <parameter key="200" value="SumtotalFrSkillOpportunities.true.integer.attribute"/>
              <parameter key="201" value="SumtotalFrSkillOpportunitiesByScaffolding.true.real.attribute"/>
              <parameter key="202" value="SumtotalFrTimeOnSkill.true.real.attribute"/>
              <parameter key="203" value="SumtotalTimeByPercentCorrectForskill.true.real.attribute"/>
              <parameter key="204" value="AverageattemptCount 1.true.real.attribute"/>
              <parameter key="205" value="AveragebottomHint 1.true.real.attribute"/>
              <parameter key="206" value="AverageconsecutiveErrorsInRow 1.true.real.attribute"/>
              <parameter key="207" value="Averagecorrect 1.true.real.attribute"/>
              <parameter key="208" value="AverageendsWithAutoScaffolding 1.true.real.attribute"/>
              <parameter key="209" value="AverageendsWithScaffolding 1.true.real.attribute"/>
              <parameter key="210" value="AveragefrIsHelpRequest 1.true.real.attribute"/>
              <parameter key="211" value="AveragefrIsHelpRequestScaffolding 1.true.real.attribute"/>
              <parameter key="212" value="AveragefrPast5HelpRequest 1.true.real.attribute"/>
              <parameter key="213" value="AveragefrPast5WrongCount 1.true.real.attribute"/>
              <parameter key="214" value="AveragefrPast8HelpRequest 1.true.real.attribute"/>
              <parameter key="215" value="AveragefrPast8WrongCount 1.true.real.attribute"/>
              <parameter key="216" value="AveragefrTimeTakenOnScaffolding 1.true.real.attribute"/>
              <parameter key="217" value="AveragefrTotalSkillOpportunitiesScaffolding 1.true.real.attribute"/>
              <parameter key="218" value="AveragefrWorkingInSchool 1.true.integer.attribute"/>
              <parameter key="219" value="AveragehelpAccessUnder10Sec 1.true.integer.attribute"/>
              <parameter key="220" value="AveragehelpAccessUnder1Sec 1.true.integer.attribute"/>
              <parameter key="221" value="AveragehelpAccessUnder2Sec 1.true.integer.attribute"/>
              <parameter key="222" value="AveragehelpAccessUnder5Sec 1.true.integer.attribute"/>
              <parameter key="223" value="AveragehelpOnFirstAttemptAndTimeLess2Sec 1.true.integer.attribute"/>
              <parameter key="224" value="Averagehint 1.true.real.attribute"/>
              <parameter key="225" value="AveragehintCount 1.true.real.attribute"/>
              <parameter key="226" value="AveragehintTotal 1.true.real.attribute"/>
              <parameter key="227" value="Averageoriginal 1.true.real.attribute"/>
              <parameter key="228" value="Averagepast8BottomOut 1.true.real.attribute"/>
              <parameter key="229" value="AveragepercentCorrectPerSkill 1.true.real.attribute"/>
              <parameter key="230" value="AverageprevHintThisWrong 1.true.integer.attribute"/>
              <parameter key="231" value="AverageresponseIsChosen 1.true.real.attribute"/>
              <parameter key="232" value="AverageresponseIsFillIn 1.true.real.attribute"/>
              <parameter key="233" value="Averagescaffold 1.true.real.attribute"/>
              <parameter key="234" value="AveragestlHintUsed 1.true.integer.attribute"/>
              <parameter key="235" value="AveragesumHelp 1.true.integer.attribute"/>
              <parameter key="236" value="AveragesumofRightPerSkill 1.true.real.attribute"/>
              <parameter key="237" value="AveragesumRight 1.true.real.attribute"/>
              <parameter key="238" value="AveragesumSameSkillWrongonFirstAttempt 1.true.integer.attribute"/>
              <parameter key="239" value="AveragesumTime3SDWhen3RowRight 1.true.real.attribute"/>
              <parameter key="240" value="AveragesumTime5SDWhen5RowRight 1.true.real.attribute"/>
              <parameter key="241" value="AveragesumTimePerSkill 1.true.real.attribute"/>
              <parameter key="242" value="AveragetimeGreater10AndPrevActionWrong 1.true.real.attribute"/>
              <parameter key="243" value="AveragetimeGreater10SecAndNextActionRight 1.true.real.attribute"/>
              <parameter key="244" value="AveragetimeGreater10SecPrevActionHelpOrBug 1.true.integer.attribute"/>
              <parameter key="245" value="AveragetimeGreater5Secprev2wrong 1.true.real.attribute"/>
              <parameter key="246" value="AveragetimeSinceSkill 1.true.integer.attribute"/>
              <parameter key="247" value="AveragetimeTaken 1.true.real.attribute"/>
              <parameter key="248" value="AveragetotalFrAttempted 1.true.real.attribute"/>
              <parameter key="249" value="AveragetotalFrPastWrongCount 1.true.real.attribute"/>
              <parameter key="250" value="AveragetotalFrPercentPastWrong 1.true.real.attribute"/>
              <parameter key="251" value="AveragetotalFrSkillOpportunities 1.true.real.attribute"/>
              <parameter key="252" value="AveragetotalFrSkillOpportunitiesByScaffolding 1.true.real.attribute"/>
              <parameter key="253" value="AveragetotalFrTimeOnSkill 1.true.real.attribute"/>
              <parameter key="254" value="AveragetotalTimeByPercentCorrectForskill 1.true.real.attribute"/>
              <parameter key="255" value="MaxattemptCount 1.true.integer.attribute"/>
              <parameter key="256" value="MaxbottomHint 1.true.integer.attribute"/>
              <parameter key="257" value="MaxconsecutiveErrorsInRow 1.true.integer.attribute"/>
              <parameter key="258" value="Maxcorrect 1.true.integer.attribute"/>
              <parameter key="259" value="MaxendsWithAutoScaffolding 1.true.integer.attribute"/>
              <parameter key="260" value="MaxendsWithScaffolding 1.true.integer.attribute"/>
              <parameter key="261" value="MaxfrIsHelpRequest 1.true.integer.attribute"/>
              <parameter key="262" value="MaxfrIsHelpRequestScaffolding 1.true.integer.attribute"/>
              <parameter key="263" value="MaxfrPast5HelpRequest 1.true.integer.attribute"/>
              <parameter key="264" value="MaxfrPast5WrongCount 1.true.integer.attribute"/>
              <parameter key="265" value="MaxfrPast8HelpRequest 1.true.integer.attribute"/>
              <parameter key="266" value="MaxfrPast8WrongCount 1.true.integer.attribute"/>
              <parameter key="267" value="MaxfrTimeTakenOnScaffolding 1.true.real.attribute"/>
              <parameter key="268" value="MaxfrTotalSkillOpportunitiesScaffolding 1.true.integer.attribute"/>
              <parameter key="269" value="MaxfrWorkingInSchool 1.true.integer.attribute"/>
              <parameter key="270" value="MaxhelpAccessUnder10Sec 1.true.integer.attribute"/>
              <parameter key="271" value="MaxhelpAccessUnder1Sec 1.true.integer.attribute"/>
              <parameter key="272" value="MaxhelpAccessUnder2Sec 1.true.integer.attribute"/>
              <parameter key="273" value="MaxhelpAccessUnder5Sec 1.true.integer.attribute"/>
              <parameter key="274" value="MaxhelpOnFirstAttemptAndTimeLess2Sec 1.true.integer.attribute"/>
              <parameter key="275" value="Maxhint 1.true.integer.attribute"/>
              <parameter key="276" value="MaxhintCount 1.true.integer.attribute"/>
              <parameter key="277" value="MaxhintTotal 1.true.integer.attribute"/>
              <parameter key="278" value="Maxoriginal 1.true.integer.attribute"/>
              <parameter key="279" value="Maxpast8BottomOut 1.true.integer.attribute"/>
              <parameter key="280" value="MaxpercentCorrectPerSkill 1.true.real.attribute"/>
              <parameter key="281" value="MaxprevHintThisWrong 1.true.integer.attribute"/>
              <parameter key="282" value="MaxresponseIsChosen 1.true.integer.attribute"/>
              <parameter key="283" value="MaxresponseIsFillIn 1.true.integer.attribute"/>
              <parameter key="284" value="Maxscaffold 1.true.integer.attribute"/>
              <parameter key="285" value="MaxstlHintUsed 1.true.integer.attribute"/>
              <parameter key="286" value="MaxsumHelp 1.true.integer.attribute"/>
              <parameter key="287" value="MaxsumofRightPerSkill 1.true.integer.attribute"/>
              <parameter key="288" value="MaxsumRight 1.true.integer.attribute"/>
              <parameter key="289" value="MaxsumSameSkillWrongonFirstAttempt 1.true.integer.attribute"/>
              <parameter key="290" value="MaxsumTime3SDWhen3RowRight 1.true.real.attribute"/>
              <parameter key="291" value="MaxsumTime5SDWhen5RowRight 1.true.real.attribute"/>
              <parameter key="292" value="MaxsumTimePerSkill 1.true.real.attribute"/>
              <parameter key="293" value="MaxtimeGreater10AndPrevActionWrong 1.true.integer.attribute"/>
              <parameter key="294" value="MaxtimeGreater10SecAndNextActionRight 1.true.integer.attribute"/>
              <parameter key="295" value="MaxtimeGreater10SecPrevActionHelpOrBug 1.true.integer.attribute"/>
              <parameter key="296" value="MaxtimeGreater5Secprev2wrong 1.true.integer.attribute"/>
              <parameter key="297" value="MaxtimeSinceSkill 1.true.integer.attribute"/>
              <parameter key="298" value="MaxtimeTaken 1.true.real.attribute"/>
              <parameter key="299" value="MaxtotalFrAttempted 1.true.integer.attribute"/>
              <parameter key="300" value="MaxtotalFrPastWrongCount 1.true.integer.attribute"/>
              <parameter key="301" value="MaxtotalFrPercentPastWrong 1.true.real.attribute"/>
              <parameter key="302" value="MaxtotalFrSkillOpportunities 1.true.integer.attribute"/>
              <parameter key="303" value="MaxtotalFrSkillOpportunitiesByScaffolding 1.true.real.attribute"/>
              <parameter key="304" value="MaxtotalFrTimeOnSkill 1.true.real.attribute"/>
              <parameter key="305" value="MaxtotalTimeByPercentCorrectForskill 1.true.real.attribute"/>
              <parameter key="306" value="MinattemptCount 1.true.integer.attribute"/>
              <parameter key="307" value="MinbottomHint 1.true.integer.attribute"/>
              <parameter key="308" value="MinconsecutiveErrorsInRow 1.true.integer.attribute"/>
              <parameter key="309" value="Mincorrect 1.true.integer.attribute"/>
              <parameter key="310" value="MinendsWithAutoScaffolding 1.true.integer.attribute"/>
              <parameter key="311" value="MinendsWithScaffolding 1.true.integer.attribute"/>
              <parameter key="312" value="MinfrIsHelpRequest 1.true.integer.attribute"/>
              <parameter key="313" value="MinfrIsHelpRequestScaffolding 1.true.integer.attribute"/>
              <parameter key="314" value="MinfrPast5HelpRequest 1.true.integer.attribute"/>
              <parameter key="315" value="MinfrPast5WrongCount 1.true.integer.attribute"/>
              <parameter key="316" value="MinfrPast8HelpRequest 1.true.integer.attribute"/>
              <parameter key="317" value="MinfrPast8WrongCount 1.true.integer.attribute"/>
              <parameter key="318" value="MinfrTimeTakenOnScaffolding 1.true.real.attribute"/>
              <parameter key="319" value="MinfrTotalSkillOpportunitiesScaffolding 1.true.integer.attribute"/>
              <parameter key="320" value="MinfrWorkingInSchool 1.true.integer.attribute"/>
              <parameter key="321" value="MinhelpAccessUnder10Sec 1.true.integer.attribute"/>
              <parameter key="322" value="MinhelpAccessUnder1Sec 1.true.integer.attribute"/>
              <parameter key="323" value="MinhelpAccessUnder2Sec 1.true.integer.attribute"/>
              <parameter key="324" value="MinhelpAccessUnder5Sec 1.true.integer.attribute"/>
              <parameter key="325" value="MinhelpOnFirstAttemptAndTimeLess2Sec 1.true.integer.attribute"/>
              <parameter key="326" value="Minhint 1.true.integer.attribute"/>
              <parameter key="327" value="MinhintCount 1.true.integer.attribute"/>
              <parameter key="328" value="MinhintTotal 1.true.integer.attribute"/>
              <parameter key="329" value="Minoriginal 1.true.integer.attribute"/>
              <parameter key="330" value="Minpast8BottomOut 1.true.integer.attribute"/>
              <parameter key="331" value="MinpercentCorrectPerSkill 1.true.real.attribute"/>
              <parameter key="332" value="MinprevHintThisWrong 1.true.integer.attribute"/>
              <parameter key="333" value="MinresponseIsChosen 1.true.integer.attribute"/>
              <parameter key="334" value="MinresponseIsFillIn 1.true.integer.attribute"/>
              <parameter key="335" value="Minscaffold 1.true.integer.attribute"/>
              <parameter key="336" value="MinstlHintUsed 1.true.integer.attribute"/>
              <parameter key="337" value="MinsumHelp 1.true.integer.attribute"/>
              <parameter key="338" value="MinsumofRightPerSkill 1.true.integer.attribute"/>
              <parameter key="339" value="MinsumRight 1.true.integer.attribute"/>
              <parameter key="340" value="MinsumSameSkillWrongonFirstAttempt 1.true.integer.attribute"/>
              <parameter key="341" value="MinsumTime3SDWhen3RowRight 1.true.real.attribute"/>
              <parameter key="342" value="MinsumTime5SDWhen5RowRight 1.true.real.attribute"/>
              <parameter key="343" value="MinsumTimePerSkill 1.true.real.attribute"/>
              <parameter key="344" value="MintimeGreater10AndPrevActionWrong 1.true.integer.attribute"/>
              <parameter key="345" value="MintimeGreater10SecAndNextActionRight 1.true.integer.attribute"/>
              <parameter key="346" value="MintimeGreater10SecPrevActionHelpOrBug 1.true.integer.attribute"/>
              <parameter key="347" value="MintimeGreater5Secprev2wrong 1.true.integer.attribute"/>
              <parameter key="348" value="MintimeSinceSkill 1.true.integer.attribute"/>
              <parameter key="349" value="MintimeTaken 1.true.real.attribute"/>
              <parameter key="350" value="MintotalFrAttempted 1.true.integer.attribute"/>
              <parameter key="351" value="MintotalFrPastWrongCount 1.true.integer.attribute"/>
              <parameter key="352" value="MintotalFrPercentPastWrong 1.true.real.attribute"/>
              <parameter key="353" value="MintotalFrSkillOpportunities 1.true.integer.attribute"/>
              <parameter key="354" value="MintotalFrSkillOpportunitiesByScaffolding 1.true.real.attribute"/>
              <parameter key="355" value="MintotalFrTimeOnSkill 1.true.real.attribute"/>
              <parameter key="356" value="MintotalTimeByPercentCorrectForskill 1.true.real.attribute"/>
              <parameter key="357" value="SumattemptCount 1.true.integer.attribute"/>
              <parameter key="358" value="SumbottomHint 1.true.integer.attribute"/>
              <parameter key="359" value="SumconsecutiveErrorsInRow 1.true.integer.attribute"/>
              <parameter key="360" value="Sumcorrect 1.true.integer.attribute"/>
              <parameter key="361" value="SumendsWithAutoScaffolding 1.true.integer.attribute"/>
              <parameter key="362" value="SumendsWithScaffolding 1.true.integer.attribute"/>
              <parameter key="363" value="SumfrIsHelpRequest 1.true.integer.attribute"/>
              <parameter key="364" value="SumfrIsHelpRequestScaffolding 1.true.integer.attribute"/>
              <parameter key="365" value="SumfrPast5HelpRequest 1.true.integer.attribute"/>
              <parameter key="366" value="SumfrPast5WrongCount 1.true.integer.attribute"/>
              <parameter key="367" value="SumfrPast8HelpRequest 1.true.integer.attribute"/>
              <parameter key="368" value="SumfrPast8WrongCount 1.true.integer.attribute"/>
              <parameter key="369" value="SumfrTimeTakenOnScaffolding 1.true.real.attribute"/>
              <parameter key="370" value="SumfrTotalSkillOpportunitiesScaffolding 1.true.integer.attribute"/>
              <parameter key="371" value="SumfrWorkingInSchool 1.true.integer.attribute"/>
              <parameter key="372" value="SumhelpAccessUnder10Sec 1.true.integer.attribute"/>
              <parameter key="373" value="SumhelpAccessUnder1Sec 1.true.integer.attribute"/>
              <parameter key="374" value="SumhelpAccessUnder2Sec 1.true.integer.attribute"/>
              <parameter key="375" value="SumhelpAccessUnder5Sec 1.true.integer.attribute"/>
              <parameter key="376" value="SumhelpOnFirstAttemptAndTimeLess2Sec 1.true.integer.attribute"/>
              <parameter key="377" value="Sumhint 1.true.integer.attribute"/>
              <parameter key="378" value="SumhintCount 1.true.integer.attribute"/>
              <parameter key="379" value="SumhintTotal 1.true.integer.attribute"/>
              <parameter key="380" value="Sumoriginal 1.true.integer.attribute"/>
              <parameter key="381" value="Sumpast8BottomOut 1.true.integer.attribute"/>
              <parameter key="382" value="SumpercentCorrectPerSkill 1.true.real.attribute"/>
              <parameter key="383" value="SumprevHintThisWrong 1.true.integer.attribute"/>
              <parameter key="384" value="SumresponseIsChosen 1.true.integer.attribute"/>
              <parameter key="385" value="SumresponseIsFillIn 1.true.integer.attribute"/>
              <parameter key="386" value="Sumscaffold 1.true.integer.attribute"/>
              <parameter key="387" value="SumstlHintUsed 1.true.integer.attribute"/>
              <parameter key="388" value="SumsumHelp 1.true.integer.attribute"/>
              <parameter key="389" value="SumsumofRightPerSkill 1.true.integer.attribute"/>
              <parameter key="390" value="SumsumRight 1.true.integer.attribute"/>
              <parameter key="391" value="SumsumSameSkillWrongonFirstAttempt 1.true.integer.attribute"/>
              <parameter key="392" value="SumsumTime3SDWhen3RowRight 1.true.real.attribute"/>
              <parameter key="393" value="SumsumTime5SDWhen5RowRight 1.true.real.attribute"/>
              <parameter key="394" value="SumsumTimePerSkill 1.true.real.attribute"/>
              <parameter key="395" value="SumtimeGreater10AndPrevActionWrong 1.true.integer.attribute"/>
              <parameter key="396" value="SumtimeGreater10SecAndNextActionRight 1.true.integer.attribute"/>
              <parameter key="397" value="SumtimeGreater10SecPrevActionHelpOrBug 1.true.integer.attribute"/>
              <parameter key="398" value="SumtimeGreater5Secprev2wrong 1.true.integer.attribute"/>
              <parameter key="399" value="SumtimeSinceSkill 1.true.integer.attribute"/>
              <parameter key="400" value="SumtimeTaken 1.true.real.attribute"/>
              <parameter key="401" value="SumtotalFrAttempted 1.true.integer.attribute"/>
              <parameter key="402" value="SumtotalFrPastWrongCount 1.true.integer.attribute"/>
              <parameter key="403" value="SumtotalFrPercentPastWrong 1.true.real.attribute"/>
              <parameter key="404" value="SumtotalFrSkillOpportunities 1.true.integer.attribute"/>
              <parameter key="405" value="SumtotalFrSkillOpportunitiesByScaffolding 1.true.real.attribute"/>
              <parameter key="406" value="SumtotalFrTimeOnSkill 1.true.real.attribute"/>
              <parameter key="407" value="SumtotalTimeByPercentCorrectForskill 1.true.real.attribute"/>
              <parameter key="408" value="Label.true.polynominal.attribute"/>
            </list>
          </operator>
          <operator activated="true" class="set_role" compatibility="8.2.000" expanded="true" height="82" name="Set Role (3)" width="90" x="179" y="34">
            <parameter key="attribute_name" value="Label"/>
            <parameter key="target_role" value="label"/>
            <list key="set_additional_roles"/>
          </operator>
          <operator activated="true" class="series:windowing" compatibility="7.4.000" expanded="true" height="82" name="Windowing" width="90" x="313" y="34">
            <parameter key="window_size" value="1"/>
            <parameter key="create_label" value="true"/>
            <parameter key="label_attribute" value="Label"/>
            <parameter key="horizon" value="0"/>
          </operator>
          <operator activated="true" class="split_data" compatibility="8.2.000" expanded="true" height="103" name="Split Data" width="90" x="447" y="85">
            <enumeration key="partitions">
              <parameter key="ratio" value="0.8"/>
              <parameter key="ratio" value="0.2"/>
            </enumeration>
          </operator>
          <operator activated="true" class="keras:sequential" compatibility="1.0.003" expanded="true" height="166" name="Keras Model (2)" width="90" x="581" y="34">
            <parameter key="input shape" value="(1,408)"/>
            <parameter key="loss" value="binary_crossentropy"/>
            <parameter key="optimizer" value="Adamax"/>
            <enumeration key="metric"/>
            <parameter key="epochs" value="500"/>
            <parameter key="batch size" value="1024"/>
            <enumeration key="callbacks"/>
            <parameter key="validation split" value="0.2"/>
            <parameter key="shuffle" value="true"/>
            <parameter key="fix seed" value="true"/>
            <process expanded="true">
              <operator activated="true" class="keras:recurrent_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Recurrent Layer (3)" width="90" x="313" y="34">
                <parameter key="no_units" value="32"/>
                <parameter key="activation" value="softplus"/>
                <parameter key="use_bias" value="false"/>
                <parameter key="kernel_initializer" value="Zeros()"/>
                <parameter key="recurrent_initializer" value="Zeros()"/>
                <parameter key="implementation" value="1"/>
              </operator>
              <operator activated="true" class="keras:core_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Core Layer (4)" width="90" x="581" y="34">
                <parameter key="activation_function" value="'softmax'"/>
                <parameter key="dims" value="1.1"/>
              </operator>
              <connect from_op="Add Recurrent Layer (3)" from_port="layers 1" to_op="Add Core Layer (4)" to_port="layers"/>
              <connect from_op="Add Core Layer (4)" from_port="layers 1" to_port="layers 1"/>
              <portSpacing port="sink_layers 1" spacing="0"/>
              <portSpacing port="sink_layers 2" spacing="0"/>

Answers

  • varunm1varunm1 Member Posts: 1,207 Unicorn

    @hermawan_eriadi

    Thanks a lot for your response. This fixed the error. I am working on classification. I see that you used dense layer with number of units '1' but the data has 2 classes which needs dense with 2. When I am trying to use 2 in dense layer, its stating that the data coming to dense is (1,) but the dense is expecting (2,). I see that you got performance results as well. Can you inform whether you used any other layers or just a recurrent and dense layer in keras model? Thanks 

    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • hermawan_eriadihermawan_eriadi Member Posts: 7 Contributor II
    I have used your data & your Keras model. So its exactly the same.
    Even the label is classification, but the number of unit in last Dense Layer is 1, because of the value is binominal, only T2 or C. So Keras think that data coming to Dense Layer is only 1.
    You can see others Keras example in repositories to make sure.

    I have used the some model that you make: a recurrent and a dense layer. I didn't make any change or additional. So you can follow the process easy.

    You can copy the xml code that I have shared and paste it to your xml panel than apply it. You will find the result will be exactly the same process with yours.

  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited November 2018
    @israel_jimenez Can you explain the issue solved related to our previous discussion?

    Also, any idea if we can use cross-validation for keras models (CNN, RNN )? @hermawan_eriadi.

    Also, I feel that using 1 in a dense layer is wrong as dense should have the number of units equal to the number of classes in the label. This is the reason the previously accepted solution is predicting only one class(reason for bad results) as the dense is 1 but when I use dense 2 it is throwing an error(stating dense expects input array (2,) but gets (1,)).

    I am also attaching the data file for your reference. The data set consists of 9 attributes X1 to X9 and a label column with two Labels H and UH.  I will be helpful if you code provide a sample xml for this classification. 
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited November 2018
    <?xml version="1.0" encoding="UTF-8"?><process version="9.0.003">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="9.0.003" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="retrieve" compatibility="9.0.003" expanded="true" height="68" name="Retrieve New_Rapid" width="90" x="112" y="85">
            <parameter key="repository_entry" value="../../../data/New_Rapid"/>
          </operator>
          <operator activated="true" class="multiply" compatibility="9.0.003" expanded="true" height="103" name="Multiply" width="90" x="246" y="85"/>
          <operator activated="true" class="select_attributes" compatibility="9.0.003" expanded="true" height="82" name="Select Attributes" width="90" x="380" y="34">
            <parameter key="attributes" value="X1|X2|X3|X4|X5|X6|X7|X8|X9"/>
          </operator>
          <operator activated="true" class="series:windowing" compatibility="7.4.000" expanded="true" height="82" name="Windowing" width="90" x="514" y="34">
            <parameter key="window_size" value="1"/>
            <parameter key="create_label" value="true"/>
            <parameter key="label_attribute" value="Label"/>
          </operator>
          <operator activated="true" class="concurrency:cross_validation" compatibility="9.0.003" expanded="true" height="145" name="Cross Validation" width="90" x="648" y="34">
            <parameter key="number_of_folds" value="5"/>
            <process expanded="true">
              <operator activated="true" class="keras:sequential" compatibility="1.0.003" expanded="true" height="166" name="Keras Model" width="90" x="313" y="34">
                <parameter key="input shape" value="(1,9)"/>
                <parameter key="loss" value="categorical_crossentropy"/>
                <parameter key="optimizer" value="Adam"/>
                <enumeration key="metric"/>
                <enumeration key="callbacks"/>
                <process expanded="true">
                  <operator activated="true" class="keras:conv_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Convolutional Layer" width="90" x="112" y="34">
                    <parameter key="filters" value="64"/>
                    <parameter key="kernel_size_2d" value="1.1"/>
                    <parameter key="kernel_size_3d" value="1.1.1"/>
                    <parameter key="strides_2d" value="1.1"/>
                    <parameter key="strides_3d" value="1.1.1"/>
                    <parameter key="padding_1d" value="1.1"/>
                    <parameter key="cropping_1d" value="1.1"/>
                    <parameter key="size_2d" value="2.2"/>
                    <parameter key="size_3d" value="2.2.2"/>
                    <parameter key="dilation_rate_2d" value="1.1"/>
                    <parameter key="dilation_rate_3d" value="1.1.1"/>
                    <parameter key="activation_function" value="'relu'"/>
                  </operator>
                  <operator activated="true" class="keras:pooling_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Pooling Layer" width="90" x="246" y="34">
                    <parameter key="pool_size_1d" value="1"/>
                    <parameter key="pool_size_2d" value="2.2"/>
                    <parameter key="pool_size_3d" value="2.2.2"/>
                    <parameter key="strides_1d" value="1"/>
                    <parameter key="strides_2d" value="2.2"/>
                    <parameter key="strides_3d" value="2.2.2"/>
                  </operator>
                  <operator activated="true" class="keras:core_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Core Layer" width="90" x="380" y="34">
                    <parameter key="layer_type" value="Dropout"/>
                    <parameter key="dims" value="1.1"/>
                  </operator>
                  <operator activated="true" class="keras:core_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Core Layer (2)" width="90" x="514" y="34">
                    <parameter key="layer_type" value="Flatten"/>
                    <parameter key="dims" value="1.1"/>
                  </operator>
                  <operator activated="true" class="keras:core_layer" compatibility="1.0.003" expanded="true" height="82" name="Add Core Layer (3)" width="90" x="648" y="34">
                    <parameter key="no_units" value="2"/>
                    <parameter key="activation_function" value="'relu'"/>
                    <parameter key="dims" value="1.1"/>
                  </operator>
                  <connect from_op="Add Convolutional Layer" from_port="layers 1" to_op="Add Pooling Layer" to_port="layers"/>
                  <connect from_op="Add Pooling Layer" from_port="layers 1" to_op="Add Core Layer" to_port="layers"/>
                  <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_op="Add Core Layer (3)" to_port="layers"/>
                  <connect from_op="Add Core Layer (3)" from_port="layers 1" to_port="layers 1"/>
                  <portSpacing port="sink_layers 1" spacing="0"/>
                  <portSpacing port="sink_layers 2" spacing="0"/>
                </process>
              </operator>
              <connect from_port="training set" to_op="Keras Model" to_port="training set"/>
              <connect from_op="Keras Model" from_port="model" to_port="model"/>
              <portSpacing port="source_training set" spacing="0"/>
              <portSpacing port="sink_model" spacing="0"/>
              <portSpacing port="sink_through 1" spacing="0"/>
            </process>
            <process expanded="true">
              <operator activated="true" class="keras:apply" compatibility="1.0.003" expanded="true" height="82" name="Apply Keras Model" width="90" x="45" y="34"/>
              <operator activated="true" class="performance" compatibility="9.0.003" expanded="true" height="82" name="Performance" width="90" x="179" y="34">
                <parameter key="use_example_weights" value="false"/>
              </operator>
              <connect from_port="model" to_op="Apply Keras Model" to_port="model"/>
              <connect from_port="test set" to_op="Apply Keras Model" to_port="unlabelled data"/>
              <connect from_op="Apply Keras Model" from_port="labelled data" to_op="Performance" to_port="labelled data"/>
              <connect from_op="Performance" from_port="performance" to_port="performance 1"/>
              <portSpacing port="source_model" spacing="0"/>
              <portSpacing port="source_test set" spacing="0"/>
              <portSpacing port="source_through 1" spacing="0"/>
              <portSpacing port="sink_test set results" spacing="0"/>
              <portSpacing port="sink_performance 1" spacing="0"/>
              <portSpacing port="sink_performance 2" spacing="0"/>
            </process>
          </operator>
          <connect from_op="Retrieve New_Rapid" from_port="output" to_op="Multiply" to_port="input"/>
          <connect from_op="Multiply" from_port="output 1" to_op="Select Attributes" to_port="example set input"/>
          <connect from_op="Select Attributes" from_port="example set output" to_op="Windowing" to_port="example set input"/>
          <connect from_op="Windowing" from_port="example set output" to_op="Cross Validation" to_port="example set"/>
          <connect from_op="Cross Validation" from_port="performance 1" 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>
    @hughesfleming68    any suggestion on this? attached data file in this. Having an error Error when checking target: expected dense_1 to have shape (2,) but got array with shape (1,) But my output classes are two which is the reason I gave dense value as 2.
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

Sign In or Register to comment.