systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "khaled almgren (Jira)" <>
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
             Project: SystemML
          Issue Type: Bug
            Reporter: khaled almgren


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


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

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), 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,

NameError: name 'keras' is not defined

This message was sent by Atlassian Jira

View raw message