pulsatrix
Loading...
Searching...
No Matches
attribution_bar_chart.hpp
Go to the documentation of this file.
1
5#pragma once
6
8
9namespace pulsatrix {
10
25public:
37 static void Draw(const char* title, const Attribution& attr, int top_k = 10, float shared_max_abs = -1.0f);
38};
39
40} // namespace pulsatrix
First-class explanation result type – values, method, and metadata together.
Draws a horizontal bar chart of an Attribution's top-k features (hc_information_visualization....
Definition attribution_bar_chart.hpp:24
static void Draw(const char *title, const Attribution &attr, int top_k=10, float shared_max_abs=-1.0f)
Definition acquisition_functions.hpp:16
TopKResult top_k(const Tensor &input, int64_t k, bool largest=true)
Selects the k largest (or smallest) entries of every row along the last dimension.
An explanation result: the raw attribution values, the method that produced them, and any relevant me...
Definition attribution.hpp:23