# ssmele/c2aeintorch architecture

> Architecture diagram of the GitHub repository ssmele/c2aeintorch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ssmele/c2aeintorch
- Repository: https://github.com/ssmele/c2aeintorch

## Overview

##### Project Type Analysis
This is a machine learning project specifically focused on implementing a deep learning architecture for multi-label classification. The project contains multiple training notebooks for different datasets (MediaMill, Scene, TMC) and different approaches (C2AE vs. Naive).

##### Main Components

A. Data Flow Components:
- Input Layer (Raw Data)
- Feature Extraction Pipeline
- C2AE Architecture Components:
- Encoder Network
- Decoder Network
- Canonical Correlation Layer
- Output Layer (Multi-label Predictions)

B. Training Components:
- Training Pipeline
- Loss Functions
- Optimization Process

- [Input Data] → [Preprocessing] → [C2AE Architecture] → [Output Predictions]

##### Important Elements to Highlight
- Different training paths for C2AE vs. Naive approaches
- Dataset-specific processing (MediaMill, Scene, TMC)
- Model evaluation metrics
- PyTorch implementation specifics

##### Relationships
- Loss computation paths
- Validation flows

##### Technical Details
- PyTorch framework integration
- Required dependencies (from reqs.txt)
- Training configurations
- Model architecture specifications

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Input
        RawData[Raw Data]
        DataSets[(Datasets)]
    end

    subgraph "Training Notebooks"
        direction TB
        MediaC2AE["MediaMill C2AE Training"]:::notebook
        MediaNaive["MediaMill Naive Training"]:::notebook
        SceneC2AE["Scene C2AE Training"]:::notebook
        SceneNaive["Scene Naive Training"]:::notebook
        TMCC2AE["TMC C2AE Training"]:::notebook
        TMCNaive["TMC Naive Training"]:::notebook
        SVM["One-Vs-All SVM"]:::notebook
    end

    subgraph "C2AE Architecture"
        direction TB
        Encoder["Encoder Network"]
        CCA["Canonical Correlation Layer"]
        Decoder["Decoder Network"]
        C2AEImpl["C2AE Implementation"]:::core
    end

    subgraph "Output"
        Predictions["Multi-label Predictions"]
        Evaluation["Model Evaluation"]
    end

    subgraph "Documentation"
        TechDoc["Technical Documentation"]:::doc
        ReadMe["README"]:::doc
        Reqs["Requirements"]:::doc
    end

    %% Relationships
    RawData --> DataSets
    DataSets --> MediaC2AE & MediaNaive & SceneC2AE & SceneNaive & TMCC2AE & TMCNaive & SVM
    
    MediaC2AE & SceneC2AE & TMCC2AE --> C2AEImpl
    MediaNaive & SceneNaive & TMCNaive --> C2AEImpl
    
    C2AEImpl --> Encoder
    Encoder --> CCA
    CCA --> Decoder
    Decoder --> Predictions
    
    Predictions --> Evaluation

    %% Styling
    classDef notebook fill:#f9f,stroke:#333,stroke-width:2px
    classDef core fill:#ff9,stroke:#333,stroke-width:2px
    classDef doc fill:#9ff,stroke:#333,stroke-width:2px

    %% Click events
    click C2AEImpl "https://github.com/ssmele/C2AEinTorch/blob/master/C2AE.py"
    click MediaC2AE "https://github.com/ssmele/C2AEinTorch/blob/master/MediaMillC2AETraining.ipynb"
    click MediaNaive "https://github.com/ssmele/C2AEinTorch/blob/master/MediaNaiveTraining.ipynb"
    click SceneC2AE "https://github.com/ssmele/C2AEinTorch/blob/master/SceneC2AETraining.ipynb"
    click SceneNaive "https://github.com/ssmele/C2AEinTorch/blob/master/SceneNaiveTraining.ipynb"
    click TMCC2AE "https://github.com/ssmele/C2AEinTorch/blob/master/TMCC2AETraining.ipynb"
    click TMCNaive "https://github.com/ssmele/C2AEinTorch/blob/master/TMCNaiveTraining.ipynb"
    click SVM "https://github.com/ssmele/C2AEinTorch/blob/master/OneVsAllSvmAllDatasets.ipynb"
    click TechDoc "https://github.com/ssmele/C2AEinTorch/blob/master/Mele_StructPred_FinalProj.pdf"
    click ReadMe "https://github.com/ssmele/C2AEinTorch/blob/master/README.md"
    click Reqs "https://github.com/ssmele/C2AEinTorch/blob/master/reqs.txt"
```
