Code Monkey home page Code Monkey logo

Comments (5)

urialon avatar urialon commented on July 28, 2024

Hi Nitish,
There is no need to rename anything. This is probably the cause.
A saved model consists of several files having the same prefix, which is "saved_model_iter8.release" in this case:
saved_model_iter8.release.index
saved_model_iter8.release.data-00000-of-00001
saved_model_iter8.release.meta
and an additional dictionaries.bin file.

When you load a trained model for evaluation, as in:
python3 code2vec.py --load models/java14_model/saved_model_iter8.release --test data/java14m/java14m.test.c2v

You just need to specify the prefix of saved_model_iter8.release, without the .meta, .index, and .data-0000... suffixes.

Let me know if it works now.

from code2vec.

nitishMehrotra avatar nitishMehrotra commented on July 28, 2024

It worked Uri. Thanks a lot!

from code2vec.

urialon avatar urialon commented on July 28, 2024

I'm happy to hear that.
Let me know if there's any other issue.

from code2vec.

AisheeDasgupta avatar AisheeDasgupta commented on July 28, 2024

i get no such file or directory error in the path "data/java14m/java14m.test.c2v"
I think this file is not provided in the repository
Thanks in advance

from code2vec.

urialon avatar urialon commented on July 28, 2024

@AisheeDasgupta
See here:
https://github.com/tech-srl/code2vec#download-our-preprocessed-dataset-of-14m-examples-compressed-63gb-extracted-32gb

from code2vec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.