Commit 782ab48f authored by mak28ma's avatar mak28ma
Browse files

*immer noch nichts...

parent cb1a1d0e
......@@ -85,16 +85,11 @@ public class Instance {
}
}
// perform the kronecker expansion from the non sparse dense elements
int kroneckerDimension = denseDimension * denseDimension;
FlexCompColMatrix expanedMatrix = new FlexCompColMatrix(kroneckerDimension, kroneckerDimension);
for (MatrixEntry e1 : denseInstanceMatrix) {
//asure that the mapping has those
if(!lastMapping.getInverseMappingMap().keySet().contains(new Point(e1.row(),e1.column()))){
System.out.println("IDK");
}
// iterate over all no sparse elements and expand
for (MatrixEntry e2 : denseInstanceMatrix) {
......@@ -109,7 +104,7 @@ public class Instance {
// check if this feature is available TODO is this already clear
// since we got both single features???
expanedMatrix.add(kroneckerCol, kroneckerRow, 1);
expanedMatrix.add(kroneckerRow, kroneckerCol, 1);
}
}
......
......@@ -151,9 +151,9 @@ public class MatrixUtil {
public static String prettyMatrixFormat(FlexCompColMatrix matrix) {
StringBuilder sb = new StringBuilder();
for (int row = 0; row < matrix.numRows(); row++) {
for (int col = 0; col < matrix.numColumns(); col++) {
double d = matrix.get(row, col);
for (int col = 0; col < matrix.numRows(); col++) {
for (int row = 0; row < matrix.numColumns(); row++) {
double d = matrix.get(col, row);
if(d==0.0d){
sb.append("<EMPTY>");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment