Files
Machine-Learning-Collection/ML/algorithms/neuralnetwork/__pycache__/utils.cpython-37.pyc

16 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-01-30 21:49:15 +01:00
B
<00><><EFBFBD>^<00>@s.dZddlZddlmZddd<05>Zdd<07>ZdS) z<>
These were (shamelessly) taken from cs231n course github code.
I believe these were coded by Andrej Karpathy so credit goes to him
for coding these.
<EFBFBD>N<>c Cs<>d}d}t<00>|||f<02>}t<00>||<00>}x<>t|<01>D]<5D>}t||||d<00>}t<00>dd|<00>}t<00>|d|dd|<00>tj<04>|<00>d}tj|t<00>|<08>|t<00>|<08>f||<|||<q2Wt j
|dd<00>df|dd<00>df|dt j j d<08>t <09> <0A>||fS) N<>dr<00>r<00>g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<3F>()<03>c<>s<>cmap)<0E>np<6E>zeros<6F>range<67>linspace<63>random<6F>randn<64>c_<63>sin<69>cos<6F>plt<6C>scatter<65>cm<63>Spectral<61>show) <09>N<>K<>D<>X<>y<>j<>ix<69>r<>t<>r!<00>,C:\Users\aladd\Desktop\ML_videos\NN\utils.py<70>create_dataset
s*& 0r#cCsd}|dd<00>df<00><00>d|dd<00>df<00><01>d}}|dd<00>df<00><00>d|dd<00>df<00><01>d}}t<02>t<02>|||<04>t<02>|||<04><03>\} }
tj| <09><06>|
<EFBFBD><06>f} |<02>| |<03>\} } tj| dd<04>} | <0A> | j
<EFBFBD>} t j | |
| t j jdd<06>t j|dd<00>df|dd<00>df|dt j jd<08>dS) Ng{<14>G<EFBFBD>z<EFBFBD>?rr)<01>axisg<73><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?)r <00>alphar)rrr )<10>min<69>maxr
<00>meshgrid<69>aranger<00>ravel<65> forward_prop<6F>argmax<61>reshape<70>shaper<00>contourfrrr)rr<00>model<65>
parameters<EFBFBD>h<>x_min<69>x_max<61>y_min<69>y_max<61>xx<78>yy<79>points<74>_<>Zr!r!r"<00> plot_contours22 r<)r)<08>__doc__<5F>numpyr
<00>matplotlib.pyplot<6F>pyplotrr#r<r!r!r!r"<00><module>s