Skip to content

Commit

Permalink
更新dataminig
Browse files Browse the repository at this point in the history
  • Loading branch information
estea8968 committed Feb 4, 2024
1 parent 91b91c0 commit e548f6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google" value="notranslate">
<link rel="shortcut icon" href="static/favicon.ico">
<title>OSEP_scratch 1130204</title>
<title>OSEP_scratch 1130205</title>

</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion app/lib.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -399894,7 +399894,7 @@ var dataMining = /*#__PURE__*/function () {
}, {
key: "correctRate",
value: function correctRate(args) {
return (this.treeJsonmodel.gain * 100).toFixed(2);
if (this.treeJsonmodel === undefined) return "";else return (this.treeJsonmodel.gain * 100).toFixed(2);
} // evaluateDecisionTreeModel(args) {
// var accuracy = this.dt.evaluate(this.test_data);
// console.log("accuracy:",accuracy);
Expand Down
2 changes: 1 addition & 1 deletion app/lib.min.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ class dataMining {
}

correctRate(args) {
return ((this.treeJsonmodel.gain) * 100).toFixed(2);
if(this.treeJsonmodel === undefined) return "";
else return ((this.treeJsonmodel.gain) * 100).toFixed(2);
}

// evaluateDecisionTreeModel(args) {
Expand Down

0 comments on commit e548f6c

Please sign in to comment.