You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "khaled almgren (Jira)" <ji...@apache.org> on 2019/10/17 11:14:00 UTC

[jira] [Created] (SYSTEMML-2532) NameError: name 'keras' is not defined

khaled almgren created SYSTEMML-2532:
----------------------------------------

             Summary: NameError: name 'keras' is not defined
                 Key: SYSTEMML-2532
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-2532
             Project: SystemML
          Issue Type: Bug
            Reporter: khaled almgren


Dear, 

I tried to use systeml to run a keras model as follows:

....

model.compile(optimizer= adam,
 loss = 'binary_crossentropy',

keras.summary()
 
import systemml as sml
import keras

from systemml.mllearn import Keras2DML

from systemml import MLContext, dml, dmlFromResource, dmlFromFile, dmlFromUrl

sysml_model = Keras2DML(spark, model,input_shape=count)

sysml_model.fit(X_train, y_train)
sysml_model.score(X_test, y_test)

 

However, it shows an error when running:

sysml_model = Keras2DML(spark, model,input_shape=count)

in estimators. py:

in __init__(self, sparkSession, keras_model, input_shape, transferUsingDF, load_keras_weights, weights, labels, batch_size, max_iter, test_iter, test_interval, display, lr_policy, weight_decay, regularization_type)

NameError: name 'keras' is not defined



--
This message was sent by Atlassian Jira
(v8.3.4#803005)