Code Examples
Complete, runnable code examples demonstrating AiDotNet features.
Example Categories
Getting Started
| Example | Description | Difficulty |
|---|---|---|
| Tensor Basics | Creating and manipulating tensors | Beginner |
| Neural Network Training | Training a simple neural network | Beginner |
Machine Learning
| Example | Description | Difficulty |
|---|---|---|
| Clustering | Customer segmentation with K-Means and DBSCAN | Intermediate |
| Mixture of Experts | Advanced MoE architecture | Advanced |
Deep Learning
| Example | Description | Difficulty |
|---|---|---|
| Transformer Models | Building and using transformers | Intermediate |
Running Examples
All examples can be run with:
# Clone the repository
git clone https://github.com/ooples/AiDotNet.git
cd AiDotNet
# Run a specific example
dotnet run --project samples/TensorBasics
Interactive Playground
Try examples directly in your browser with the AiDotNet Playground.
Contributing Examples
We welcome new examples! See our Contributing Guide for details.