Skip to content

Commit

Permalink
pasted change (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaschuld authored and josh146 committed Nov 7, 2019
1 parent 106efb2 commit 09aa903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions implementations/tutorial_variational_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def cost(var, X, Y):

def get_angles(x):

beta0 = 2 * np.arcsin(np.sqrt(x[1]) ** 2 / np.sqrt(x[0] ** 2 + x[1] ** 2 + 1e-12))
beta1 = 2 * np.arcsin(np.sqrt(x[3]) ** 2 / np.sqrt(x[2] ** 2 + x[3] ** 2 + 1e-12))
beta0 = 2 * np.arcsin(np.sqrt(x[1] ** 2) / np.sqrt(x[0] ** 2 + x[1] ** 2 + 1e-12))
beta1 = 2 * np.arcsin(np.sqrt(x[3] ** 2) / np.sqrt(x[2] ** 2 + x[3] ** 2 + 1e-12))
beta2 = 2 * np.arcsin(
np.sqrt(x[2] ** 2 + x[3] ** 2) / np.sqrt(x[0] ** 2 + x[1] ** 2 + x[2] ** 2 + x[3] ** 2)
)
Expand Down

0 comments on commit 09aa903

Please sign in to comment.