1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Generative Adversarial Network for Code Generation
//!
//! Implements a GAN architecture for generating valid Rust AST candidates:
//! - Generator: Maps latent vectors to Rust AST token sequences
//! - Discriminator: Classifies code as real (valid) or fake (invalid)
//!
//! # Architecture
//!
//! ```text
//! Latent Vector z ─┬─► Generator ─► AST Tokens ─┬─► Discriminator ─► Valid/Invalid
//! │ │
//! │ Real AST Samples ────────┘
//! │
//! └── (sampled from N(0, I))
//! ```
//!
//! # Example
//!
//! ```rust
//! use entrenar::generative::{CodeGan, CodeGanConfig};
//!
//! let config = CodeGanConfig::default();
//! let mut gan = CodeGan::new(config);
//!
//! // Training loop would alternate between generator and discriminator updates
//! ```
pub use ;
pub use ;
pub use ;
pub use Generator;
pub use LatentCode;