icat.histogram.Histogram#
- class icat.histogram.Histogram(width=400, **params)#
Bases:
Viewer
Histogram to show the distribution of prediction outputs from the model on some set of the data. Anything above .5 is appropriate colored to orange for interesting.
This is done via a Vega pane.
- Parameters:
width (int) – How wide to render the histogram.
Methods
__init__
([width])debug
(**kwargs)Inspect .param.debug method for the full docstring
defaults
(**kwargs)Inspect .param.defaults method for the full docstring
force_new_dynamic_value
(**kwargs)Inspect .param.force_new_dynamic_value method for the full docstring
get_param_values
(**kwargs)Inspect .param.get_param_values method for the full docstring
get_value_generator
(**kwargs)Inspect .param.get_value_generator method for the full docstring
Use altair to create the bar chart for the current data.
inspect_value
(**kwargs)Inspect .param.inspect_value method for the full docstring
message
(**kwargs)Inspect .param.message method for the full docstring
params
(**kwargs)Inspect .param.params method for the full docstring
pprint
(*args, **kwargs)print_param_defaults
(*args, **kwargs)Inspect .param.print_param_defaults method for the full docstring
print_param_values
(**kwargs)Inspect .param.print_param_values method for the full docstring
script_repr
([imports, prefix])Deprecated variant of __repr__ designed for generating a runnable script.
servable
([title, location, area, target])Serves the object or adds it to the configured pn.state.template if in a panel serve context, writes to the DOM if in a pyodide context and returns the Panel object to allow it to display itself in a notebook context.
set_data
(df, prediction_col)Re-generate the histogram given the passed data (which should already include the prediction values.)
set_default
(*args, **kwargs)Inspect .param.set_default method for the full docstring
set_dynamic_time_fn
(**kwargs)Inspect .param.set_dynamic_time_fn method for the full docstring
set_param
(**kwargs)Inspect .param.set_param method for the full docstring
show
([title, port, address, ...])Starts a Bokeh server and displays the Viewable in a new tab.
state_pop
()Restore the most recently saved state.
state_push
()Save this instance's state.
verbose
(**kwargs)Inspect .param.verbose method for the full docstring
warning
(**kwargs)Inspect .param.warning method for the full docstring
Attributes
param
- get_vega_graph()#
Use altair to create the bar chart for the current data.
- Return type:
Chart
- name = 'Histogram'#
- set_data(df, prediction_col)#
Re-generate the histogram given the passed data (which should already include the prediction values.)
- Parameters:
df (pd.DataFrame) – The dataset with a column of prediction outputs in it.
prediction_col (str) – The name of the column with prediction outputs.