In [ ]:
%%sh
cat << EOF > hw6_answers.py
import numpy as np
import math as ma
EOF
In [2]:
%%sh
cat << EOF >> hw6_answers.py
def variable_helper(): # add your arguments!
pass # replace this line with your code for question 1
EOF
In [3]:
%%sh
cat << EOF >> hw6_answers.py
def get_categories(): # add your arguments!
pass # replace this line with your code for question 2
EOF
In [4]:
%%sh
cat << EOF >> hw6_answers.py
def code_shift(): # add your arguments!
pass # replace this line with your code for question 3
EOF
In [5]:
%%sh
cat << EOF >> hw6_answers.py
def rating_confusion(): # add your arguments!
pass # replace this line with your code for question 4
EOF
In [6]:
%%sh
cat << EOF >> hw6_answers.py
def prediction_metrics(): # add your arguments!
pass # replace this line with your code for question 5
EOF