The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 123 new columns ({'uw_decline_flag', 'actual_lapse_rate', 'reinsurance_arrangement', 'lapse_duration_year', 'policy_term_years', 'mortality_ratio_ae', 'systolic_bp_mmhg', 'diabetes_type', 'country_iso3', 'rcp_scenario', 'hba1c_percent', 'net_amount_at_risk_usd', 'alcohol_drinks_per_week', 'lapse_reason', 'egfr_ml_min', 'socioeconomic_mortality_gradient', 'life_expectancy_at_observation', 'cohort_birth_year', 'issue_date', 'claim_investigation_flag', 'medical_exam_type', 'weight_lbs', 'prior_cardiovascular_event_flag', 'uw_examiner_id', 'contestability_flag', 'attained_age', 'contractual_service_margin_usd', 'longevity_percentile', 'reinsurance_ceded_flag', 'longevity_risk_class', 'premium_financing_flag', 'improvement_scale', 'interest_credited_rate_pct', 'education_level', 'mortality_improvement_factor', 'zip_code_health_index', 'mortality_loading_factor', 'lapse_flag', 'product_type', 'policy_loan_flag', 'lapse_date', 'cash_value_usd', 'surrender_charge_schedule', 'uw_postpone_flag', 'death_claim_date', 'mib_flag', 'total_cholesterol_mgdl', 'annual_income_usd', 'guaranteed_minimum_credited_rate_pct', 'policy_reserve_stat_usd', 'prior_cancer_type', 'mortality_table_basis', 'extended_term_flag', 'family_history_longevity_flag', 'foreign_travel_flag', 'marital_status', 'cotinine_positive_flag', 'policy_year', 'life_expectancy_at_issue', 'glucose_fasting_mgdl', 'genomic_risk_score_flag', 'churning_flag', 'family_history_cancer_flag', 'paid_up_status_flag', 'cause_of_death', 'policy_id', 'heat_stress_mortality_adj', 'profit_margin_pct', 'loan_outstanding_usd', 'prior_cancer_years_since', 'premium_persistency_index', 'hdl_cholesterol_mgdl', 'prior_cancer_flag', 'pandemic_excess_mortality_pct', 'prescription_drug_flag', 'flat_extra_premium_per_1k', 'copd_severity', 'uw_decision_days', 'pandemic_stress_flag', 'interest_rate_environment', 'exchange_1035_flag', 'uw_exclusion_rider_flag', 'family_history_cad_flag', 'smoker_status', 'build_bmi', 'policy_reserve_gaap_usd', 'embedded_value_usd', 'mental_health_flag', 'psa_ng_ml', 'issue_age', 'gompertz_makeham_a', 'distribution_channel', 'reinstatement_flag', 'excess_mortality_delta_qx', 'socioeconomic_index', 'wearable_activity_score', 'policy_reserve_ifrs17_usd', 'loan_to_value_ratio', 'wearable_data_flag', 'coverage_amount_usd', 'state_of_issue', 'accelerated_uw_algorithm_flag', 'gompertz_makeham_b', 'expected_lapse_rate', 'internal_rate_of_return_pct', 'claim_amount_paid_usd', 'height_inches', 'expected_mortality_rate_qx', 'premium_mode', 'actual_mortality_rate_qx', 'occupation_class', 'genomic_longevity_prs', 'gompertz_makeham_c', 'shock_lapse_flag', 'cholesterol_hdl_ratio', 'loss_component_flag', 'premium_amount_usd', 'death_claim_flag', 'attending_physician_statement_flag', 'replacement_policy_flag', 'table_rating_number', 'diastolic_bp_mmhg', 'aviation_avocation_flag'}) and 6 missing columns ({'death_claims', 'mean_ae', 'count', 'mean_qx_actual', 'mean_lapse_rate', 'mean_qx_expected'}).
This happened while the csv dataset builder was generating data using
hf://datasets/xpertsystems/ins004-sample/life_risk_policies.csv (at revision cd08fa91ae91397b8bf10a11a47b07f94f52907f), [/tmp/hf-datasets-cache/medium/datasets/16143299396634-config-parquet-and-info-xpertsystems-ins004-sampl-9dad33d1/hub/datasets--xpertsystems--ins004-sample/snapshots/cd08fa91ae91397b8bf10a11a47b07f94f52907f/ae_summary_by_class.csv (origin=hf://datasets/xpertsystems/ins004-sample@cd08fa91ae91397b8bf10a11a47b07f94f52907f/ae_summary_by_class.csv), /tmp/hf-datasets-cache/medium/datasets/16143299396634-config-parquet-and-info-xpertsystems-ins004-sampl-9dad33d1/hub/datasets--xpertsystems--ins004-sample/snapshots/cd08fa91ae91397b8bf10a11a47b07f94f52907f/life_risk_policies.csv (origin=hf://datasets/xpertsystems/ins004-sample@cd08fa91ae91397b8bf10a11a47b07f94f52907f/life_risk_policies.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1800, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
policy_id: string
issue_date: string
policy_year: int64
issue_age: int64
attained_age: int64
cohort_birth_year: int64
gender: string
smoker_status: string
build_bmi: double
height_inches: int64
weight_lbs: int64
state_of_issue: string
country_iso3: string
marital_status: string
education_level: string
occupation_class: string
annual_income_usd: double
socioeconomic_index: double
medical_exam_type: string
systolic_bp_mmhg: int64
diastolic_bp_mmhg: int64
total_cholesterol_mgdl: int64
hdl_cholesterol_mgdl: int64
cholesterol_hdl_ratio: double
glucose_fasting_mgdl: int64
hba1c_percent: double
cotinine_positive_flag: bool
egfr_ml_min: double
psa_ng_ml: double
family_history_cad_flag: bool
family_history_cancer_flag: bool
family_history_longevity_flag: bool
prior_cardiovascular_event_flag: bool
prior_cancer_flag: bool
prior_cancer_type: string
prior_cancer_years_since: double
diabetes_type: string
copd_severity: string
mental_health_flag: string
alcohol_drinks_per_week: int64
aviation_avocation_flag: bool
foreign_travel_flag: bool
mib_flag: bool
prescription_drug_flag: bool
attending_physician_statement_flag: bool
underwriting_class: string
flat_extra_premium_per_1k: double
table_rating_number: double
uw_exclusion_rider_flag: bool
uw_postpone_flag: bool
uw_decline_flag: bool
accelerated_uw_algorithm_flag: bool
uw_decision_days: int64
uw_examiner_id: string
mortality_loading_factor: double
product_type: string
coverage_amount_usd: int64
premium_mode: string
premium_amount_usd: double
...
g
contestability_flag: bool
claim_investigation_flag: bool
claim_amount_paid_usd: double
gompertz_makeham_a: double
gompertz_makeham_b: double
gompertz_makeham_c: double
excess_mortality_delta_qx: double
mortality_improvement_factor: double
pandemic_stress_flag: bool
pandemic_excess_mortality_pct: double
heat_stress_mortality_adj: double
lapse_flag: bool
lapse_date: string
lapse_reason: string
lapse_duration_year: double
expected_lapse_rate: double
actual_lapse_rate: double
shock_lapse_flag: bool
interest_rate_environment: string
interest_credited_rate_pct: double
guaranteed_minimum_credited_rate_pct: double
paid_up_status_flag: bool
extended_term_flag: bool
reinstatement_flag: bool
premium_financing_flag: bool
churning_flag: bool
premium_persistency_index: double
life_expectancy_at_issue: double
life_expectancy_at_observation: double
longevity_risk_class: string
longevity_percentile: double
rcp_scenario: string
socioeconomic_mortality_gradient: double
zip_code_health_index: double
wearable_data_flag: bool
wearable_activity_score: double
genomic_risk_score_flag: bool
genomic_longevity_prs: double
net_amount_at_risk_usd: double
policy_reserve_gaap_usd: double
policy_reserve_stat_usd: double
policy_reserve_ifrs17_usd: double
contractual_service_margin_usd: double
loss_component_flag: bool
embedded_value_usd: int64
internal_rate_of_return_pct: double
profit_margin_pct: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 17361
to
{'underwriting_class': Value('string'), 'gender': Value('string'), 'count': Value('int64'), 'mean_qx_expected': Value('float64'), 'mean_qx_actual': Value('float64'), 'mean_ae': Value('float64'), 'death_claims': Value('int64'), 'mean_lapse_rate': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1802, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 123 new columns ({'uw_decline_flag', 'actual_lapse_rate', 'reinsurance_arrangement', 'lapse_duration_year', 'policy_term_years', 'mortality_ratio_ae', 'systolic_bp_mmhg', 'diabetes_type', 'country_iso3', 'rcp_scenario', 'hba1c_percent', 'net_amount_at_risk_usd', 'alcohol_drinks_per_week', 'lapse_reason', 'egfr_ml_min', 'socioeconomic_mortality_gradient', 'life_expectancy_at_observation', 'cohort_birth_year', 'issue_date', 'claim_investigation_flag', 'medical_exam_type', 'weight_lbs', 'prior_cardiovascular_event_flag', 'uw_examiner_id', 'contestability_flag', 'attained_age', 'contractual_service_margin_usd', 'longevity_percentile', 'reinsurance_ceded_flag', 'longevity_risk_class', 'premium_financing_flag', 'improvement_scale', 'interest_credited_rate_pct', 'education_level', 'mortality_improvement_factor', 'zip_code_health_index', 'mortality_loading_factor', 'lapse_flag', 'product_type', 'policy_loan_flag', 'lapse_date', 'cash_value_usd', 'surrender_charge_schedule', 'uw_postpone_flag', 'death_claim_date', 'mib_flag', 'total_cholesterol_mgdl', 'annual_income_usd', 'guaranteed_minimum_credited_rate_pct', 'policy_reserve_stat_usd', 'prior_cancer_type', 'mortality_table_basis', 'extended_term_flag', 'family_history_longevity_flag', 'foreign_travel_flag', 'marital_status', 'cotinine_positive_flag', 'policy_year', 'life_expectancy_at_issue', 'glucose_fasting_mgdl', 'genomic_risk_score_flag', 'churning_flag', 'family_history_cancer_flag', 'paid_up_status_flag', 'cause_of_death', 'policy_id', 'heat_stress_mortality_adj', 'profit_margin_pct', 'loan_outstanding_usd', 'prior_cancer_years_since', 'premium_persistency_index', 'hdl_cholesterol_mgdl', 'prior_cancer_flag', 'pandemic_excess_mortality_pct', 'prescription_drug_flag', 'flat_extra_premium_per_1k', 'copd_severity', 'uw_decision_days', 'pandemic_stress_flag', 'interest_rate_environment', 'exchange_1035_flag', 'uw_exclusion_rider_flag', 'family_history_cad_flag', 'smoker_status', 'build_bmi', 'policy_reserve_gaap_usd', 'embedded_value_usd', 'mental_health_flag', 'psa_ng_ml', 'issue_age', 'gompertz_makeham_a', 'distribution_channel', 'reinstatement_flag', 'excess_mortality_delta_qx', 'socioeconomic_index', 'wearable_activity_score', 'policy_reserve_ifrs17_usd', 'loan_to_value_ratio', 'wearable_data_flag', 'coverage_amount_usd', 'state_of_issue', 'accelerated_uw_algorithm_flag', 'gompertz_makeham_b', 'expected_lapse_rate', 'internal_rate_of_return_pct', 'claim_amount_paid_usd', 'height_inches', 'expected_mortality_rate_qx', 'premium_mode', 'actual_mortality_rate_qx', 'occupation_class', 'genomic_longevity_prs', 'gompertz_makeham_c', 'shock_lapse_flag', 'cholesterol_hdl_ratio', 'loss_component_flag', 'premium_amount_usd', 'death_claim_flag', 'attending_physician_statement_flag', 'replacement_policy_flag', 'table_rating_number', 'diastolic_bp_mmhg', 'aviation_avocation_flag'}) and 6 missing columns ({'death_claims', 'mean_ae', 'count', 'mean_qx_actual', 'mean_lapse_rate', 'mean_qx_expected'}).
This happened while the csv dataset builder was generating data using
hf://datasets/xpertsystems/ins004-sample/life_risk_policies.csv (at revision cd08fa91ae91397b8bf10a11a47b07f94f52907f), [/tmp/hf-datasets-cache/medium/datasets/16143299396634-config-parquet-and-info-xpertsystems-ins004-sampl-9dad33d1/hub/datasets--xpertsystems--ins004-sample/snapshots/cd08fa91ae91397b8bf10a11a47b07f94f52907f/ae_summary_by_class.csv (origin=hf://datasets/xpertsystems/ins004-sample@cd08fa91ae91397b8bf10a11a47b07f94f52907f/ae_summary_by_class.csv), /tmp/hf-datasets-cache/medium/datasets/16143299396634-config-parquet-and-info-xpertsystems-ins004-sampl-9dad33d1/hub/datasets--xpertsystems--ins004-sample/snapshots/cd08fa91ae91397b8bf10a11a47b07f94f52907f/life_risk_policies.csv (origin=hf://datasets/xpertsystems/ins004-sample@cd08fa91ae91397b8bf10a11a47b07f94f52907f/life_risk_policies.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
underwriting_class string | gender string | count int64 | mean_qx_expected float64 | mean_qx_actual float64 | mean_ae float64 | death_claims int64 | mean_lapse_rate float64 |
|---|---|---|---|---|---|---|---|
declined | female | 76 | 0.032395 | 0.326667 | 6.870132 | 0 | 0.053489 |
declined | male | 68 | 0.050409 | 0.364671 | 6.905897 | 0 | 0.068443 |
declined | non_binary | 2 | 0.026458 | 0.391208 | 7.466 | 0 | 0.0915 |
preferred | female | 156 | 0.010462 | 0.009595 | 0.800558 | 1 | 0.064612 |
preferred | male | 138 | 0.013481 | 0.012091 | 0.79892 | 1 | 0.068644 |
preferred | non_binary | 1 | 0.012437 | 0.009101 | 0.758 | 0 | 0.2034 |
preferred_plus | female | 117 | 0.007073 | 0.005007 | 0.622068 | 2 | 0.059919 |
preferred_plus | male | 120 | 0.00964 | 0.006707 | 0.622875 | 0 | 0.066458 |
preferred_plus | non_binary | 4 | 0.00649 | 0.0037 | 0.57325 | 0 | 0.05155 |
standard | female | 211 | 0.020762 | 0.023645 | 1.051725 | 10 | 0.065218 |
standard | male | 214 | 0.03068 | 0.036473 | 1.050491 | 3 | 0.067527 |
standard | non_binary | 5 | 0.042134 | 0.03798 | 1.042 | 0 | 0.03122 |
standard_plus | female | 63 | 0.008538 | 0.008617 | 0.951667 | 0 | 0.059962 |
standard_plus | male | 63 | 0.007667 | 0.007685 | 0.949016 | 0 | 0.067329 |
standard_plus | non_binary | 2 | 0.002937 | 0.003104 | 0.95 | 0 | 0.0475 |
substandard_table_1 | female | 448 | 0.019294 | 0.032568 | 1.374842 | 15 | 0.075409 |
substandard_table_1 | male | 447 | 0.025155 | 0.043183 | 1.378063 | 29 | 0.063538 |
substandard_table_1 | non_binary | 3 | 0.020959 | 0.040843 | 1.371 | 0 | 0.0955 |
substandard_table_10 | male | 3 | 0.168923 | 0.678198 | 4.131 | 2 | 0.0715 |
substandard_table_12 | female | 9 | 0.033725 | 0.320876 | 5.577889 | 4 | 0.074078 |
substandard_table_12 | male | 12 | 0.067248 | 0.357478 | 5.497917 | 4 | 0.073542 |
substandard_table_12 | non_binary | 2 | 0.035989 | 0.352228 | 5.6 | 1 | 0.04795 |
substandard_table_2 | female | 346 | 0.02353 | 0.052586 | 1.628246 | 17 | 0.068361 |
substandard_table_2 | male | 318 | 0.03468 | 0.076751 | 1.620267 | 26 | 0.06845 |
substandard_table_2 | non_binary | 4 | 0.067497 | 0.170604 | 1.65175 | 1 | 0.097 |
substandard_table_3 | female | 53 | 0.020302 | 0.055247 | 1.876075 | 3 | 0.067411 |
substandard_table_3 | male | 76 | 0.023425 | 0.066236 | 1.873303 | 6 | 0.071954 |
substandard_table_4 | female | 359 | 0.030337 | 0.098834 | 2.130287 | 36 | 0.059265 |
substandard_table_4 | male | 330 | 0.031509 | 0.104118 | 2.128088 | 37 | 0.063667 |
substandard_table_4 | non_binary | 10 | 0.037431 | 0.112347 | 2.1023 | 1 | 0.0554 |
substandard_table_5 | female | 401 | 0.024065 | 0.091517 | 2.376698 | 39 | 0.061832 |
substandard_table_5 | male | 371 | 0.024996 | 0.092356 | 2.376321 | 45 | 0.065708 |
substandard_table_5 | non_binary | 11 | 0.029406 | 0.10097 | 2.363182 | 2 | 0.067745 |
substandard_table_6 | female | 186 | 0.042306 | 0.181105 | 2.614349 | 35 | 0.059904 |
substandard_table_6 | male | 180 | 0.045497 | 0.19399 | 2.623806 | 37 | 0.067679 |
substandard_table_6 | non_binary | 2 | 0.066153 | 0.318246 | 2.6015 | 0 | 0.02955 |
substandard_table_7 | female | 53 | 0.051462 | 0.188737 | 2.870811 | 13 | 0.064381 |
substandard_table_7 | male | 50 | 0.053253 | 0.220961 | 2.88112 | 16 | 0.060088 |
substandard_table_7 | non_binary | 3 | 0.129092 | 0.5348 | 2.859333 | 1 | 0.048733 |
substandard_table_8 | female | 27 | 0.041642 | 0.229562 | 3.265259 | 7 | 0.052922 |
substandard_table_8 | male | 20 | 0.035041 | 0.189002 | 3.26735 | 6 | 0.07375 |
substandard_table_8 | non_binary | 3 | 0.068772 | 0.348188 | 3.280667 | 1 | 0.0274 |
substandard_table_9 | female | 18 | 0.073136 | 0.333628 | 3.767 | 7 | 0.055328 |
substandard_table_9 | male | 15 | 0.066866 | 0.387461 | 3.747667 | 6 | 0.065053 |
substandard_table_6 | male | null | null | null | null | null | null |
substandard_table_2 | male | null | null | null | null | null | null |
substandard_table_3 | female | null | null | null | null | null | null |
substandard_table_2 | male | null | null | null | null | null | null |
declined | female | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
substandard_table_2 | female | null | null | null | null | null | null |
substandard_table_3 | male | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
substandard_table_5 | male | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
preferred | female | null | null | null | null | null | null |
substandard_table_6 | male | null | null | null | null | null | null |
substandard_table_3 | male | null | null | null | null | null | null |
substandard_table_2 | female | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
preferred | female | null | null | null | null | null | null |
substandard_table_4 | male | null | null | null | null | null | null |
substandard_table_5 | male | null | null | null | null | null | null |
substandard_table_1 | female | null | null | null | null | null | null |
substandard_table_4 | male | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
substandard_table_2 | male | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
standard | female | null | null | null | null | null | null |
preferred | male | null | null | null | null | null | null |
preferred_plus | male | null | null | null | null | null | null |
substandard_table_9 | male | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
declined | male | null | null | null | null | null | null |
standard | female | null | null | null | null | null | null |
substandard_table_5 | male | null | null | null | null | null | null |
standard | male | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
substandard_table_4 | male | null | null | null | null | null | null |
preferred_plus | male | null | null | null | null | null | null |
substandard_table_2 | male | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
substandard_table_4 | male | null | null | null | null | null | null |
substandard_table_7 | male | null | null | null | null | null | null |
substandard_table_9 | female | null | null | null | null | null | null |
substandard_table_5 | male | null | null | null | null | null | null |
substandard_table_1 | male | null | null | null | null | null | null |
standard_plus | female | null | null | null | null | null | null |
substandard_table_4 | female | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
substandard_table_2 | female | null | null | null | null | null | null |
substandard_table_4 | male | null | null | null | null | null | null |
substandard_table_5 | male | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
substandard_table_1 | female | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
substandard_table_4 | male | null | null | null | null | null | null |
substandard_table_5 | female | null | null | null | null | null | null |
YAML Metadata Warning:The task_categories "survival-analysis" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
INS-004 — Synthetic Life Insurance Risk Dataset (Sample)
XpertSystems.ai Synthetic Data Platform · SKU: INS004-SAMPLE · Version 1.0.0
This is a free preview of the full INS-004 — Synthetic Life Insurance Risk Dataset product. It contains roughly ~5% of the full dataset at identical schema, mortality calibration, and underwriting taxonomy, so you can evaluate fit before licensing the full product.
| File | Rows (sample) | Rows (full) | Description |
|---|---|---|---|
life_risk_policies.csv |
~5,000 | ~100,000 | Per-policy records (125 columns) |
ae_summary_by_class.csv |
~44 | ~120 | UW class × gender A/E summary |
Dataset Summary
INS-004 simulates the full life insurance underwriting and in-force lifecycle with SOA-calibrated mortality and IFRS 17 reserve modeling, with:
- Makeham-Gompertz mortality: h(x) = A + B·C^x, calibrated to SOA VBT 2015 Non-Smoker Male Aggregate (A=0.0007, B=0.00005, C=1.095)
- Gender mortality adjustments: female 0.80×, non-binary 0.90× (SOA VBT 2015 ratios)
- Smoker mortality multipliers: never 1.00×, former 1.30×, current 2.00×, unknown 1.15×
- 17 underwriting classes: preferred_plus → preferred → standard_plus → standard → 12 substandard table ratings → declined, each with empirically-anchored A/E ratio bands
- Rule-based underwriting with realistic medical risk factor interactions: BMI, blood pressure, cholesterol HDL ratio, HbA1c, diabetes type, COPD severity, mental health, prior cancer (with type + years since), prior cardiovascular event, occupation hazard class, alcohol consumption, aviation/avocation flags, MIB hits, prescription drug history
- 8 product types: term life, whole life, universal life, indexed UL, variable UL, group life, deferred annuity, immediate annuity — each with empirically-anchored lapse rate curves by policy year band
- Duration-sensitive lapse modeling:
- Year-1 lapse rates: term 10%, whole 6%, UL 12%, indexed UL 11%, variable UL 13%, group 18%, deferred annuity 6%, immediate annuity 1%
- Shock lapse modeling for term post-level period
- Interest-rate environment sensitivity (5 environments)
- SOA Scale MP-2023 longevity improvement applied generationally by birth year
- IFRS 17 reserve estimation: best estimate liability, risk adjustment, contractual service margin (CSM), loss component (onerous contract flag)
- Climate scenarios: baseline, RCP 4.5, RCP 8.5 (full product) with per-scenario mortality uplift modeling
- Cause-of-death attribution for death claims (CDC leading causes with age-band weighting)
- Issue years 2000-2024 with policy duration tracking
Calibrated Benchmark Targets
The full product is benchmark-calibrated to authoritative actuarial sources: SOA VBT 2015 Non-Smoker Aggregate, SOA Scale MP-2023, LIMRA U.S. Individual Life Insurance Sales Survey, SOA U.S. Individual Life Persistency Study, CDC NHANES (smoker prevalence), IFRS 17 typical reserve ranges.
Sample validation results across 10 actuarial KPIs:
| Metric | Observed | Target | Source | Verdict |
|---|---|---|---|---|
| preferred_plus_prevalence_pct | 4.8200 | 8.0000 | SOA new business UW distribution | ✓ PASS |
| preferred_plus_ae_ratio | 0.6217 | 0.6200 | SOA VBT 2015 preferred class | ✓ PASS |
| standard_class_ae_ratio | 1.0510 | 1.0500 | SOA VBT 2015 standard class | ✓ PASS |
| decline_rate_pct | 2.9200 | 3.0000 | LIMRA UW decline benchmarks | ✓ PASS |
| year_1_lapse_rate_pct | 12.65 | 10.00 | SOA Individual Life Persistency | ✓ PASS |
| shock_lapse_rate_pct | 0.7000 | 1.0000 | Term post-level-period shock | ✓ PASS |
| overall_lapse_rate_pct | 6.3400 | 6.5000 | SOA Individual Life Persistency | ✓ PASS |
| current_smoker_prevalence_pct | 10.08 | 14.00 | CDC NHANES adult smoker rate | ✓ PASS |
| term_life_product_share_pct | 39.74 | 40.00 | LIMRA U.S. product mix | ✓ PASS |
| avg_ifrs17_reserve_usd | $44,551 | $50,000 | IFRS 17 individual life reserve | ✓ PASS |
Note: Preferred Plus prevalence is highly seed-sensitive in life insurance generators because it sits at the rare-tail of the underwriting class distribution. At default seed=42, the sample lands near the lower end of industry-typical 5-15% range. Other seeds (7, 123, 2024, 99, 1) consistently land in the 5.1-5.6% range — well within actuarial norms for new-business preferred-plus prevalence.
Schema Highlights
life_risk_policies.csv (primary file, 125 columns)
Policy identification:
| Column | Type | Description |
|---|---|---|
| policy_id | string | Unique policy identifier |
| issue_year, issue_age | int | Policy issue context |
| policy_year | int | Years in force |
| product_type | string | term_life / whole_life / universal_life / etc. |
| face_amount_usd | float | Death benefit face amount |
Demographics & risk factors (50+ columns):
Gender, marital status, smoker status, build/BMI, occupation hazard class, geographic region, education, income decile, family medical history, alcohol drinks/week, aviation/avocation flags, MIB flag, prescription drug history, mental health flag.
Medical underwriting fields:
Systolic/diastolic blood pressure, total cholesterol, HDL/LDL ratio, HbA1c%, diabetes type (none/type1/type2/prediabetic), COPD severity, prior cancer flag + type + years since, prior cardiovascular event flag, hypertension stage, fasting glucose, body fat %, resting heart rate.
Underwriting decision:
| Column | Type | Description |
|---|---|---|
| underwriting_class | string | 17 tiers (preferred_plus → declined) |
| table_rating | int | Substandard table number (0-12) |
| flat_extra_per_1000 | float | Flat-extra premium per $1000 face |
| postpone_flag | int | Postponed UW decision |
| decline_flag | int | Declined UW decision |
Mortality assumptions:
| Column | Type | Description |
|---|---|---|
| expected_mortality_rate_qx | float | Expected qx from VBT 2015 + adjustments |
| actual_mortality_rate_qx | float | Realized qx with stochastic noise |
| mortality_ratio_ae | float | Actual / Expected ratio |
| life_expectancy_at_observation | float | Years remaining (Gompertz integral) |
| longevity_improvement_factor | float | SOA MP-2023 generational adjustment |
| death_claim_flag | int | Boolean — death claim occurred |
| cause_of_death | string | CDC top causes (nullable) |
Lapse modeling:
| Column | Type | Description |
|---|---|---|
| expected_lapse_rate | float | Base lapse rate (product × duration) |
| actual_lapse_rate | float | Realized lapse rate |
| lapse_flag | int | Boolean — policy lapsed |
| shock_lapse_flag | int | Boolean — post-level-period shock |
| persistency_index | float | Cumulative persistency |
IFRS 17 financial:
| Column | Type | Description |
|---|---|---|
| policy_reserve_ifrs17_usd | float | IFRS 17 best estimate liability |
| risk_adjustment_usd | float | IFRS 17 risk adjustment |
| contractual_service_margin_usd | float | CSM (deferred profit) |
| profit_margin_pct | float | New business margin % |
| loss_component_flag | int | Boolean — onerous contract |
| net_amount_at_risk_usd | float | Face amount − reserve |
ae_summary_by_class.csv
Aggregate A/E (Actual-to-Expected) summary by underwriting_class × gender:
| Column | Description |
|---|---|
| underwriting_class | UW class |
| gender | male / female / non_binary |
| count | Policies in class |
| mean_qx_expected | Mean expected mortality rate |
| mean_qx_actual | Mean actual mortality rate |
| mean_ae | Mean A/E ratio |
| death_claims | Number of death claims |
| mean_lapse_rate | Mean realized lapse rate |
Suggested Use Cases
- Training mortality prediction models with VBT 2015 calibrated targets
- Underwriting class assignment models — 17-class classification from medical and demographic features
- Lapse rate forecasting — duration- and interest-rate-sensitive models
- Shock lapse detection for term post-level-period analysis
- IFRS 17 reserve modeling — automate best estimate + risk adjustment
- Onerous contract identification — predict loss component triggers
- Longevity improvement modeling — multi-cohort survival analysis with SOA Scale MP-2023
- A/E ratio diagnostics — compare expected vs realized by class/gender
- Cause-of-death classification for claims analytics
- Climate-stressed mortality scenarios (RCP 4.5 / RCP 8.5 in full product)
- Product mix optimization — 8 product types with empirical lapse curves
- Persistency modeling for CSM amortization
- Survival analysis — Cox/Weibull/AFT models on synthetic life data
- Generational longevity comparison — birth cohort effect modeling
- Insurtech actuarial model training without SOA/LIMRA license fees
Loading the Data
import pandas as pd
policies = pd.read_csv("life_risk_policies.csv")
ae = pd.read_csv("ae_summary_by_class.csv")
# Multi-class underwriting prediction target (17 classes)
y_uw = policies["underwriting_class"]
# Regression: expected mortality (qx) prediction
y_qx = policies["expected_mortality_rate_qx"]
# Binary lapse target
y_lapse = policies["lapse_flag"]
# Binary death claim target
y_death = policies["death_claim_flag"]
# Regression: IFRS 17 reserve prediction
y_reserve = policies["policy_reserve_ifrs17_usd"]
# Binary onerous contract identification
y_onerous = policies["loss_component_flag"]
# Multi-class cause-of-death (filter to death claims only)
deaths = policies[policies["death_claim_flag"] == 1]
y_cause = deaths["cause_of_death"]
# Survival analysis setup
duration = policies["policy_year"]
event = policies["death_claim_flag"]
License
This sample is released under CC-BY-NC-4.0 (free for non-commercial research and evaluation). The full production dataset is licensed commercially — contact XpertSystems.ai for licensing terms.
Full Product
The full INS-004 dataset includes ~100,000 policy records across 125 columns, with configurable climate scenarios (baseline / RCP4.5 / RCP8.5), interest rate environments (low/normal/high/rising/falling), and issue-year ranges (full product covers 2000-2024).
📧 pradeep@xpertsystems.ai 🌐 https://xpertsystems.ai
Citation
@dataset{xpertsystems_ins004_sample_2026,
title = {INS-004: Synthetic Life Insurance Risk Dataset (Sample)},
author = {XpertSystems.ai},
year = {2026},
url = {https://huggingface.co/datasets/xpertsystems/ins004-sample}
}
Generation Details
- Generator version : 1.0.0
- Random seed : 42
- Generated : 2026-05-16 20:06:07 UTC
- Issue year range : 2000-2024
- Climate scenario : baseline
- Interest env : normal_rate
- Mortality basis : SOA VBT 2015 + Makeham-Gompertz hazard
- Overall validation: 100.0 / 100 (grade A+)
- Downloads last month
- 7