<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 This is an example notebook
The main purpose of this notebook is to have something to convert with gitnb.  There is nothing interesting to see here. In order to make this point perfectly clear, I will start with some difficult math...
Step1:  some more code blocks...
Step2:  Here is a Raw NB Convert block
<ASSISTANT_TASK:>
Python Code:
1+1
Explanation: This is an example notebook
The main purpose of this notebook is to have something to convert with gitnb.  There is nothing interesting to see here. In order to make this point perfectly clear, I will start with some difficult math...
End of explanation
import numpy as np
eps=1e-10
def precision(v,p):
    v=np.array(v)
    p=np.array(p)
    tpa=[pred*int(eq) for (pred,eq) in zip(p,np.equal(v,p))]
    fpa=[pred*int(not eq) for (pred,eq) in zip(p,np.equal(v,p))]
    tp=sum(tpa)
    fp=sum(fpa)
    return tp/(fp+tp+eps)
def recall(v,p):
    v=np.array(v)
    p=np.array(p)
    tpa=[pred*int(eq) for (pred,eq) in zip(p,np.equal(v,p))]
    fna=[(1-pred)*int(not eq) for (pred,eq) in zip(p,np.equal(v,p))]
    tp=sum(tpa)
    fn=sum(fna)
    return tp/(fn+tp+eps)
def f2(a,b):
    pc=precision(a,b)
    rc=recall(a,b)
    return 5 * pc * rc / ((4*pc) + rc + eps)
a=[1,1,0,1,1]
b=[1,1,1,0,0]
f2(a,b)
Explanation: some more code blocks...
End of explanation
2+2
Explanation: Here is a Raw NB Convert block
End of explanation
<END_TASK>