Clémentine commited on
Commit
6b71193
·
1 Parent(s): 26ec6ee

updated figures

Browse files
app/src/content/embeds/finetasks-monotonicity.html CHANGED
@@ -244,9 +244,13 @@
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
- // Try to convert to number
248
- const numValue = parseFloat(value);
249
- row[header] = isNaN(numValue) ? value : numValue;
 
 
 
 
250
  });
251
  data.push(row);
252
  }
@@ -387,10 +391,20 @@
387
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
388
  const groupSeeds = container.dataset.groupSeeds === 'true';
389
  const sortedData = sortDataByTokens(data);
 
 
 
 
 
 
390
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
 
 
391
  const interpolatedData = interpolateData(groupedData, metric);
392
  const smoothedData = smoothData(interpolatedData, metric);
393
  const traces = createTraces(smoothedData, metric);
 
 
394
 
395
  const plotContainer = container.querySelector('.plot-container');
396
 
 
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
+ // Keep runname as string, convert other numeric columns
248
+ if (header === 'runname') {
249
+ row[header] = value;
250
+ } else {
251
+ const numValue = parseFloat(value);
252
+ row[header] = isNaN(numValue) ? value : numValue;
253
+ }
254
  });
255
  data.push(row);
256
  }
 
391
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
392
  const groupSeeds = container.dataset.groupSeeds === 'true';
393
  const sortedData = sortDataByTokens(data);
394
+
395
+ // Debug: log unique runnames before processing
396
+ const uniqueRunnames = [...new Set(sortedData.map(row => row.runname))];
397
+ console.log('Unique runnames in data:', uniqueRunnames);
398
+ console.log('Processed runnames:', uniqueRunnames.map(rn => processRunName(rn)));
399
+
400
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
401
+ console.log('Grouped data keys:', Object.keys(groupedData));
402
+
403
  const interpolatedData = interpolateData(groupedData, metric);
404
  const smoothedData = smoothData(interpolatedData, metric);
405
  const traces = createTraces(smoothedData, metric);
406
+ console.log('Number of traces:', traces.length);
407
+ console.log('Trace names:', traces.map(t => t.name));
408
 
409
  const plotContainer = container.querySelector('.plot-container');
410
 
app/src/content/embeds/finetasks-ordering.html CHANGED
@@ -244,8 +244,13 @@
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
- const numValue = parseFloat(value);
248
- row[header] = isNaN(numValue) ? value : numValue;
 
 
 
 
 
249
  });
250
  data.push(row);
251
  }
@@ -386,10 +391,20 @@
386
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
387
  const groupSeeds = container.dataset.groupSeeds === 'true';
388
  const sortedData = sortDataByTokens(data);
 
 
 
 
 
 
389
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
 
 
390
  const interpolatedData = interpolateData(groupedData, metric);
391
  const smoothedData = smoothData(interpolatedData, metric);
392
  const traces = createTraces(smoothedData, metric);
 
 
393
 
394
  const plotContainer = container.querySelector('.plot-container');
395
 
 
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
+ // Keep runname as string, convert other numeric columns
248
+ if (header === 'runname') {
249
+ row[header] = value;
250
+ } else {
251
+ const numValue = parseFloat(value);
252
+ row[header] = isNaN(numValue) ? value : numValue;
253
+ }
254
  });
255
  data.push(row);
256
  }
 
391
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
392
  const groupSeeds = container.dataset.groupSeeds === 'true';
393
  const sortedData = sortDataByTokens(data);
394
+
395
+ // Debug: log unique runnames before processing
396
+ const uniqueRunnames = [...new Set(sortedData.map(row => row.runname))];
397
+ console.log('Unique runnames in data:', uniqueRunnames);
398
+ console.log('Processed runnames:', uniqueRunnames.map(rn => processRunName(rn)));
399
+
400
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
401
+ console.log('Grouped data keys:', Object.keys(groupedData));
402
+
403
  const interpolatedData = interpolateData(groupedData, metric);
404
  const smoothedData = smoothData(interpolatedData, metric);
405
  const traces = createTraces(smoothedData, metric);
406
+ console.log('Number of traces:', traces.length);
407
+ console.log('Trace names:', traces.map(t => t.name));
408
 
409
  const plotContainer = container.querySelector('.plot-container');
410
 
app/src/content/embeds/finetasks-randomness.html CHANGED
@@ -244,8 +244,13 @@
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
- const numValue = parseFloat(value);
248
- row[header] = isNaN(numValue) ? value : numValue;
 
 
 
 
 
249
  });
250
  data.push(row);
251
  }
@@ -386,10 +391,20 @@
386
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
387
  const groupSeeds = container.dataset.groupSeeds === 'true';
388
  const sortedData = sortDataByTokens(data);
 
 
 
 
 
 
389
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
 
 
390
  const interpolatedData = interpolateData(groupedData, metric);
391
  const smoothedData = smoothData(interpolatedData, metric);
392
  const traces = createTraces(smoothedData, metric);
 
 
393
 
394
  const plotContainer = container.querySelector('.plot-container');
