|
|
|
|
@ -567,14 +567,9 @@ const computation = () => {
|
|
|
|
|
if (input6.value.length === 1) {
|
|
|
|
|
tableData2.value.forEach((item) => {
|
|
|
|
|
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) => {
|
|
|
|
|
tableLabel2.length = 0;
|
|
|
|
|
@ -630,9 +625,8 @@ const Forecasting = () => {
|
|
|
|
|
// if (nowData.value.type === "逻辑回归") {
|
|
|
|
|
const sendData = {
|
|
|
|
|
intercept: nowData.value.intercept,
|
|
|
|
|
type: nowData.value.type,
|
|
|
|
|
slope: nowData.value.slope,
|
|
|
|
|
lx: formInline2.user,
|
|
|
|
|
x: formInline2.user,
|
|
|
|
|
};
|
|
|
|
|
API.logisticRegressionPrediction(sendData).then((res) => {
|
|
|
|
|
dialogVisible2.value = false;
|
|
|
|
|
|