Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

my_predict.sh 572 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
  1. #!/usr/bin/env bash
  2. ##############################################
  3. # Make predictions for files in pred_files directory
  4. # cli.jar is in cd2vec directory and output (4 files from JB cli, deleted after all)
  5. # for another model change /my_first_model/saved_model
  6. java -jar cd2vec/cli.jar code2vec --lang py --project pred_files --output cd2vec --maxH 8 --maxW 1
  7. python3 code2vec.py --framework keras --load models/my_first_model/saved_model --predict > prediction.txt
  8. rm -v cd2vec/node_types.csv cd2vec/path_contexts_*.csv cd2vec/paths.csv cd2vec/tokens.csv
  9. rm -d cd2vec/py
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...