-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unify model zoo implementation of SQLFlow and ElasticDL #22
Comments
|
Either to change SQLFlow or ElasticDL to use the same name should be fine.
You're right. |
ps: also need to support |
By changing the default function name to define optimizer and loss from
Change the name back and the test passes, It seems we can not use the name To support both Keras functional API and subclass API, I propose to use the unified scheme in PR: #25, the SQL statement
|
@typhoonzero Why is |
Thanks for reminding, I'll check out how ElasticDL works today. |
Update: Will remove ps: we can get the python module object from the class by: https://stackoverflow.com/questions/7027848/getting-corresponding-module-from-function |
Related design: sql-machine-learning/sqlflow#949
We should implement the model zoo using the same scheme in SQLFlow and ElasticDL so that all models can be applied to SQLFlow and ElasticDL. Below are things to do:
default_optimizer
, ElasticDL useoptimizer
codegen
for generate adataset_fn
function, how to use thedataset_fun
defined in model zoo: https://github.com/sql-machine-learning/elasticdl/blob/develop/model_zoo/cifar10_functional_api/cifar10_functional_api.py#L117PredictionOutputsProcessor
: https://github.com/sql-machine-learning/elasticdl/blob/develop/model_zoo/cifar10_functional_api/cifar10_functional_api.py#L153, https://github.com/sql-machine-learning/models/blob/develop/sqlflow_models/dnnclassifier.py#L40eval_metrics_fn
function in the model definition).The text was updated successfully, but these errors were encountered: