|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<!-- <el-scrollbar ref="scrollbar" height="800px"> -->
|
|
|
|
|
<div class="main-top">
|
|
|
|
|
<span style="font-weight: bold; font-size: 18px; color: #3596eb">任务描述</span>
|
|
|
|
|
<p style="font-weight: 400; font-size: 12px; color: #e6e6e6">(给出任务清单参考,做哪些数据的统计分析)Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget.</p>
|
|
|
|
|
<p style="font-weight: 400; font-size: 12px; color: #e6e6e6">使用“销售预测数据”,建立回归模型,并预测销量是84610下的销售额,最后提交实训任务。</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="main-but">
|
|
|
|
|
<el-button @click="runResultShow = true">
|
|
|
|
|
@ -324,17 +324,41 @@ const formInline3 = reactive({
|
|
|
|
|
});
|
|
|
|
|
const loading1 = ref(false);
|
|
|
|
|
const task = () => {
|
|
|
|
|
let errorNumber=0
|
|
|
|
|
for (let key in formInline3) {
|
|
|
|
|
if (formInline3[key] == "") {
|
|
|
|
|
proxy.$modal.msgWarning("请填写完整!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(input4.value==="线性回归"){
|
|
|
|
|
if(formInline3.value1!==tableData3.value[0].intercept){
|
|
|
|
|
errorNumber++
|
|
|
|
|
}
|
|
|
|
|
if(formInline3.value2!==tableData3.value[0].slopes){
|
|
|
|
|
errorNumber++
|
|
|
|
|
}
|
|
|
|
|
if(formInline3.value3!==predictionResults.value){
|
|
|
|
|
errorNumber++
|
|
|
|
|
}
|
|
|
|
|
}else if(input4.value==="Logistic逻辑回归"){
|
|
|
|
|
if(formInline3.value1!==tableData3.value[0].intercept){
|
|
|
|
|
errorNumber++
|
|
|
|
|
}
|
|
|
|
|
if(formInline3.value2!==tableData3.value[0].slope){
|
|
|
|
|
errorNumber++
|
|
|
|
|
}
|
|
|
|
|
if(formInline3.value3!==predictionResults.value){
|
|
|
|
|
errorNumber++
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
errorNumber=3
|
|
|
|
|
}
|
|
|
|
|
portraitModel
|
|
|
|
|
.submit({
|
|
|
|
|
userId: JSON.parse(getUserInfo()).userId,
|
|
|
|
|
taskName: "回归分析",
|
|
|
|
|
numberOfErrors: 0,
|
|
|
|
|
numberOfErrors: errorNumber,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
dialogVisible.value = false;
|
|
|
|
|
@ -377,6 +401,9 @@ onMounted(() => {
|
|
|
|
|
const optionData = () => {
|
|
|
|
|
API.viewingMetrics({ userId: JSON.parse(getUserInfo()).userId, tableName: input.value, algorithmName: "回归分析" }).then((res) => {
|
|
|
|
|
tableData.value = [];
|
|
|
|
|
input5.value=[]
|
|
|
|
|
input6.value=[]
|
|
|
|
|
input3.value=""
|
|
|
|
|
res.data.forEach((element) => {
|
|
|
|
|
tableData.value.push({
|
|
|
|
|
text: element,
|
|
|
|
|
@ -631,8 +658,8 @@ const startOver = () => {
|
|
|
|
|
input2.value = "";
|
|
|
|
|
input3.value = "";
|
|
|
|
|
input4.value = "";
|
|
|
|
|
input5.value = "";
|
|
|
|
|
input6.value = "";
|
|
|
|
|
input5.value = [];
|
|
|
|
|
input6.value = [];
|
|
|
|
|
flagColumn.value = false;
|
|
|
|
|
tableLabel.length = 0;
|
|
|
|
|
tableLabel2.length = 0;
|
|
|
|
|
|