Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-2497

Cannot import keras2DML module in python

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • SystemML 1.2
    • Not Applicable
    • Parser

    Description

      Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)  
      [GCC 7.2.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from systemml.mllearn import Keras2DML
      Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       File "/root/anaconda3/lib/python3.6/site-packages/systemml/mllearn/_init_.py", line 45, in <module>
         from .estimators import *
       File "/root/anaconda3/lib/python3.6/site-packages/systemml/mllearn/estimators.py", line 917
         def _init_(self, sparkSession, keras_model, input_shape, transferUsingDF=False, load_keras_weights=True, weights=None, lab
      els=None, batch_size=64, max_iter=2000, test_iter=10, test_interval=500, display=100, lr_policy="step", weight_decay=5e-4, regul
      arization_type="L2"):
         ^
      SyntaxError: import * only allowed at module level
      >>>

      Attachments

        Activity

          People

            Unassigned Unassigned
            amodwani Amod Wani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: