Permalink
Browse files

initial parsing done

  • Loading branch information...
1 parent da32319 commit b47e8fc515984fd36c6da8e69ec561156ddb14b7 @StoicLoofah committed Mar 15, 2012
View
43 experiment/results/experiment_2/combine_results.py
@@ -0,0 +1,43 @@
+
+
+matrix = [[0] * 14 for i in range(49)]
+counts = [[0] * 14 for i in range(49)]
+
+stim_num_to_indices = {}
+f = open("stimuli_indices.csv", 'r')
+count = 0
+for line in f:
+ vals = line.split(',')
+ stim_num_to_indices[count] = [int(vals[0]), int(vals[1])]
+ count += 1
+f.close()
+
+f = open("indices.csv", 'r')
+indices = []
+for line in f:
+ indices.append(line.split(','))
+f.close()
+
+f = open("zscored.csv", 'r')
+ratings = []
+for line in f:
+ ratings.append(line.split(','))
+f.close()
+
+for i in range(len(indices)):
+ for j in range(len(indices[0])):
+ cur_indices = stim_num_to_indices[int(indices[i][j])]
+ cur_val = float(ratings[i][j])
+ matrix[cur_indices[0]][cur_indices[1]] += cur_val
+ counts[cur_indices[0]][cur_indices[1]] += 1
+
+for i in range(len(matrix)):
+ for j in range(len(matrix[0])):
+ matrix[i][j] = matrix[i][j] / counts[i][j]
+
+fout = open('rating_matrix.csv', 'w')
+for row in matrix:
+ for col in row:
+ fout.write(str(col) + ',')
+ fout.write('\n')
+fout.close()
View
1 experiment/results/experiment_2/rating_matrix.csv
@@ -0,0 +1 @@
+,absolutely,completely,extremely,half,much,partially,perfectly,pretty,quite,rather,slightly,totally,very,well able,0.11,0.37,0.30,0.71,0.85,0.03,0.68,0.19,0.45,0.06,0.00,0.41,0.41,0.51 accurate,0.54,0.68,0.78,0.17,1.28,0.47,0.59,0.82,0.62,0.55,0.21,0.75,0.93,1.03 asleep,0.52,0.23,0.77,0.81,1.43,0.12,0.44,0.81,0.57,1.18,0.56,0.36,0.52,0.86 awake,0.25,0.88,0.22,0.60,1.03,0.44,0.27,0.13,0.34,0.25,0.36,0.68,0.53,0.36 bent,0.33,0.40,0.23,0.17,1.29,0.34,0.16,0.08,0.10,0.11,0.50,0.31,0.00,0.59 big,0.58,0.99,0.54,1.15,1.89,0.92,0.88,0.94,0.58,0.51,0.40,0.34,0.83,1.44 bumpy,0.52,0.01,0.77,0.62,1.56,0.25,0.48,0.65,0.37,0.62,0.44,0.11,0.66,1.39 certain,0.85,0.67,0.53,0.08,1.09,0.15,0.17,0.76,0.73,0.57,0.14,0.71,0.73,0.72 clean,0.53,0.85,0.83,0.28,1.29,0.41,0.61,0.82,0.68,0.59,0.22,0.70,0.85,1.08 closed,0.27,0.63,0.62,0.10,1.43,0.55,0.31,0.48,0.61,0.71,0.01,0.20,0.51,0.82 dangerous,0.60,0.49,0.97,0.75,1.40,0.63,0.24,0.85,0.66,0.75,0.34,0.61,0.83,1.22 deep,0.55,0.79,0.63,0.97,1.40,0.66,0.65,0.56,0.61,0.58,0.28,0.51,0.84,1.10 dirty,0.18,0.70,0.89,0.71,1.52,0.01,0.87,0.64,0.71,0.65,0.61,0.39,0.79,1.68 dry,0.44,0.72,0.84,0.15,1.08,0.39,0.53,0.70,0.62,0.49,0.35,0.85,0.89,1.18 empty,0.19,0.77,0.17,0.78,1.36,0.28,0.18,0.45,0.48,0.30,0.15,0.67,0.35,1.17 expensive,0.21,0.90,0.89,1.21,1.33,0.83,0.74,0.99,0.82,0.83,0.53,0.05,1.00,1.10 fast,0.75,0.38,0.77,1.23,1.57,0.85,0.43,0.92,0.72,0.62,0.01,0.22,0.87,1.23 fat,0.21,0.16,0.96,0.78,1.30,0.59,0.70,0.72,0.60,0.43,0.32,0.10,0.87,1.52 flat,0.34,0.57,0.78,0.91,1.30,0.13,0.68,0.53,0.54,0.25,0.03,0.68,0.72,1.22 flexible,0.30,0.55,0.81,0.64,1.31,0.08,0.33,0.83,0.69,0.61,0.50,0.49,0.92,1.27 full,0.35,0.89,0.75,0.63,1.33,0.38,0.07,0.69,0.74,0.52,0.13,0.49,0.79,1.27 impossible,0.60,0.65,0.13,0.85,1.41,0.85,0.53,0.25,0.41,0.30,0.26,0.74,0.07,1.15 impure,0.15,0.06,0.10,1.01,1.31,0.32,0.86,0.21,0.22,0.22,0.07,0.15,0.11,1.34 inaccurate,0.48,0.69,0.81,0.87,1.50,0.38,0.47,0.38,0.70,0.55,0.72,0.66,0.66,1.37 inexpensive,0.14,0.13,0.48,1.51,1.56,1.03,0.70,0.49,0.47,0.71,0.07,0.10,0.72,1.25 interesting,0.36,0.22,0.90,0.80,1.12,0.09,0.03,0.81,0.85,0.76,0.78,0.45,1.01,1.26 likely,0.03,0.31,0.78,0.77,0.78,0.95,0.14,0.69,0.77,0.51,0.40,0.00,0.82,1.04 long,0.65,1.05,0.71,1.13,1.42,0.75,0.37,0.79,0.77,0.79,0.02,0.61,0.94,1.39 necessary,0.85,0.77,0.62,0.84,1.24,0.19,0.49,0.27,0.51,0.28,0.01,0.72,0.58,1.37 open,0.18,0.89,0.20,0.52,1.15,0.55,0.17,0.28,0.16,0.18,0.43,0.41,0.33,1.01 pleased,0.62,0.11,0.78,0.43,0.31,0.22,0.34,0.57,0.82,0.73,0.33,0.69,0.96,0.54 possible,0.71,0.55,0.41,0.87,1.27,0.46,0.34,0.33,0.84,0.25,0.21,0.63,0.81,1.11 pure,0.50,0.33,0.58,0.59,1.62,0.46,0.07,0.04,0.32,0.13,0.16,0.46,0.73,1.44 relaxed,0.67,0.70,0.74,0.26,0.72,0.06,0.69,0.66,0.72,0.60,0.32,0.87,0.79,0.29 safe,0.72,0.89,0.75,0.60,1.33,0.09,0.88,0.68,0.68,0.67,0.05,0.96,0.80,1.30 shallow,0.12,0.22,0.68,1.09,1.61,0.48,0.43,0.63,0.62,0.64,0.01,0.24,0.85,1.28 short,0.89,0.46,0.71,1.16,1.46,0.81,0.61,0.80,0.57,0.62,0.08,0.19,0.87,0.95 small,0.53,0.88,0.86,1.40,1.41,0.74,0.51,0.76,0.76,0.71,0.05,0.39,1.02,1.31 straight,0.40,0.56,0.38,0.69,1.47,0.39,0.74,0.58,0.23,0.41,0.21,0.54,0.67,1.28 strong,0.28,0.29,0.78,1.03,1.55,0.14,0.07,0.71,0.79,0.58,0.13,0.09,0.96,1.35 tall,0.70,1.12,0.66,1.34,1.67,1.18,0.52,0.84,0.64,0.74,0.22,0.70,0.90,1.51 uncertain,0.17,0.36,0.54,0.67,1.21,0.47,0.55,0.57,0.63,0.54,0.17,0.47,0.67,1.31 unlikely,0.06,0.36,0.75,1.17,1.38,0.97,0.43,0.74,0.79,0.61,0.04,0.52,0.90,1.26 unnecessary,0.71,0.82,0.66,1.00,1.29,0.34,0.04,0.59,0.62,0.68,0.38,0.85,0.59,1.34 unusual,0.03,0.00,0.83,1.17,1.37,0.77,0.31,0.64,0.86,0.73,0.55,0.43,0.96,1.15 wet,0.05,0.75,0.81,0.60,1.50,0.31,0.30,0.58,0.60,0.41,0.43,0.54,0.84,1.37 wide,0.49,0.63,0.54,1.16,1.53,0.69,0.27,0.58,0.47,0.41,0.34,0.49,0.73,1.20 opaque,0.06,0.53,0.14,0.55,1.21,0.09,0.03,0.13,0.05,0.29,0.18,0.32,0.21,1.01 transparent,0.44,0.67,0.42,0.49,1.18,0.45,0.78,0.38,0.36,0.38,0.36,0.68,0.58,0.95
View
BIN experiment/results/experiment_2/rating_matrix.xlsx
Binary file not shown.
View
686 experiment/results/experiment_2/stimuli_indices.csv
@@ -0,0 +1,686 @@
+31,2
+20,4
+7,1
+5,4
+32,6
+3,8
+25,5
+19,7
+18,8
+12,7
+33,11
+36,3
+4,3
+16,9
+40,5
+38,6
+26,7
+19,3
+13,11
+32,11
+28,3
+46,13
+41,4
+5,0
+4,13
+47,2
+8,4
+30,4
+31,0
+26,1
+35,12
+9,13
+13,10
+18,4
+4,12
+40,1
+41,7
+14,3
+45,4
+33,8
+43,2
+40,8
+25,6
+24,5
+39,2
+42,5
+30,8
+34,6
+18,10
+3,12
+37,0
+34,2
+0,1
+10,3
+2,1
+4,7
+20,7
+10,13
+12,3
+47,4
+31,10
+15,1
+21,8
+1,1
+35,6
+9,4
+42,3
+31,8
+20,2
+13,3
+30,2
+41,13
+38,1
+35,4
+38,13
+22,13
+41,11
+4,9
+37,2
+11,7
+28,12
+42,13
+24,7
+29,4
+47,5
+38,3
+9,5
+19,13
+48,1
+3,1
+0,3
+48,10
+45,6
+21,11
+26,9
+24,10
+43,13
+0,7
+25,8
+14,6
+29,12
+8,5
+27,7
+20,9
+21,5
+31,5
+4,0
+47,9
+36,4
+35,3
+44,11
+45,10
+44,9
+44,1
+42,10
+13,0
+7,5
+45,5
+39,0
+24,4
+13,8
+16,3
+23,8
+48,3
+14,0
+10,12
+35,9
+39,4
+4,6
+47,7
+1,5
+18,11
+21,6
+19,1
+20,12
+27,11
+38,11
+46,10
+22,2
+7,9
+1,2
+46,2
+33,9
+28,2
+25,13
+13,12
+14,5
+46,0
+23,11
+0,13
+10,4
+18,6
+8,13
+28,8
+38,10
+24,1
+34,12
+23,7
+12,10
+36,8
+7,4
+6,1
+14,11
+35,8
+0,12
+12,6
+6,4
+47,6
+4,11
+40,4
+22,11
+21,3
+39,13
+28,10
+6,11
+4,10
+35,1
+8,10
+48,2
+22,6
+7,0
+0,11
+11,13
+32,5
+23,10
+23,2
+19,11
+28,9
+37,12
+13,7
+0,2
+14,8
+43,4
+42,6
+15,13
+22,5
+17,5
+16,0
+2,5
+1,6
+29,2
+37,1
+17,12
+13,4
+37,10
+46,4
+27,9
+26,3
+15,5
+33,4
+31,12
+21,13
+38,8
+45,12
+42,0
+8,7
+8,9
+17,4
+10,10
+29,8
+21,10
+0,10
+5,1
+11,3
+27,2
+34,4
+18,0
+23,1
+23,13
+38,9
+43,6
+15,9
+27,1
+4,5
+1,12
+33,0
+25,3
+29,10
+36,2
+16,12
+39,7
+9,11
+5,11
+16,2
+34,7
+42,11
+39,10
+21,4
+2,11
+44,12
+42,7
+11,10
+44,6
+9,12
+10,7
+10,11
+7,6
+37,7
+39,12
+44,10
+22,10
+45,1
+1,10
+3,6
+18,2
+19,5
+44,2
+3,7
+24,12
+47,3
+2,9
+17,9
+28,13
+11,8
+40,13
+43,7
+22,8
+17,10
+9,2
+16,4
+34,11
+37,3
+17,6
+35,2
+2,3
+35,13
+3,2
+30,13
+11,1
+48,8
+17,7
+2,8
+23,12
+4,4
+47,1
+26,12
+36,12
+2,10
+16,11
+7,13
+8,12
+15,6
+35,10
+6,8
+46,9
+40,2
+9,7
+47,11
+17,11
+36,0
+45,2
+22,4
+39,9
+47,13
+12,4
+25,12
+4,2
+34,5
+40,12
+31,1
+23,6
+33,6
+48,11
+8,3
+44,8
+13,9
+46,7
+30,5
+37,11
+37,4
+13,1
+44,5
+16,10
+41,5
+13,13
+13,5
+41,9
+33,5
+12,12
+31,11
+45,9
+29,6
+8,8
+17,13
+29,13
+43,8
+12,8
+48,6
+43,9
+41,12
+5,12
+43,11
+18,7
+26,6
+19,2
+10,5
+8,6
+23,3
+32,9
+46,5
+48,12
+5,6
+43,5
+34,10
+11,4
+5,3
+42,8
+19,6
+12,0
+3,4
+9,0
+30,0
+26,13
+45,7
+32,3
+32,1
+33,12
+3,13
+41,8
+10,0
+15,0
+48,0
+15,10
+22,1
+6,0
+2,7
+14,9
+26,2
+6,6
+4,1
+9,8
+3,10
+48,5
+39,1
+24,9
+3,3
+33,13
+48,7
+11,5
+31,9
+27,8
+19,4
+24,3
+31,3
+39,11
+10,2
+34,0
+33,2
+38,7
+6,2
+42,12
+47,8
+46,3
+32,13
+16,13
+38,4
+8,1
+20,1
+7,7
+10,8
+36,7
+32,0
+27,12
+22,7
+28,4
+11,9
+34,8
+27,4
+40,0
+40,6
+37,9
+46,6
+12,1
+42,2
+1,11
+28,7
+9,1
+26,4
+5,2
+20,13
+7,2
+1,13
+35,11
+32,8
+43,0
+25,2
+36,10
+11,12
+15,11
+40,11
+17,1
+22,0
+34,1
+30,6
+3,5
+45,13
+22,12
+42,1
+0,4
+40,9
+26,5
+37,8
+3,11
+47,10
+7,11
+33,10
+44,13
+48,13
+1,3
+36,6
+28,0
+11,6
+40,3
+21,9
+27,3
+0,6
+25,9
+48,9
+1,4
+30,10
+38,2
+23,9
+25,11
+30,7
+39,5
+32,7
+28,1
+19,0
+30,1
+40,10
+29,9
+6,13
+27,5
+15,2
+27,6
+26,11
+36,9
+19,8
+12,5
+35,0
+46,12
+39,3
+29,0
+14,10
+23,0
+5,13
+2,13
+12,13
+3,0
+31,7
+23,4
+5,9
+47,0
+14,7
+33,3
+28,6
+45,8
+36,5
+15,8
+25,0
+39,6
+41,3
+39,8
+29,11
+6,9
+46,1
+9,9
+14,12
+7,10
+12,2
+22,9
+29,5
+5,10
+19,10
+31,4
+12,9
+21,0
+10,6
+43,12
+15,4
+8,0
+31,13
+1,8
+37,13
+41,2
+38,0
+27,0
+14,2
+36,13
+11,0
+44,4
+15,3
+17,8
+5,8
+18,3
+44,3
+7,8
+24,8
+46,8
+7,3
+1,7
+30,12
+6,12
+20,11
+42,4
+24,2
+31,6
+44,0
+13,6
+45,3
+2,12
+19,9
+30,9
+7,12
+48,4
+41,10
+38,5
+14,13
+38,12
+14,1
+15,7
+12,11
+6,10
+32,10
+33,1
+30,11
+16,5
+11,11
+11,2
+13,2
+32,12
+45,11
+45,0
+34,3
+9,10
+21,1
+9,3
+0,5
+6,5
+4,8
+29,3
+18,12
+24,11
+27,13
+34,9
+21,7
+3,9
+8,11
+23,5
+26,8
+6,3
+43,10
+2,0
+2,4
+24,0
+24,13
+20,6
+29,7
+8,2
+0,9
+18,9
+17,0
+20,3
+14,4
+35,7
+20,0
+18,5
+20,5
+32,4
+0,0
+28,5
+27,10
+10,9
+5,5
+37,5
+40,7
+25,7
+22,3
+41,0
+16,1
+1,0
+16,6
+47,12
+20,8
+9,6
+32,2
+21,2
+16,7
+43,1
+21,12
+41,1
+25,1
+5,7
+33,7
+41,6
+2,6
+17,3
+25,4
+34,13
+18,1
+36,11
+20,10
+35,5
+24,6
+26,0
+16,8
+44,7
+30,3
+37,6
+15,12
+6,7
+1,9
+26,10
+25,10
+2,2
+10,1
+46,11
+19,12
+42,9
+43,3
+28,11
+18,13
+36,1
+0,8
+29,1
+17,2
View
310 experiment/results/experiment_2/zscored.csv
310 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit b47e8fc

Please sign in to comment.