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
Add support for keras layer DenseFeatures #2443
Comments
Will this be part of any upcoming tfjs release? |
@caisq I don't think anyone is actively working on this. Mind if I add a contributions welcome tag here? |
@tafsiri Please go ahead. |
For any interested, a workaround is to freeze the model. That way you can use DenseFeatures and give predictions in tfjs:
and then
|
@blidblid, For some reasons suggested workaround does not apply for my model with the error: Meanwhile I have started porting It seems to be excessive amount of work, since not only @tafsiri, I tried to create branch for this on tfjs, but git did not allow me that, so I created a fork. Could you please check out if this is not the right place to do, I am quite new to contributions. Thank you! |
hey @blidblid in which version of tensorflow have you tested this trick? |
Not all feature columns seem to work with this method. I had to use |
Hi, @blidblid Apologize for the delayed response and It seems like we haven't implemented this feature request for If someone wants to contribute for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you. |
Closing as stale. Please @mention us if this needs more attention. |
TensorFlow.js version
1.3.2
Browser version
Chome 78.0.3904.108
Describe the feature request
Add support for the keras layer DenseFeatures.
Code to reproduce the bug / link to feature request
Step 1:
Create a model in Python using the DenseFeatures layer.
Step 2:
Train, fit and then save the model using
tfjs.converters.save_keras_model(model, 'path_to_model')
Step 3:
Load the model into tfjs:
tf.loadLayersModel('./model.json');
It will throw:
Error: Uncaught (in promise): Error: Unknown layer: DenseFeatures.
The text was updated successfully, but these errors were encountered: