Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10630

Failed to run python code: copy_string=history.history.keys()[0]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.20/02
    • Fix Version/s: 6.22/00, 6.21/01, 6.20/04
    • Component/s: TMVA
    • Labels:
      None
    • Environment:

      linux CentOS 7
      python3

    • Development:

      Description

      in tmva/pymva/src/MethodPyKeras.cxx when run with python3

      Output:

      Epoch 00005: val_loss improved from 0.62125 to 0.60703, saving model to dataset/weights/TrainedModel_PyKeras.h5
      Getting his:0
      <WARNING> : Failed to run python code: copy_string=history.history.keys()[0]
      <WARNING> : Python error message:
      Traceback (most recent call last):
      {{ File "<string>", line 1, in <module>}}
      TypeError: 'dict_keys' object does not support indexing
      <FATAL> : Failed to run python code
      ***> abort program execution

      In python3  'dict_keys' object does not support indexing (it is not a list), could be corrected by replacing history.history.keys()[%d] in line tmva/pymva/src/MethodPyKeras.cxx: line 471 with list(history.history)[%d]

        Attachments

          Activity

            People

            • Assignee:
              moneta Lorenzo Moneta
              Reporter:
              9b44d78f57d9a7d36c6d Viatcheslav Sharyy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: