avi-pipable commited on
Commit
b0d0b78
·
verified ·
1 Parent(s): f4b05e8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -6
README.md CHANGED
@@ -94,8 +94,8 @@ pip install transformers
94
 
95
  ### Prompt
96
  ```python
97
- prompt = f"""<code>{code}</code>
98
- <question>Document the code above</question>
99
  <doc>"""
100
  ```
101
 
@@ -117,7 +117,7 @@ tokenizer.decode(outputs[0], skip_special_tokens=True).split('<doc>')[-1].split(
117
 
118
  ### Code
119
  ```python
120
- <code>
121
  ###########################
122
  # Generate Analytical Model
123
  ###########################
@@ -197,9 +197,10 @@ def run(np_array_A_matrix):
197
  np_array_perron_frobenius_vector, np_array_perron_frobenius_matrix = get_np_array_perron_frobenius_matrix(int_num_states, np_array_P_matrix)
198
  np_array_Z_matrix = get_np_array_Z_matrix(int_num_states, np_array_P_matrix, np_array_perron_frobenius_matrix)
199
  np_array_H_matrix = get_np_array_H_matrix(int_num_states, np_array_Z_matrix, np_array_perron_frobenius_vector)
200
- return(np_array_H_matrix)</code>
201
- <question>Document the python code above.
202
- </question><doc>
 
203
  ```
204
 
205
  ### Response
 
94
 
95
  ### Prompt
96
  ```python
97
+ prompt = f"""<function_code>{code}</function_code>
98
+ <question>Give one line description of the python code above in natural language.</question>
99
  <doc>"""
100
  ```
101
 
 
117
 
118
  ### Code
119
  ```python
120
+ <function_code>
121
  ###########################
122
  # Generate Analytical Model
123
  ###########################
 
197
  np_array_perron_frobenius_vector, np_array_perron_frobenius_matrix = get_np_array_perron_frobenius_matrix(int_num_states, np_array_P_matrix)
198
  np_array_Z_matrix = get_np_array_Z_matrix(int_num_states, np_array_P_matrix, np_array_perron_frobenius_matrix)
199
  np_array_H_matrix = get_np_array_H_matrix(int_num_states, np_array_Z_matrix, np_array_perron_frobenius_vector)
200
+ return(np_array_H_matrix)
201
+ </function_code>
202
+ <question>Give one line description of the python code above in natural language.</question>
203
+ <doc>
204
  ```
205
 
206
  ### Response