OORL.MCGS (object v0.1.2)
Monte Carlo Graph Search implementation with Graph Attention and Contrastive Learning.
Implements AAOS Section 7.7 specifications for:
- Graph attention mechanisms
- Contrastive learning for feature representation
- Multi-head attention for complex graph structures
- Feature embedding optimization
Summary
Functions
Calculates feature similarity for contrastive learning validation.
Performs Monte Carlo Graph Search with attention and contrastive learning.
Validates contrastive learning feature representation quality.
Types
Functions
Calculates feature similarity for contrastive learning validation.
Parameters
features1
: First feature vectorfeatures2
: Second feature vectortemperature
: Contrastive learning temperature
Returns
Similarity score between 0 and 1
Performs Monte Carlo Graph Search with attention and contrastive learning.
Parameters
start_node
: Starting node IDgraph
: Graph structure with nodes, edges, and featuresgoal_nodes
: List of goal node IDsoptions
: Search configuration
Returns
{:ok, search_results}
with path, attention weights, and learned features
Examples
iex> OORL.MCGS.graph_search(1, graph, [45, 50], %{iterations: 500})
{:ok, %{path: [1, 3, 7, 45], attention_weights: weights, features: embeddings}}
Validates contrastive learning feature representation quality.
Parameters
positive_pairs
: List of {feature1, feature2} tuples that should be similarnegative_pairs
: List of {feature1, feature2} tuples that should be dissimilartemperature
: Contrastive temperature parameter
Returns
{:ok, validation_results}
with similarity metrics