whb 7 months ago
commit bba991858e

@ -148,7 +148,8 @@ public class StuPythonController {
public ResultEntity comment(@RequestBody JSONObject text) {
// System.out.println(text);
String testText = text.getString("text");
String code = "# 导入所需依赖\n" +
String code = "# -*- coding: utf-8 -*-\n" +
"# 导入所需依赖\n" +
"import pandas as pd\n" +
"import paddle\n" +
"from paddlenlp.transformers import SkepTokenizer, SkepModel\n" +

@ -29,7 +29,4 @@ public interface StuSpendingLevelMapper {
int updateByPrimaryKeySelective(StuSpendingLevel record);
int updateByPrimaryKey(StuSpendingLevel record);
// void addList(@Param("courseNameLists")List<StuSpendingLevel> stuSpendingLevels);
}

@ -162,13 +162,13 @@ public class Apriori {
}
str = C.toString();
System.out.println("候选"+t+"项集C: \n"+C);
// System.out.println("候选"+t+"项集C: \n"+C);
// 二、剪枝步
pruning(C, L,min_support);
System.out.println("频繁"+t+"项集L: \n"+L+"\n");
// System.out.println("频繁"+t+"项集L: \n"+L+"\n");
str = L.toString();
System.out.println("===");
// System.out.println("===");
L_ALL.putAll(L);
}
return L_temp;

@ -225,11 +225,4 @@
consumer_goods = #{consumerGoods,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<!-- <insert id="addList">-->
<!-- INSERT INTO stu_spending_level (id, gender, age, annual_income, spending_score)-->
<!-- VALUES-->
<!-- <foreach collection="stuSpendingLevels" item="stuSpendingLevel" separator=",">-->
<!-- (#{stuSpendingLevel.id}, #{stuSpendingLevel.gender}, #{stuSpendingLevel.age}, #{stuSpendingLevel.annualIncome}, #{stuSpendingLevel.spendingScore})-->
<!-- </foreach>-->
<!-- </insert>-->
</mapper>
Loading…
Cancel
Save