Spaces:
Running
Running
Commit Β·
d1f1dcc
1
Parent(s): 2e5b547
update files
Browse files- README.md +52 -71
- ml_complete-all-topics/app.js +30 -13
README.md
CHANGED
|
@@ -1,17 +1,19 @@
|
|
| 1 |
# π DataScience Learning Hub
|
| 2 |
|
| 3 |
-
Welcome
|
| 4 |
|
| 5 |
-
## π―
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
|
|
|
|
|
|
| 15 |
|
| 16 |
## π Prompt Engineering Resources
|
| 17 |
|
|
@@ -76,83 +78,62 @@ The repository supports automatic updates for:
|
|
| 76 |
- Additional learning resources and examples
|
| 77 |
- Community contributions and fixes
|
| 78 |
|
| 79 |
-
## π
|
| 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 |
-
|
| 94 |
|
| 95 |
-
|
| 96 |
|
| 97 |
```bash
|
| 98 |
-
#
|
| 99 |
python3 -m http.server 8000
|
| 100 |
|
| 101 |
-
#
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
```
|
| 104 |
|
| 105 |
-
|
| 106 |
|
| 107 |
-
## Deploy
|
| 108 |
|
| 109 |
-
1. Push
|
| 110 |
-
2. In
|
| 111 |
-
3. Save
|
| 112 |
|
| 113 |
-
|
| 114 |
|
| 115 |
-
|
|
|
|
|
|
|
| 116 |
|
| 117 |
-
### Statistics Course
|
| 118 |
-
```
|
| 119 |
complete-statistics/
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
```
|
| 124 |
|
| 125 |
-
### Machine Learning Guide
|
| 126 |
-
```
|
| 127 |
ml_complete-all-topics/
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
```
|
| 132 |
|
| 133 |
-
### Data Visualization
|
| 134 |
-
```
|
| 135 |
Visualization/
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
```
|
| 140 |
|
| 141 |
-
### Mathematics for Data Science
|
| 142 |
-
```
|
| 143 |
math-ds-complete/
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
```
|
| 148 |
|
| 149 |
-
### Feature Engineering Guide
|
| 150 |
-
```
|
| 151 |
feature-engineering/
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
```
|
| 156 |
|
| 157 |
## Notes about repository cleanup
|
| 158 |
|
|
@@ -166,15 +147,15 @@ While repairing the repository I removed macOS Finder metadata files (names begi
|
|
| 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 |
-
|
|
|
|
|
|
|
| 172 |
|
| 173 |
-
|
| 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
|
|
|
|
| 1 |
# π DataScience Learning Hub
|
| 2 |
|
| 3 |
+
Welcome β a small collection of interactive, static web projects for learning statistics, machine learning, visualization and maths. Each project is a standalone static site you can open directly in the browser or serve with a tiny static server.
|
| 4 |
|
| 5 |
+
## π― Quick access (deployed + local)
|
| 6 |
|
| 7 |
+
Below are direct links you can use after deploying the repository to GitHub Pages (or any static host). Each also shows the local/relative path you can use while previewing from the repo root.
|
| 8 |
|
| 9 |
+
GitHub Pages base: https://aashishgarg13.github.io/DataScience/
|
| 10 |
+
|
| 11 |
+
- π Interactive Statistics Course β Deployed: https://aashishgarg13.github.io/DataScience/complete-statistics/ | Local: `complete-statistics/`
|
| 12 |
+
- π€ Machine Learning Guide β Deployed: https://aashishgarg13.github.io/DataScience/ml_complete-all-topics/ | Local: `ml_complete-all-topics/`
|
| 13 |
+
- π Data Visualization β Deployed: https://aashishgarg13.github.io/DataScience/Visualization/ | Local: `Visualization/`
|
| 14 |
+
- π’ Mathematics for Data Science β Deployed: https://aashishgarg13.github.io/DataScience/math-ds-complete/ | Local: `math-ds-complete/`
|
| 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 |
- Additional learning resources and examples
|
| 79 |
- Community contributions and fixes
|
| 80 |
|
| 81 |
+
## π Try locally (quick)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
Option A β open a project's `index.html` directly from Finder (double-click the file). Some interactive features are more reliable when served via HTTP.
|
| 84 |
|
| 85 |
+
Option B β serve the repo root with a tiny static server (recommended):
|
| 86 |
|
| 87 |
```bash
|
| 88 |
+
# from repository root
|
| 89 |
python3 -m http.server 8000
|
| 90 |
|
| 91 |
+
# then open one of these in your browser (example):
|
| 92 |
+
http://localhost:8000/complete-statistics/
|
| 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 |
+
Tip: Using a local server avoids browser file:// restrictions (CORS, modules, etc.) and ensures the JS visualizations behave the same as on a real host.
|
| 100 |
|
| 101 |
+
## π¦ Deploy (GitHub Pages)
|
| 102 |
|
| 103 |
+
1. Push `main` to GitHub.
|
| 104 |
+
2. In the repo on GitHub β Settings β Pages, set the Source to the `main` branch and the folder to `/ (root)`.
|
| 105 |
+
3. Save and wait a few minutes; your projects will be available under:
|
| 106 |
|
| 107 |
+
`https://<your-username>.github.io/DataScience/<folder>/` (for example the links above).
|
| 108 |
|
| 109 |
+
Note: these projects use relative paths for assets (`style.css`, `app.js`), so they work correctly when served from a subpath such as `/DataScience/complete-statistics/`.
|
| 110 |
+
|
| 111 |
+
## π Project structure (example)
|
| 112 |
|
|
|
|
|
|
|
| 113 |
complete-statistics/
|
| 114 |
+
- `index.html` β main course interface
|
| 115 |
+
- `style.css`
|
| 116 |
+
- `app.js`
|
|
|
|
| 117 |
|
|
|
|
|
|
|
| 118 |
ml_complete-all-topics/
|
| 119 |
+
- `index.html` β machine learning guide
|
| 120 |
+
- `style.css`
|
| 121 |
+
- `app.js`
|
|
|
|
| 122 |
|
|
|
|
|
|
|
| 123 |
Visualization/
|
| 124 |
+
- `index.html` β visualization examples
|
| 125 |
+
- `style.css`
|
| 126 |
+
- `app.js`
|
|
|
|
| 127 |
|
|
|
|
|
|
|
| 128 |
math-ds-complete/
|
| 129 |
+
- `index.html` β mathematics for data science
|
| 130 |
+
- `style.css`
|
| 131 |
+
- `app.js`
|
|
|
|
| 132 |
|
|
|
|
|
|
|
| 133 |
feature-engineering/
|
| 134 |
+
- `index.html` β feature engineering notes and demos
|
| 135 |
+
- `style.css`
|
| 136 |
+
- `app.js`
|
|
|
|
| 137 |
|
| 138 |
## Notes about repository cleanup
|
| 139 |
|
|
|
|
| 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 & improvements
|
| 151 |
+
|
| 152 |
+
Helpful things you can do:
|
| 153 |
|
| 154 |
+
- Add screenshots or small thumbnails for each project folder (I can add these if you provide images).
|
| 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 |
+
Tell me which of these you'd like and I'll implement it.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
2. **Technical Enhancements**
|
| 161 |
- Optimize JavaScript performance
|
ml_complete-all-topics/app.js
CHANGED
|
@@ -148,26 +148,43 @@ function initSections() {
|
|
| 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 |
-
|
|
|
|
| 156 |
const target = document.getElementById(targetId);
|
| 157 |
-
|
| 158 |
-
if (target) {
|
| 159 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
links.forEach(l => l.classList.remove('active'));
|
| 161 |
link.classList.add('active');
|
| 162 |
-
|
| 163 |
-
//
|
| 164 |
-
target.scrollIntoView
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
|
|
|
|
|
|
|
|
|
| 168 |
const body = target.querySelector('.section-body');
|
| 169 |
-
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
| 171 |
}
|
| 172 |
});
|
| 173 |
});
|
|
|
|
| 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 (!target) {
|
| 164 |
+
// target not present in DOM; warn and do nothing
|
| 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 |
+
// Smooth scroll to the section
|
| 175 |
+
if (typeof target.scrollIntoView === 'function') {
|
| 176 |
+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
| 177 |
+
} else {
|
| 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 |
+
if (body && body.classList) body.classList.add('expanded');
|
| 185 |
+
if (toggle && toggle.classList) toggle.classList.remove('collapsed');
|
| 186 |
+
} catch (err) {
|
| 187 |
+
console.error('Error handling TOC link click for #' + targetId, err);
|
| 188 |
}
|
| 189 |
});
|
| 190 |
});
|