dev-QQq
方佳 博 2 years ago
parent 1e67bf1923
commit 19b9205fef

@ -565,14 +565,9 @@ const computation = () => {
if (input6.value.length === 1) { if (input6.value.length === 1) {
tableData2.value.forEach((item) => { tableData2.value.forEach((item) => {
sendData.y.push(item[input5.value[0]]); sendData.y.push(item[input5.value[0]]);
sendData.x.push([item[input6.value[0]]]); sendData.x.push(item[input6.value[0]]);
}); });
} else { }
tableData2.value.forEach((item) => {
sendData.y.push(item[input5.value[0]]);
sendData.x.push([item[input6.value[0]], item[input6.value[1]]]);
});
}
API.logisticRegression(sendData).then((res) => { API.logisticRegression(sendData).then((res) => {
tableLabel2.length = 0; tableLabel2.length = 0;
@ -628,9 +623,8 @@ const Forecasting = () => {
// if (nowData.value.type === "") { // if (nowData.value.type === "") {
const sendData = { const sendData = {
intercept: nowData.value.intercept, intercept: nowData.value.intercept,
type: nowData.value.type,
slope: nowData.value.slope, slope: nowData.value.slope,
lx: formInline2.user, x: formInline2.user,
}; };
API.logisticRegressionPrediction(sendData).then((res) => { API.logisticRegressionPrediction(sendData).then((res) => {
dialogVisible2.value = false; dialogVisible2.value = false;

Loading…
Cancel
Save