Skip to content

Commit

Permalink
Merge pull request #38 from AutoResearch/fix-observations-to-experime…
Browse files Browse the repository at this point in the history
…nt-data

Fix observations to experiment data
  • Loading branch information
younesStrittmatter authored Jul 26, 2024
2 parents 5d628f6 + 68ac55a commit d04b439
Show file tree
Hide file tree
Showing 9 changed files with 140 additions and 482 deletions.
14 changes: 7 additions & 7 deletions docs/Examples/Economics/Expected-Value-Theory.ipynb

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions docs/Examples/Economics/Prospect-Theory.ipynb

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions docs/Examples/Psychology/Luce-Choice-Ratio.ipynb

Large diffs are not rendered by default.

482 changes: 70 additions & 412 deletions docs/Examples/Psychophysics/Weber-Fechner-Law.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def plotter(model=None):
X[:, 2] = v_b
X[:, 3] = p_b

y = ground_truth(X)
y = ground_truth(X)[variables.dependent_variables[0].name]
colors = mcolors.TABLEAU_COLORS
col_keys = list(colors.keys())
plt.plot(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def plotter(model=None):
X[:, 2] = v_b
X[:, 3] = p_b

y = ground_truth(X)
y = ground_truth(X)[variables.dependent_variables[0].name]
colors = mcolors.TABLEAU_COLORS
col_keys = list(colors.keys())
plt.plot(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def plotter(
X[:, 2] = similarity_B1
X[:, 3] = similarity_B2

y = ground_truth(X)
y = ground_truth(X)[choose_A1.name]
plt.plot(
similarity_A1.reshape((len(similarity_A1), 1)),
y,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def plotter(
colors = mcolors.TABLEAU_COLORS
col_keys = list(colors.keys())
X = domain()
y = ground_truth(X)
y = ground_truth(X)[dv1.name]
plt.plot(X, y, label="Original", c=colors[col_keys[0]])
if model is not None:
y = model.predict(X)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def plotter(
S0 = S0_value + np.zeros(delta_S.shape)
S1 = S0 + delta_S
X = np.array([S0, S1]).T
y = ground_truth(X)
y = ground_truth(X)[dv1.name]
plt.plot(
delta_S,
y,
Expand Down

0 comments on commit d04b439

Please sign in to comment.