Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qpme-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Descartes Research
qpme-core
Commits
2aa07ec0
Commit
2aa07ec0
authored
Apr 14, 2020
by
Simon Trapp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
performance improvement for WEKA
parent
0d8574cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sources/qpme.simqpn.kernel/src/de/tud/cs/simqpn/kernel/loading/distributions/WEKA.java
...c/de/tud/cs/simqpn/kernel/loading/distributions/WEKA.java
+4
-3
No files found.
sources/qpme.simqpn.kernel/src/de/tud/cs/simqpn/kernel/loading/distributions/WEKA.java
View file @
2aa07ec0
...
...
@@ -53,6 +53,7 @@ public class WEKA implements AbstractDistribution {
Classifier
wekaModel
;
Instances
dataStructure
=
null
;
Instance
dataPoint
;
public
WEKA
(
Classifier
model
)
{
if
(
model
==
null
)
...
...
@@ -67,9 +68,6 @@ public class WEKA implements AbstractDistribution {
if
(
dataStructure
==
null
)
initializeDataStructure
(
tokenNumbers
.
length
);
Instance
dataPoint
=
new
DenseInstance
(
dataStructure
.
numAttributes
());
dataPoint
.
setDataset
(
dataStructure
);
for
(
int
i
=
0
;
i
<
tokenNumbers
.
length
;
i
++)
{
dataPoint
.
setValue
(
i
+
1
,
tokenNumbers
[
i
]);
}
...
...
@@ -101,6 +99,9 @@ public class WEKA implements AbstractDistribution {
}
dataStructure
=
new
Instances
(
"Data Structure"
,
attributes
,
0
);
dataStructure
.
setClass
(
attr_RT
);
dataPoint
=
new
DenseInstance
(
dataStructure
.
numAttributes
());
dataPoint
.
setDataset
(
dataStructure
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment