Skip to content

Commit

Permalink
* Fixes a bug for logistic regression in which an outcome attribute n…
Browse files Browse the repository at this point in the history
…ame requires backquotes in a formula that converts categories to 0 and 1.
  • Loading branch information
bfinzer committed Jun 5, 2024
1 parent 565a844 commit 54fb6e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eepsmedia/plugins/testimate/src/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ connect = {
updateDatasetForLogisticGroups: async function (iValue, iAxis) {

const theVariable = (iAxis === "X") ? data.xAttData.name : data.yAttData.name;
const theFormula = `if (${theVariable} = "${iValue}", 1, 0)`;
const theFormula = `\`${theVariable}\` = "${iValue}" ? 1 : 0`;

const newAttributeInfo = {
name: testimate.constants.logisticGroupAttributeName,
Expand Down Expand Up @@ -538,4 +538,4 @@ connect = {
}


}
}
4 changes: 2 additions & 2 deletions eepsmedia/plugins/testimate/src/testimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const testimate = {

constants: {
pluginName: `testimate`,
version: `2024g`,
version: `2024h`,
dimensions: {height: 555, width: 444},

emittedDatasetName: `tests and estimates`, // for receiving emitted test and estimate results
Expand All @@ -237,4 +237,4 @@ const testimate = {
valueDictionary : {}, // records the number in the "value" box
}
}
}
}

0 comments on commit 54fb6e3

Please sign in to comment.