Skip to content

Instantly share code, notes, and snippets.

@Muhammad-Yunus
Created April 15, 2020 05:03
Show Gist options
  • Select an option

  • Save Muhammad-Yunus/b7cfe9ff6114a2cff0592bbbad1d784c to your computer and use it in GitHub Desktop.

Select an option

Save Muhammad-Yunus/b7cfe9ff6114a2cff0592bbbad1d784c to your computer and use it in GitHub Desktop.
def test(x_test, w, v, b_j, b_k):
z_prediction = np.dot(x_test, np.transpose(w)) + b_j
f_z_prediction = f_activation(z_prediction)
y_prediction = np.dot(f_z_prediction, np.transpose(v)) + b_k
f_y_prediction = f_activation_output(y_prediction)
return f_y_prediction
y_prediction_test = np.zeros(len(x), np.float32)
y_prediction_test = test(x, w, v, b_j, b_k)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment