Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Krug
EfficientRuleLearning
Commits
60a19d81
Commit
60a19d81
authored
Oct 29, 2016
by
mak28ma
Browse files
fixed a passge where x and y were exchanged, there is still at least 1
more error
parent
782ab48f
Changes
2
Hide whitespace changes
Inline
Side-by-side
de.uniwue.ls6.rulelearning/DataStructure/src/de/uniwue/ls6/datastructure/Instance.java
View file @
60a19d81
...
@@ -80,8 +80,8 @@ public class Instance {
...
@@ -80,8 +80,8 @@ public class Instance {
// check if this instance contains the features
// check if this instance contains the features
if
(
containsFeature
(
features
))
{
if
(
containsFeature
(
features
))
{
// if so then create a sprase matrix and put a 1 into the
// if so then create a sprase matrix and put a 1 into the
// according slot
// according slot
;x is always the cols
denseInstanceMatrix
.
add
(
denseIndices
.
x
,
denseIndices
.
y
,
1
);
denseInstanceMatrix
.
add
(
denseIndices
.
y
,
denseIndices
.
x
,
1
);
}
}
}
}
// perform the kronecker expansion from the non sparse dense elements
// perform the kronecker expansion from the non sparse dense elements
...
...
de.uniwue.ls6.rulelearning/DataStructure/src/de/uniwue/ls6/util/MatrixUtil.java
View file @
60a19d81
...
@@ -107,12 +107,6 @@ public class MatrixUtil {
...
@@ -107,12 +107,6 @@ public class MatrixUtil {
toAdd
.
add
(
firstBack
);
toAdd
.
add
(
firstBack
);
//assert that the recalculated points are contained in the mapping
//assert that the recalculated points are contained in the mapping
if
(!
previousMapping
.
getInverseMappingMap
().
containsKey
(
secondBack
)){
System
.
out
.
println
(
"yayo"
);
System
.
out
.
println
(
sizeBeforeExpansion
);
System
.
out
.
println
(
previousMapping
.
getMappingMap
().
size
());
System
.
out
.
println
(
secondBack
);
}
}
}
...
...
Write
Preview
Supports
Markdown
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