Skip to content

Commit 741abb9

Browse files
authored
Merge pull request #11 from mnaimfaizy/feature/ai-fundamentals
feat(ai): Enhance all 11 AI Fundamentals sections with beginner-friendly content
2 parents 41f0c80 + 03ffa6e commit 741abb9

19 files changed

Lines changed: 5504 additions & 9 deletions

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**🌐 Live Website**: [https://codexecutives.com](https://codexecutives.com)
66

7-
**✨ Now featuring 7 complete learning modules with 70+ interactive visualizations covering Git, JavaScript Engine, RxJS, Data Structures, Next.js, Big-O Notation, Python Programming, and a LeetCode-style playground with advanced debugging and gamification.**
7+
**✨ Now featuring 8 complete learning modules with 80+ interactive visualizations covering Git, JavaScript Engine, RxJS, Data Structures, Next.js, Big-O Notation, Python Programming, AI Fundamentals, and a LeetCode-style playground with advanced debugging and gamification.**
88

99
> **📌 Repository Maintainers**: See [REPOSITORY-ABOUT-QUICK-REFERENCE.md](./docs/REPOSITORY-ABOUT-QUICK-REFERENCE.md) for GitHub repository About section configuration (description, website, and topics).
1010
@@ -19,8 +19,8 @@
1919
- **Data Structures**: Comprehensive guide to fundamental data structures with interactive visualizations
2020
- **Big-O Notation**: Complete algorithmic complexity analysis with 10+ interactive tools and metaphors
2121
- **Python Programming**: Complete Python tutorial covering philosophy, execution model, memory management, and concurrency
22+
- **AI Fundamentals**: Machine learning concepts from scratch — neural networks, gradient descent, embeddings, and RAG pipelines
2223
- **LeetCode-Style Playground**: Interactive coding environment with debugging, visualizations, and gamification
23-
- **More modules coming soon**: Algorithms, system design, design patterns
2424

2525
### 🎮 **Interactive Visualizations**
2626

@@ -305,6 +305,24 @@ Complete Python tutorial covering the fundamental concepts that make Python uniq
305305
- **Performance Analysis**: GIL impact, memory optimization, and concurrency alternatives
306306
- **Real-world Applications**: Best practices for CPU-bound vs I/O-bound tasks, memory profiling, and optimization techniques
307307

308+
### 🤖 **AI Fundamentals (Complete)**
309+
310+
Master machine learning concepts from the ground up with interactive visualizations and beginner-friendly explanations:
311+
312+
- **Introduction to AI/ML**: Core concepts, history, and the difference between AI, ML, and deep learning — with ELI10 analogies
313+
- **ML Lifecycle**: End-to-end machine learning pipeline from data collection to model deployment
314+
- **Feature Engineering**: Transforming raw data into meaningful inputs — normalization, encoding, and selection
315+
- **Neural Networks**: How neurons, layers, and activation functions work — interactive forward pass visualization
316+
- **Loss Functions**: Understanding MSE, cross-entropy, and how models measure their own mistakes
317+
- **Gradient Descent**: Intuitive step-by-step visualization of how models learn by minimizing loss
318+
- **Backpropagation**: Chain rule demystified — interactive gradient flow through a neural network
319+
- **Generalization**: Overfitting, underfitting, bias-variance tradeoff, and regularization techniques
320+
- **Training vs Inference**: The distinction between learning and prediction, with batch/online learning modes
321+
- **Word Embeddings**: Turning text into vectors — Word2Vec, cosine similarity, and semantic relationships
322+
- **RAG Pipeline**: Retrieval-Augmented Generation — grounding LLMs with external knowledge stores
323+
- **Beginner Friendly**: Every section includes ELI10 boxes, real-world analogies, and key takeaways
324+
- **11 Interactive Sections**: Progressive visualizations guiding learners from zero ML knowledge to RAG pipelines
325+
308326
### 🎯 **LeetCode-Style Playground (Complete)**
309327

310328
Interactive coding environment that transforms algorithm learning through visual debugging and gamification:
@@ -396,14 +414,14 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
396414
- 📧 **Issues**: Report bugs or request features via GitHub Issues
397415
- 💬 **Discussions**: Join community discussions for questions and ideas
398416
- 📖 **Documentation**: Comprehensive docs available in the `/docs` directory
399-
- 🎓 **Learning Modules**: 7 complete interactive modules with 70+ visualizations
417+
- 🎓 **Learning Modules**: 8 complete interactive modules with 80+ visualizations
400418
- 🎯 **Playground**: LeetCode-style coding environment with debugging and gamification
401419

402420
---
403421

404422
**Built with ❤️ for developers, by developers**
405423

406-
_Transform your understanding of programming concepts through interactive visualization and hands-on learning. Master modern web development with our comprehensive Next.js, Git, JavaScript, RxJS, Data Structures, Big-O Notation, and Python Programming modules. Practice algorithms with our LeetCode-style playground featuring advanced debugging, real-time visualizations, and gamification._
424+
_Transform your understanding of programming concepts through interactive visualization and hands-on learning. Master modern web development with our comprehensive Next.js, Git, JavaScript, RxJS, Data Structures, Big-O Notation, Python Programming, and AI Fundamentals modules. Practice algorithms with our LeetCode-style playground featuring advanced debugging, real-time visualizations, and gamification._
407425

408426
## 3D/2D Visualization Architecture
409427

src/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const BigOPage = lazy(() => import('./features/bigo'));
2727
const PythonPage = lazy(() => import('./features/python'));
2828
const SystemDesignPage = lazy(() => import('./features/systemdesign'));
2929
const TypeScriptPage = lazy(() => import('./features/typescript'));
30+
const AIFundamentalsPage = lazy(() => import('./features/ai'));
3031

3132
const App: React.FC = () => {
3233
// Initialize analytics on app mount
@@ -154,6 +155,14 @@ const App: React.FC = () => {
154155
</SuspenseRoute>
155156
}
156157
/>
158+
<Route
159+
path="/ai"
160+
element={
161+
<SuspenseRoute>
162+
<AIFundamentalsPage />
163+
</SuspenseRoute>
164+
}
165+
/>
157166
</Routes>
158167
</main>
159168
</div>

src/components/Header.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
ChevronDown,
1515
BookOpen,
1616
Boxes,
17+
Brain,
1718
} from 'lucide-react';
1819
import { useUI } from '../shared/contexts';
1920

@@ -109,6 +110,12 @@ const Header: React.FC = () => {
109110
icon: <GitBranch className="w-4 h-4" />,
110111
description: 'Version control mastery',
111112
},
113+
{
114+
label: 'AI Fundamentals',
115+
path: '/ai',
116+
icon: <Brain className="w-4 h-4" />,
117+
description: 'AI & Machine Learning fundamentals',
118+
},
112119
],
113120
},
114121
];
@@ -172,6 +179,7 @@ const Header: React.FC = () => {
172179
if (path === '/git') return 'text-orange-600 bg-orange-50';
173180
if (path === '/datastructures' || path === '/systemdesign') return 'text-blue-600 bg-blue-50';
174181
if (path === '/bigo') return 'text-purple-600 bg-purple-50';
182+
if (path === '/ai') return 'text-rose-600 bg-rose-50';
175183
return 'text-gray-700 hover:bg-gray-50';
176184
};
177185

