systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "khaled almgren (Jira)" <j...@apache.org>
Subject [jira] [Created] (SYSTEMML-2532) NameError: name 'keras' is not defined
Date Thu, 17 Oct 2019 11:14:00 GMT
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)

Mime
View raw message