Skip to content

Commit

Permalink
week 3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-m100 committed Oct 6, 2024
1 parent 4c26717 commit 3b2c006
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 15 deletions.
14 changes: 10 additions & 4 deletions leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,23 @@ <h1>Leaderboard</h1>

<script>
const leaderboardData = [
{ name: "Kaavya Mahajan", score: 98 },
{ name: "Aaren Kang", score: 96 },
{ name: "Kaavya Mahajan", score: 195 },
{ name: "Aaren Kang", score: 198 },
{ name: "Anish Bellamkonda", score: 93 },
{ name: "Yongrong Lu", score: 91 },
{ name: "Seung Wook", score: 90 },
{ name: "Seung Wook Yoon", score: 188 },
{ name: "Jayden Li", score: 80 },
{ name: "Aaditya Ghimire", score: 72 },
{ name: "Albert Bogdan", score: 71 },
{ name: "Abhiram Batchali", score: 70 },
{ name: "Abhiram Batchali", score: 150 },
{ name: "Huan Lin", score: 70 },
{ name: "Prahit Yaugand", score: 70 },
{ name: "Sungmin Park", score: 191 },
{ name: "Saad Ahmad", score: 109 },
{ name: "Daniel Xiang", score: 106 },
{ name: "Grace Zeng", score: 105 },
{ name: "Steven Piotrowski", score: 85 },
{ name: "Joey Wang", score: 80 },
];

function createPodiumItem(rank, name, score, medal, height) {
Expand Down
4 changes: 2 additions & 2 deletions resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ <h2>Project ${projectData.project}: ${projectData.title}</h2>
toggleProject(projectHeader)
);

// Open the first project by default
if (index === 0) {
// Open the last project by default
if (index === data.length - 1) {
toggleProject(projectHeader);
}
});
Expand Down
49 changes: 40 additions & 9 deletions solutions.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,37 @@ <h4>Takeaways:</h4>
`,
},
// Add more solution projects here as needed

{
project: 2,
title: "Heart Disease Classification Solution",
content: `
<h1>Project 2 Solutions</h1>
<h2>Summary</h2>
<h4>Baseline Models:</h4>
<ul>
<li>Stochastic Gradient Descent Classifier (with log loss) yielded an accuracy of 0.72, providing a reasonable starting point but not highly reliable for medical predictions.</li>
<li>Random Forest Classifier achieved a much higher accuracy of 0.98, making it significantly better for classifying heart disease compared to SGD.</li>
</ul>
<h4>Highest-Performing Solutions:</h4>
<ul>
<li>Random Forest Classifier (with 100 estimators) was the top-performing model, reaching an accuracy of 0.98, indicating that ensemble methods are highly effective for this task.</li>
</ul>
<h4>Takeaways:</h4>
<ul>
<li>Random Forest outperformed linear classifiers, suggesting that decision tree-based models handle complex medical data better.</li>
<li>Increasing the number of trees in the forest can lead to more robust predictions, particularly when dealing with health-related datasets.</li>
<li>Future improvements could include exploring hyperparameter tuning and other advanced ensemble methods.</li>
</ul>
<a target="_blank" href="https://colab.research.google.com/drive/1TfhmyyxZ1njcXTghnxJuNAkaBVo-lWFW?usp=sharing">Link to Notebook</a>
<br>
<a target="_blank" href="https://docs.google.com/presentation/d/1ruvhrehQhAcr20RiEG_G6QNCvhQivFFeYbJUNscfafg/edit?usp=sharing">Link to Slides</a>
`,
},
];

function createProjectElement(projectData) {
Expand All @@ -181,19 +211,20 @@ <h2>Project ${projectData.project}: ${projectData.title}</h2>
function loadContent(data) {
const contentDiv = document.getElementById("content");
contentDiv.innerHTML = "";
data.forEach((project) => {
data.forEach((project, index) => {
const projectElement = createProjectElement(project);
contentDiv.appendChild(projectElement);

const projectHeader = projectElement.querySelector(".project-header");
projectHeader.addEventListener("click", () => toggleProject(projectHeader));
});
projectHeader.addEventListener("click", () =>
toggleProject(projectHeader)
);

// Open the first project by default
const firstProjectHeader = document.querySelector(".project-header");
if (firstProjectHeader) {
toggleProject(firstProjectHeader);
}
// Open the last project by default
if (index === data.length - 1) {
toggleProject(projectHeader);
}
});
}

// Determine which page to load based on the current URL
Expand Down

0 comments on commit 3b2c006

Please sign in to comment.