pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::AttributionGraph::Node Struct Reference

#include <attribution_graph.hpp>

Public Attributes

std::string node_id
 Unique id, for example "3_17_5" (layer, feature, position). Links refer to it.
 
std::optional< int64_t > feature
 The feature's index; the viewer groups nodes with the same layer and feature.
 
std::string layer
 "E" for an embedding, a layer number, or the logit layer.
 
int64_t ctx_idx = 0
 
std::string feature_type
 "embedding" and "logit" are special; a type containing "error" is drawn as an error node; anything else is drawn as a feature.
 
std::string js_node_id
 The viewer's id for hover state across prompts.
 
std::string clerp
 The node's label. A logit's must hold (p=PROBABILITY): the viewer reads it.
 
std::optional< double > influence
 Cumulative influence (0 to 1); the viewer hides nodes above its pruning threshold.
 
std::optional< double > activation
 
double token_prob = 0.0
 
bool is_target_logit = false
 

Member Data Documentation

◆ activation

std::optional<double> pulsatrix::AttributionGraph::Node::activation

◆ clerp

std::string pulsatrix::AttributionGraph::Node::clerp

The node's label. A logit's must hold (p=PROBABILITY): the viewer reads it.

◆ ctx_idx

int64_t pulsatrix::AttributionGraph::Node::ctx_idx = 0

◆ feature

std::optional<int64_t> pulsatrix::AttributionGraph::Node::feature

The feature's index; the viewer groups nodes with the same layer and feature.

◆ feature_type

std::string pulsatrix::AttributionGraph::Node::feature_type

"embedding" and "logit" are special; a type containing "error" is drawn as an error node; anything else is drawn as a feature.

◆ influence

std::optional<double> pulsatrix::AttributionGraph::Node::influence

Cumulative influence (0 to 1); the viewer hides nodes above its pruning threshold.

◆ is_target_logit

bool pulsatrix::AttributionGraph::Node::is_target_logit = false

◆ js_node_id

std::string pulsatrix::AttributionGraph::Node::js_node_id

The viewer's id for hover state across prompts.

◆ layer

std::string pulsatrix::AttributionGraph::Node::layer

"E" for an embedding, a layer number, or the logit layer.

◆ node_id

std::string pulsatrix::AttributionGraph::Node::node_id

Unique id, for example "3_17_5" (layer, feature, position). Links refer to it.

◆ token_prob

double pulsatrix::AttributionGraph::Node::token_prob = 0.0

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