-
Notifications
You must be signed in to change notification settings - Fork 115
Custom model changes needed to unify with SQLFlow model zoo #1476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Well, I'll consider about this. It's true that the
Is it possible to test a model using MaxCompute as the dataset, so that the |
I think it should be auto generated by SQFLow instead since ElasticDL's model definition must contain information like feature column names and label column name, which should be written by the user as part of |
@terrytangyuan The problem is if we want to involve many model developers to contribute models, the |
The order of |
@typhoonzero and I synced offline. To summarize, we will:
|
@typhoonzero This should be fixed by #1490. Please test to see if it works now. |
@typhoonzero This can be closed now, right? |
Background
Unify model zoo implementation of SQLFlow and ElasticDL: sql-machine-learning/models#22
WIP PR: sql-machine-learning/models#27
Custom Model Requirements for Unifying ModelZoo
feature_columns
argument when initializing a model.eval_metrics_fn
, so that this function is not "required" when writing a custom model definition.loss(output, labels)
function can not be reused inkerasmodel.compile
, should be compatible with keras loss functions, like:keras.losses.mean_squared_error(y_true, y_pred)
: https://keras.io/losses/dataset_fn
is still needed when reading data from MaxCompute: https://github.com/sql-machine-learning/elasticdl/blob/develop/model_zoo/odps_iris_dnn_model/odps_iris_dnn_model.pyThe text was updated successfully, but these errors were encountered: