Aashish34 commited on
Commit
9e72d36
Β·
1 Parent(s): 0010c17

Revert "update files"

Browse files

This reverts commit 0010c17d0469171851cef96de7af19529fb0a7b1.

Files changed (2) hide show
  1. README.md +71 -52
  2. ml_complete-all-topics/app.js +13 -30
README.md CHANGED
@@ -1,19 +1,17 @@
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,62 +76,83 @@ The repository supports automatic updates for:
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,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 & 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
 
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 (!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
  });
 
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
  });