src/components/Sidebar.tsx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ const getThemeColorClass = (
5252
buttonHover: 'hover:text-emerald-600',
5353
border: 'border-emerald-100',
5454
},
55+
rose: {
56+
active: 'bg-rose-100 text-rose-800 border-rose-500',
57+
hover: 'hover:bg-rose-50 hover:text-rose-700',
58+
buttonActive: 'text-rose-600 hover:text-rose-700',
59+
buttonHover: 'hover:text-rose-600',
60+
border: 'border-rose-100',
61+
},
5562
};
5663

5764
const colors = colorMap[theme.primary] || colorMap.blue;
@@ -299,6 +306,19 @@ const sidebarSections: Record<string, Array<SidebarItem>> = {
299306
{ label: 'Best Practices', path: '/typescript?section=Best%20Practices' },
300307
{ label: 'Migration Guide', path: '/typescript?section=Migration%20Guide' },
301308
],
309+
'/ai': [
310+
{ label: 'Introduction', path: '/ai?section=Introduction' },
311+
{ label: 'ML Lifecycle', path: '/ai?section=ML%20Lifecycle' },
312+
{ label: 'Feature Engineering', path: '/ai?section=Feature%20Engineering' },
313+
{ label: 'Neural Networks', path: '/ai?section=Neural%20Networks' },
314+
{ label: 'Loss Functions', path: '/ai?section=Loss%20Functions' },
315+
{ label: 'Gradient Descent', path: '/ai?section=Gradient%20Descent' },
316+
{ label: 'Backpropagation', path: '/ai?section=Backpropagation' },
317+
{ label: 'Generalization', path: '/ai?section=Generalization' },
318+
{ label: 'Training vs Inference', path: '/ai?section=Training%20vs%20Inference' },
319+
{ label: 'Word Embeddings', path: '/ai?section=Word%20Embeddings' },
320+
{ label: 'RAG Pipeline', path: '/ai?section=RAG%20Pipeline' },
321+
],
302322
'/': [],
303323
'/about': [],
304324
};
@@ -323,7 +343,9 @@ const Sidebar: React.FC = () => {
323343
| 'bigo'
324344
| 'python'
325345
| 'systemdesign'
326-
| 'typescript' => {
346+
| 'typescript'
347+
| 'ai' => {
348+
if (path.includes('/ai')) return 'ai';
327349
if (path.includes('javascript')) return 'javascript';
328350
if (path.includes('python')) return 'python';
329351
if (path.includes('react')) return 'react';
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import React, { Suspense } from 'react';
2+
import { useLocation } from 'react-router-dom';
3+
4+
// Lazy load section components for better performance
5+
import Introduction from './components/sections/Introduction';
6+
const MLLifecycle = React.lazy(() => import('./components/sections/MLLifecycle'));
7+
const FeatureEngineering = React.lazy(() => import('./components/sections/FeatureEngineering'));
8+
const NeuralNetworks = React.lazy(() => import('./components/sections/NeuralNetworks'));
9+
const LossFunctions = React.lazy(() => import('./components/sections/LossFunctions'));
10+
const GradientDescent = React.lazy(() => import('./components/sections/GradientDescent'));
11+
const Backpropagation = React.lazy(() => import('./components/sections/Backpropagation'));
12+
const Generalization = React.lazy(() => import('./components/sections/Generalization'));
13+
const TrainingVsInference = React.lazy(() => import('./components/sections/TrainingVsInference'));
14+
const WordEmbeddings = React.lazy(() => import('./components/sections/WordEmbeddings'));
15+
const RAGPipeline = React.lazy(() => import('./components/sections/RAGPipeline'));
16+
17+
const sectionComponents: Record<string, React.ComponentType> = {
18+
Introduction,
19+
'ML Lifecycle': MLLifecycle,
20+
'Feature Engineering': FeatureEngineering,
21+
'Neural Networks': NeuralNetworks,
22+
'Loss Functions': LossFunctions,
23+
'Gradient Descent': GradientDescent,
24+
Backpropagation,
25+
Generalization,
26+
'Training vs Inference': TrainingVsInference,
27+
'Word Embeddings': WordEmbeddings,
28+
'RAG Pipeline': RAGPipeline,
29+
};
30+
31+
function useQuery(): URLSearchParams {
32+
return new URLSearchParams(useLocation().search);
33+
}
34+
35+
const AIFundamentalsPage: React.FC = () => {
36+
const query = useQuery();
37+
const section = query.get('section') || 'Introduction';
38+
const Component = sectionComponents[section] || Introduction;
39+
40+
return (
41+
<div className="p-4 sm:p-6">
42+
<Suspense
43+
fallback={
44+
<div className="flex items-center justify-center h-64">
45+
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-rose-600"></div>
46+
</div>
47+
}
48+
>
49+
<Component />
50+
</Suspense>
51+
</div>
52+
);
53+
};
54+
55+
export default AIFundamentalsPage;

0 commit comments

Comments
 (0)