pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::ComponentAlignment Struct Reference

How well a layer's subcomponents line up with its target weight's rows, the input features (SPD's toy-model measure): for each input feature j, the best cosine over c between subcomponent c's row j, V[j, c] U[c, :], and the target's row j (MMCS), and that subcomponent's norm over the target row's (ML2R). More...

#include <parameter_decomposition.hpp>

Public Attributes

double mean_max_cosine = 0
 
double mean_norm_ratio = 0
 
std::vector< int64_t > best
 Per input feature: the best subcomponent.
 

Detailed Description

How well a layer's subcomponents line up with its target weight's rows, the input features (SPD's toy-model measure): for each input feature j, the best cosine over c between subcomponent c's row j, V[j, c] U[c, :], and the target's row j (MMCS), and that subcomponent's norm over the target row's (ML2R).

Member Data Documentation

◆ best

std::vector<int64_t> pulsatrix::ComponentAlignment::best

Per input feature: the best subcomponent.

◆ mean_max_cosine

double pulsatrix::ComponentAlignment::mean_max_cosine = 0

◆ mean_norm_ratio

double pulsatrix::ComponentAlignment::mean_norm_ratio = 0

The documentation for this struct was generated from the following file: