Skip to content

Commit

Permalink
Fixup y scale
Browse files Browse the repository at this point in the history
  • Loading branch information
ppigazzini committed Jan 22, 2025
1 parent 36dfa03 commit 5f3e6d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/fishtest/static/js/spsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ async function handleSPSA() {
textStyle: chartTextStyle,
gridlines: gridlinesStyle,
minorGridlines: minorGridlinesStyle,
title: "Parameter Value (% of step c)",
},
legend: {
position: "right",
Expand Down Expand Up @@ -160,7 +161,7 @@ async function handleSPSA() {
for (let i = 0; i < spsaHistory.length; i++) {
let c = [(i / (spsaHistory.length - 1)) * spsaIterRatio];
for (let j = 0; j < spsaParams.length; j++) {
c.push((d[j][i] / spsaParams[j].c) * 100);
c.push((d[j][i] / spsaHistory[i][j].c) * 100);
}
googleformat.push(c);
}
Expand Down Expand Up @@ -229,7 +230,7 @@ async function handleSPSA() {
for (let i = 0; i < spsaHistory.length; i++) {
let d = [(i / (spsaHistory.length - 1)) * spsaIterRatio];
for (let j = 0; j < spsaParams.length; j++) {
d.push((spsaHistory[i][j].theta / spsaParams[j].c) * 100);
d.push((spsaHistory[i][j].theta / spsaHistory[i][j].c) * 100);
}
googleformat.push(d);
}
Expand Down

0 comments on commit 5f3e6d1

Please sign in to comment.