Seismogram

The Seismogram class is the data provider for a notebook session.

Constructor

Seismogram(*args, **kwargs)

Seismogram is the main orchestrator for the seismometer package.

Initialization

Seismogram.create_cohorts()

Creates data columns for each cohort defined in configuration.

Seismogram.load_data(*[, predictions, ...])

Loads the seismogram data.

Properties and Accessors

Seismogram.events

DataFrame of events which include the target event and other outcomes.

Seismogram.events_columns

Event descriptions.

Seismogram.event_aggregation_method(event_col)

Gets the strategy for aggregating scores with respect to the specified event.

Seismogram.event_merge_strategy(event_col)

Gets the strategy for merging scores with respect to the specified event.

Seismogram.target

Name of the target.

Seismogram.target_cols

List of target descriptors, the display name of the event type, for targets.

Seismogram.target_event

Name of the target event.

Seismogram.time_zero

The time associated with the primary target event.

Seismogram.output

The first configured model output (score).

Seismogram.dataframe

The working dataframe core to the analyses.

Seismogram.output_path

The location to write output files.

Seismogram.censor_threshold

Minimum number of observations for a cohort to be included.

Seismogram.prediction_count

Number of predictions in the data.

Seismogram.entity_count

Number of unique prediction entities in the data.

Seismogram.feature_count

Number of features in the data.

Seismogram.start_time

Earliest prediction time.

Seismogram.end_time

Latest prediction time.

Seismogram.event_types_count

Number of unique outcome KPIs in the data.

Seismogram.cohort_attribute_count

Number of unique cohort attributes by usage definition.

Seismogram.score_bins()

Updates the active values for notebook-scoped selections.