Comments (6)
Hi,
Cool! Thanks.
Then, calling self.save
, after the call to _save_inner_model
in tensorflow_model.py
, hopefully would be a quick fix. Please correct me if I am wrong.
from code2vec.
Hi,
Cool! Thanks.
Then, callingself.save
, after the call to_save_inner_model
intensorflow_model.py
, hopefully would be a quick fix. Please correct me if I am wrong.
This option works fine for me.
from code2vec.
Hi,
The file dictionaries.bin
is supposed to be saved every time we save the model, i.e., at the end of every epoch. We have recently made some major refactoring which might have broken it.
As an immediate step, you can try going back to commit: 9789cfa
@eladn - if I understand correctly, there is no call to self.save
from tensorflow_model.py
nor from model_base.py
. The function save_inner_model(..) is only saving the model weights but not the dictionaries. Can you take a look?
from code2vec.
Right,
but it is even better saving the dictionaries after every epoch here, because maybe you would want to stop training manually before the model stops itself.
Maybe it will be best to save the dictionaries even before starting training, right after creating the vocabularies here.
You can change that locally as a quick fix. I am waiting for @eladn 's response and we'll push a fix.
Sorry for the inconvenience and thanks for letting us know.
from code2vec.
Great! I'm glad to hear. Let me know if you have any other questions.
from code2vec.
Thanks for letting us know. I made a PR fixing this issue as suggested above.
from code2vec.
Related Issues (20)
- Original dataset with unprocessed `.java` sources HOT 2
- Training from scratch issue HOT 4
- Trainning data HOT 2
- Converting Vector back to Contexts HOT 2
- Preprocessor step disposing numbers in (variable) names HOT 4
- How to release a model HOT 1
- Repeating metric values HOT 3
- Model for other task. HOT 2
- I run this "python3 code2vec.py --load models/dataset/saved_model_iter2 --test data/dataset/dataset.test.c2v" and I got this issue! is there any help? HOT 5
- I don't know how to apply the output files created by astminer. HOT 1
- Can I get the exact values for the context HOT 2
- Matrix size-incompatible during using sample model HOT 2
- bias-variance tradeoff HOT 1
- Application to real case study HOT 11
- Javascript Benchmark with Code2Vec HOT 3
- There is no entire model and model weights file to load HOT 4
- How to create code embeddings from Java codebase and store it in a vector database? HOT 4
- Issues encountered when processing big data HOT 1
- File Not found error HOT 2
- Queries regarding Java Extractor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code2vec.