Skip to content

Commit

Permalink
Unlearning
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanPriyanshu committed Nov 26, 2024
1 parent 1ed703d commit 16adc30
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ <h2>Model Performance Assessment</h2>

async function loadCategoricalData() {
try {
const response = await fetch('http://amanpriyanshu.github.io/The-Unlearning-Protocol/data/adult_subset.csv');
const response = await fetch('https://amanpriyanshu.github.io/The-Unlearning-Protocol/data/adult_subset.csv');
if (!response.ok) {
throw new Error('Failed to load categorical data');
}
Expand All @@ -503,7 +503,7 @@ <h2>Model Performance Assessment</h2>
}
async function loadData() {
try {
const response = await fetch('http://amanpriyanshu.github.io/The-Unlearning-Protocol/data/counts_unique.json');
const response = await fetch('https://amanpriyanshu.github.io/The-Unlearning-Protocol/data/counts_unique.json');
if (!response.ok) {
throw new Error('Failed to load data');
}
Expand Down Expand Up @@ -594,7 +594,7 @@ <h2>Model Performance Assessment</h2>
async function loadSamples() {
try {
// First load the index file
const indexResponse = await fetch('http://amanpriyanshu.github.io/The-Unlearning-Protocol/data/retrained/index.json');
const indexResponse = await fetch('https://amanpriyanshu.github.io/The-Unlearning-Protocol/data/retrained/index.json');
if (!indexResponse.ok) {
throw new Error('Failed to load index file');
}
Expand All @@ -606,7 +606,7 @@ <h2>Model Performance Assessment</h2>
// Load each selected sample
const samples = await Promise.all(
selectedIndices.map(index =>
fetch(`http://amanpriyanshu.github.io/The-Unlearning-Protocol/data/retrained/${index}.json`).then(r => {
fetch(`https://amanpriyanshu.github.io/The-Unlearning-Protocol/data/retrained/${index}.json`).then(r => {
if (!r.ok) {
throw new Error(`Failed to load sample ${index}`);
}
Expand Down Expand Up @@ -696,7 +696,7 @@ <h3>Sample #${indices[idx]}</h3>
}

try {
const response = await fetch(`http://amanpriyanshu.github.io/The-Unlearning-Protocol/data/retrained/${selectedCardIndex}.json`);
const response = await fetch(`https://amanpriyanshu.github.io/The-Unlearning-Protocol/data/retrained/${selectedCardIndex}.json`);
if (!response.ok) {
throw new Error('Failed to load selected sample data');
}
Expand Down Expand Up @@ -776,7 +776,7 @@ <h3>Sample #${indices[idx]}</h3>

updateProgress(40, 'Loading training data...');

const response = await fetch('http://amanpriyanshu.github.io/The-Unlearning-Protocol/data/data.json');
const response = await fetch('https://amanpriyanshu.github.io/The-Unlearning-Protocol/data/data.json');
if (!response.ok) {
throw new Error('Failed to load training data');
}
Expand Down Expand Up @@ -1217,7 +1217,7 @@ <h3>Sample #${indices[idx]}</h3>
targetTensor.dispose();

updateProgress(100, 'Unlearning complete!');
alert('Unlearning completed successfully!');
alert('Unlearning completed successfully! But remember when attempt to unlearn a model other data samples with similar attributes are affected!');
} catch (error) {
console.error('Error during unlearning:', error);
updateProgress(100, 'Error during unlearning');
Expand Down

0 comments on commit 16adc30

Please sign in to comment.