Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
perceptualrobots committed Aug 7, 2024
1 parent 0a12d1e commit 8ab163e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions nbs/01_putils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@
"#| export\n",
"def get_abs_tol(key):\n",
" # dic = {'evolve': 0.01, 'ARC-evolve' : 0.01, 'ARC-display': 0.01, 'ARC': 0.01}\n",
" dic = { 'ARC-evolve' : 0.001, 'ARC-display': 0.1, 'ARC-change' : 0.001, 'ARC-zero': 0.01}\n",
" dic = { 'ARC-evolve' : 0.01, 'ARC-display': 0.1, 'ARC-change' : 0.01, 'ARC-zero': 0.01}\n",
"\n",
" # if key in dic:\n",
" return dic[key]\n",
Expand Down Expand Up @@ -1060,8 +1060,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"1.0033432499999968\n",
"2.0066864999999936\n",
"1.0082400500014046\n",
"2.016480100002809\n",
"2\n"
]
}
Expand Down
2 changes: 1 addition & 1 deletion nbs/14_helpers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
" if not float_list:\n",
" return True, {\"gradient\": None, \"mean\": None, \"std_dev\": None}\n",
"\n",
" gradient = np.gradient(float_list)\n",
" gradient = np.gradient(float_list).mean()\n",
" mean_value = np.mean(float_list)\n",
" std_dev = np.std(float_list)\n",
" first_value = float_list[0]\n",
Expand Down
2 changes: 1 addition & 1 deletion pct/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check_list_unchanged(float_list, rel_tol=1e-9, abs_tol=0.0):
if not float_list:
return True, {"gradient": None, "mean": None, "std_dev": None}

gradient = np.gradient(float_list)
gradient = np.gradient(float_list).mean()
mean_value = np.mean(float_list)
std_dev = np.std(float_list)
first_value = float_list[0]
Expand Down
2 changes: 1 addition & 1 deletion pct/putils.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def clip_value(val, range):
# %% ../nbs/01_putils.ipynb 43
def get_abs_tol(key):
# dic = {'evolve': 0.01, 'ARC-evolve' : 0.01, 'ARC-display': 0.01, 'ARC': 0.01}
dic = { 'ARC-evolve' : 0.001, 'ARC-display': 0.1, 'ARC-change' : 0.001, 'ARC-zero': 0.01}
dic = { 'ARC-evolve' : 0.01, 'ARC-display': 0.1, 'ARC-change' : 0.01, 'ARC-zero': 0.01}

# if key in dic:
return dic[key]
Expand Down

0 comments on commit 8ab163e

Please sign in to comment.