395
 
 
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
+ // Keep runname as string, convert other numeric columns
248
+ if (header === 'runname') {
249
+ row[header] = value;
250
+ } else {
251
+ const numValue = parseFloat(value);
252
+ row[header] = isNaN(numValue) ? value : numValue;
253
+ }
254
  });
255
  data.push(row);
256
  }
 
391
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
392
  const groupSeeds = container.dataset.groupSeeds === 'true';
393
  const sortedData = sortDataByTokens(data);
394
+
395
+ // Debug: log unique runnames before processing
396
+ const uniqueRunnames = [...new Set(sortedData.map(row => row.runname))];
397
+ console.log('Unique runnames in data:', uniqueRunnames);
398
+ console.log('Processed runnames:', uniqueRunnames.map(rn => processRunName(rn)));
399
+
400
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
401
+ console.log('Grouped data keys:', Object.keys(groupedData));
402
+
403
  const interpolatedData = interpolateData(groupedData, metric);
404
  const smoothedData = smoothData(interpolatedData, metric);
405
  const traces = createTraces(smoothedData, metric);
406
+ console.log('Number of traces:', traces.length);
407
+ console.log('Trace names:', traces.map(t => t.name));
408
 
409
  const plotContainer = container.querySelector('.plot-container');
410
 
app/src/content/embeds/finetasks-snr.html CHANGED
@@ -1,6 +1,6 @@
1
  <div class="finetasks-plot-container" style="display: flex; gap: 20px; flex-wrap: wrap;">
2
  <div class="task-signal-plot" data-language="Telugu" data-task="xstory_cloze_tel_cf" data-show-controls="false" data-task-metrics="snr" data-metric="acc_norm_token" data-group-seeds="false" data-title="✅ Good SNR: xstory_cloze_tel_cf [te]" style="flex: 1; min-width: 300px;"></div>
3
- <div class="task-signal-plot" data-language="Telugu" data-task="tydiqa_tel" data-show-controls="false" data-task-metrics="snr" data-metric="acc_norm_token" data-group-seeds="false" data-title="❌ Bad SNR: tydiqa_tel [te]" style="flex: 1; min-width: 300px;"></div>
4
  </div>
5
 
6
  <style>
@@ -244,8 +244,13 @@
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
- const numValue = parseFloat(value);
248
- row[header] = isNaN(numValue) ? value : numValue;
 
 
 
 
 
249
  });
250
  data.push(row);
251
  }
@@ -386,10 +391,20 @@
386
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
387
  const groupSeeds = container.dataset.groupSeeds === 'true';
388
  const sortedData = sortDataByTokens(data);
 
 
 
 
 
 
389
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
 
 
390
  const interpolatedData = interpolateData(groupedData, metric);
391
  const smoothedData = smoothData(interpolatedData, metric);
392
  const traces = createTraces(smoothedData, metric);
 
 
393
 
394
  const plotContainer = container.querySelector('.plot-container');
395
 
 
1
  <div class="finetasks-plot-container" style="display: flex; gap: 20px; flex-wrap: wrap;">
2
  <div class="task-signal-plot" data-language="Telugu" data-task="xstory_cloze_tel_cf" data-show-controls="false" data-task-metrics="snr" data-metric="acc_norm_token" data-group-seeds="false" data-title="✅ Good SNR: xstory_cloze_tel_cf [te]" style="flex: 1; min-width: 300px;"></div>
3
+ <div class="task-signal-plot" data-language="Telugu" data-task="tydiqa_tel" data-show-controls="false" data-task-metrics="snr" data-metric="prefix_match" data-group-seeds="false" data-title="❌ Bad SNR: tydiqa_tel [te]" style="flex: 1; min-width: 300px;"></div>
4
  </div>
5
 
6
  <style>
 
244
  const row = {};
245
  headers.forEach((header, index) => {
246
  const value = values[index] || '';
247
+ // Keep runname as string, convert other numeric columns
248
+ if (header === 'runname') {
249
+ row[header] = value;
250
+ } else {
251
+ const numValue = parseFloat(value);
252
+ row[header] = isNaN(numValue) ? value : numValue;
253
+ }
254
  });
255
  data.push(row);
256
  }
 
391
  const plotData = (container, data, stats, metric, title, taskMetrics) => {
392
  const groupSeeds = container.dataset.groupSeeds === 'true';
393
  const sortedData = sortDataByTokens(data);
394
+
395
+ // Debug: log unique runnames before processing
396
+ const uniqueRunnames = [...new Set(sortedData.map(row => row.runname))];
397
+ console.log('Unique runnames in data:', uniqueRunnames);
398
+ console.log('Processed runnames:', uniqueRunnames.map(rn => processRunName(rn)));
399
+
400
  const groupedData = groupDataByRunname(sortedData, groupSeeds, metric);
401
+ console.log('Grouped data keys:', Object.keys(groupedData));
402
+
403
  const interpolatedData = interpolateData(groupedData, metric);
404
  const smoothedData = smoothData(interpolatedData, metric);
405
  const traces = createTraces(smoothedData, metric);
406
+ console.log('Number of traces:', traces.length);
407
+ console.log('Trace names:', traces.map(t => t.name));
408
 
409
  const plotContainer = container.querySelector('.plot-container');
410