Spaces:
Running
Running
Revert "update files"
Browse filesThis reverts commit 0010c17d0469171851cef96de7af19529fb0a7b1.
- README.md +71 -52
- ml_complete-all-topics/app.js +13 -30
README.md
CHANGED
|
@@ -1,19 +1,17 @@
|
|
| 1 |
# π DataScience Learning Hub
|
| 2 |
|
| 3 |
-
Welcome
|
| 4 |
|
| 5 |
-
## π―
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
- βοΈ Feature Engineering Guide β Deployed: https://aashishgarg13.github.io/DataScience/feature-engineering/ | Local: `feature-engineering/`
|
| 16 |
-
- [π€ Prompt Engineering Guide](https://aashishgarg13.github.io/DataScience/prompt-engineering-guide/) - Interactive AI prompting course
|
| 17 |
|
| 18 |
## π Prompt Engineering Resources
|
| 19 |
|
|
@@ -78,62 +76,83 @@ The repository supports automatic updates for:
|
|
| 78 |
- Additional learning resources and examples
|
| 79 |
- Community contributions and fixes
|
| 80 |
|
| 81 |
-
## π
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
| 86 |
|
| 87 |
```bash
|
| 88 |
-
#
|
| 89 |
python3 -m http.server 8000
|
| 90 |
|
| 91 |
-
#
|
| 92 |
-
http
|
| 93 |
-
http://localhost:8000/ml_complete-all-topics/
|
| 94 |
-
http://localhost:8000/Visualization/
|
| 95 |
-
http://localhost:8000/math-ds-complete/
|
| 96 |
-
http://localhost:8000/feature-engineering/
|
| 97 |
```
|
| 98 |
|
| 99 |
-
|
| 100 |
|
| 101 |
-
##
|
| 102 |
|
| 103 |
-
1. Push `main`
|
| 104 |
-
2. In
|
| 105 |
-
3. Save
|
| 106 |
|
| 107 |
-
|
| 108 |
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
## π Project structure (example)
|
| 112 |
|
|
|
|
|
|
|
| 113 |
complete-statistics/
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
|
|
|
| 117 |
|
|
|
|
|
|
|
| 118 |
ml_complete-all-topics/
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
|
|
|
| 122 |
|
|
|
|
|
|
|
| 123 |
Visualization/
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
|
|
|
| 127 |
|
|
|
|
|
|
|
| 128 |
math-ds-complete/
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
|
|
|
| 132 |
|
|
|
|
|
|
|
| 133 |
feature-engineering/
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
| 137 |
|
| 138 |
## Notes about repository cleanup
|
| 139 |
|
|
@@ -147,15 +166,15 @@ While repairing the repository I removed macOS Finder metadata files (names begi
|
|
| 147 |
|
| 148 |
If you want to inspect any backup I created of the original `.git`, look for directories named `.git.broken_<timestamp>` in the repository root β they contain the backed-up git metadata.
|
| 149 |
|
| 150 |
-
## π€ Contributing
|
| 151 |
-
|
| 152 |
-
Helpful things you can do:
|
| 153 |
|
| 154 |
-
|
| 155 |
-
- Add a `CONTRIBUTING.md` if you want contribution rules or a PR checklist.
|
| 156 |
-
- Add an automated `scripts/verify_assets.py` that checks every `href/src` referenced by `index.html` files and reports missing assets β I can add this for you.
|
| 157 |
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
2. **Technical Enhancements**
|
| 161 |
- Optimize JavaScript performance
|
|
|
|
| 1 |
# π DataScience Learning Hub
|
| 2 |
|
| 3 |
+
Welcome to a comprehensive collection of educational web projects for learning data science! This repository contains multiple interactive courses and resources covering statistics, machine learning, visualization, mathematics, and feature engineering.
|
| 4 |
|
| 5 |
+
## π― Live Demos
|
| 6 |
|
| 7 |
+
Visit our courses directly in your browser:
|
| 8 |
|
| 9 |
+
- [π Interactive Statistics Course](https://aashishgarg13.github.io/DataScience/complete-statistics/)
|
| 10 |
+
- [π€ Machine Learning Guide](https://aashishgarg13.github.io/DataScience/ml_complete-all-topics/)
|
| 11 |
+
- [π Data Visualization](https://aashishgarg13.github.io/DataScience/Visualization/)
|
| 12 |
+
- [π’ Mathematics for Data Science](https://aashishgarg13.github.io/DataScience/math-ds-complete/)
|
| 13 |
+
- [βοΈ Feature Engineering Guide](https://aashishgarg13.github.io/DataScience/feature-engineering/)
|
| 14 |
+
- [π€ Prompt Engineering Guide](https://learnprompting.org/) - Interactive AI prompting course
|
|
|
|
|
|
|
| 15 |
|
| 16 |
## π Prompt Engineering Resources
|
| 17 |
|
|
|
|
| 76 |
- Additional learning resources and examples
|
| 77 |
- Community contributions and fixes
|
| 78 |
|
| 79 |
+
## π Quick Start
|
| 80 |
+
|
| 81 |
+
### Option A: View Online
|
| 82 |
+
Visit our GitHub Pages hosted versions:
|
| 83 |
+
1. [Statistics Course](https://aashishgarg13.github.io/DataScience/complete-statistics/)
|
| 84 |
+
2. [Machine Learning Guide](https://aashishgarg13.github.io/DataScience/ml_complete-all-topics/)
|
| 85 |
+
|
| 86 |
+
### Option B: Run Locally (Recommended for Development)
|
| 87 |
+
|
| 88 |
+
#### Simple Browser Opening:
|
| 89 |
+
1. Clone this repository
|
| 90 |
+
2. Navigate to either project folder
|
| 91 |
+
3. Double-click `index.html`
|
| 92 |
|
| 93 |
+
#### Using Local Server (Recommended to avoid CORS issues):
|
| 94 |
|
| 95 |
+
From the repository root, run one of the following in a terminal:
|
| 96 |
|
| 97 |
```bash
|
| 98 |
+
# Python 3 (simple static server, available on macOS):
|
| 99 |
python3 -m http.server 8000
|
| 100 |
|
| 101 |
+
# or using Node.js http-server (if installed):
|
| 102 |
+
npx http-server -c-1 . 8000
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
```
|
| 104 |
|
| 105 |
+
Then open http://localhost:8000/complete-statistics/ or http://localhost:8000/ml_complete-all-topics/ in your browser.
|
| 106 |
|
| 107 |
+
## Deploy to GitHub Pages
|
| 108 |
|
| 109 |
+
1. Push your changes to the `main` branch on GitHub (already done for this repo).
|
| 110 |
+
2. In your repository settings on GitHub, go to "Pages" and select the `main` branch and root (`/`) as the source, or set the `gh-pages` branch if you prefer.
|
| 111 |
+
3. Save β GitHub Pages will publish the site. For multi-site repos you can add a `docs/` folder or create separate branches, or create a small repo per site.
|
| 112 |
|
| 113 |
+
Because these are static sites you can also host them on Netlify, Vercel, or any static host.
|
| 114 |
|
| 115 |
+
## π Project Structure
|
|
|
|
|
|
|
| 116 |
|
| 117 |
+
### Statistics Course
|
| 118 |
+
```
|
| 119 |
complete-statistics/
|
| 120 |
+
βββ index.html # Main course interface
|
| 121 |
+
βββ style.css # Course styling
|
| 122 |
+
βββ app.js # Interactive visualizations
|
| 123 |
+
```
|
| 124 |
|
| 125 |
+
### Machine Learning Guide
|
| 126 |
+
```
|
| 127 |
ml_complete-all-topics/
|
| 128 |
+
βββ index.html # Main guide interface
|
| 129 |
+
βββ style.css # Guide styling
|
| 130 |
+
βββ app.js # Interactive components
|
| 131 |
+
```
|
| 132 |
|
| 133 |
+
### Data Visualization
|
| 134 |
+
```
|
| 135 |
Visualization/
|
| 136 |
+
βββ index.html # Visualization examples
|
| 137 |
+
βββ style.css # Visualization styling
|
| 138 |
+
βββ app.js # Interactive charts
|
| 139 |
+
```
|
| 140 |
|
| 141 |
+
### Mathematics for Data Science
|
| 142 |
+
```
|
| 143 |
math-ds-complete/
|
| 144 |
+
βββ index.html # Mathematics course interface
|
| 145 |
+
βββ style.css # Course styling
|
| 146 |
+
βββ app.js # Interactive math demonstrations
|
| 147 |
+
```
|
| 148 |
|
| 149 |
+
### Feature Engineering Guide
|
| 150 |
+
```
|
| 151 |
feature-engineering/
|
| 152 |
+
βββ index.html # Feature engineering guide
|
| 153 |
+
βββ style.css # Guide styling
|
| 154 |
+
βββ app.js # Interactive examples
|
| 155 |
+
```
|
| 156 |
|
| 157 |
## Notes about repository cleanup
|
| 158 |
|
|
|
|
| 166 |
|
| 167 |
If you want to inspect any backup I created of the original `.git`, look for directories named `.git.broken_<timestamp>` in the repository root β they contain the backed-up git metadata.
|
| 168 |
|
| 169 |
+
## π€ Contributing
|
|
|
|
|
|
|
| 170 |
|
| 171 |
+
This project welcomes contributions! Here's how you can help:
|
|
|
|
|
|
|
| 172 |
|
| 173 |
+
1. **Content Improvements**
|
| 174 |
+
- Add new interactive examples
|
| 175 |
+
- Improve existing visualizations
|
| 176 |
+
- Update documentation and guides
|
| 177 |
+
- Share prompt engineering techniques
|
| 178 |
|
| 179 |
2. **Technical Enhancements**
|
| 180 |
- Optimize JavaScript performance
|
ml_complete-all-topics/app.js
CHANGED
|
@@ -148,43 +148,26 @@ function initSections() {
|
|
| 148 |
// Smooth scroll for TOC links
|
| 149 |
function initTOCLinks() {
|
| 150 |
const links = document.querySelectorAll('.toc-link');
|
| 151 |
-
|
| 152 |
links.forEach(link => {
|
| 153 |
-
const href = link.getAttribute('href');
|
| 154 |
-
// Only attach handler for hash links
|
| 155 |
-
if (!href || !href.startsWith('#')) return;
|
| 156 |
-
|
| 157 |
link.addEventListener('click', (e) => {
|
| 158 |
e.preventDefault();
|
| 159 |
-
|
| 160 |
-
const targetId = href.substring(1);
|
| 161 |
const target = document.getElementById(targetId);
|
| 162 |
-
|
| 163 |
-
if (
|
| 164 |
-
//
|
| 165 |
-
console.warn(`TOC link clicked but target not found: #${targetId}`);
|
| 166 |
-
return;
|
| 167 |
-
}
|
| 168 |
-
|
| 169 |
-
try {
|
| 170 |
-
// Remove active from all links and mark this one
|
| 171 |
links.forEach(l => l.classList.remove('active'));
|
| 172 |
link.classList.add('active');
|
| 173 |
-
|
| 174 |
-
//
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
window.location.hash = '#' + targetId;
|
| 179 |
-
}
|
| 180 |
-
|
| 181 |
-
// Expand the section body if present (guarded)
|
| 182 |
-
const body = target.querySelector('.section-body');
|
| 183 |
const toggle = target.querySelector('.section-toggle');
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
console.error('Error handling TOC link click for #' + targetId, err);
|
| 188 |
}
|
| 189 |
});
|
| 190 |
});
|
|
|
|
| 148 |
// Smooth scroll for TOC links
|
| 149 |
function initTOCLinks() {
|
| 150 |
const links = document.querySelectorAll('.toc-link');
|
| 151 |
+
|
| 152 |
links.forEach(link => {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
link.addEventListener('click', (e) => {
|
| 154 |
e.preventDefault();
|
| 155 |
+
const targetId = link.getAttribute('href').substring(1);
|
|
|
|
| 156 |
const target = document.getElementById(targetId);
|
| 157 |
+
|
| 158 |
+
if (target) {
|
| 159 |
+
// Remove active from all links
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
links.forEach(l => l.classList.remove('active'));
|
| 161 |
link.classList.add('active');
|
| 162 |
+
|
| 163 |
+
// Scroll to target
|
| 164 |
+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
| 165 |
+
|
| 166 |
+
// Expand the section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
const toggle = target.querySelector('.section-toggle');
|
| 168 |
+
const body = target.querySelector('.section-body');
|
| 169 |
+
body.classList.add('expanded');
|
| 170 |
+
toggle.classList.remove('collapsed');
|
|
|
|
| 171 |
}
|
| 172 |
});
|
| 173 |
});
|