1. Installation
2. Execution
3. Settings
Workflow
4. Output
5. Post-processing
API
GitHub
1. The model pipeline
1.1. copro.pipeline.create_XY
1.2. copro.pipeline.prepare_ML
1.3. copro.pipeline.run_reference
1.4. copro.pipeline.run_prediction
2. The various models
2.1. copro.models.all_data
2.2. copro.models.leave_one_out
2.3. copro.models.single_variables
2.4. copro.models.dubbelsteen
2.5. copro.models.predictive
3. Selecting polygons and conflicts
3.1. copro.selection.select
3.2. copro.selection.filter_conflict_properties
3.3. copro.selection.select_period
3.4. copro.selection.clip_to_extent
3.5. copro.selection.climate_zoning
4. Machine learning
4.1. copro.machine_learning.define_scaling
4.2. copro.machine_learning.define_model
4.3. copro.machine_learning.split_scale_train_test_split
4.4. copro.machine_learning.fit_predict
4.5. copro.machine_learning.pickle_clf
4.6. copro.machine_learning.load_clfs
5. Variable values
5.1. copro.variables.nc_with_float_timestamp
5.2. copro.variables.nc_with_continous_datetime_timestamp
6. XY-Data
6.1. copro.data.initiate_XY_data
6.2. copro.data.initiate_X_data
6.3. copro.data.fill_XY
6.4. copro.data.fill_X_sample
6.5. copro.data.fill_X_conflict
6.6. copro.data.split_XY_data
6.7. copro.data.neighboring_polys
6.8. copro.data.find_neighbors
7. Work with conflict data
7.1. copro.conflict.conflict_in_year_bool
7.2. copro.conflict.conflict_in_previous_year
7.3. copro.conflict.read_projected_conflict
7.4. copro.conflict.calc_conflicts_nb
7.5. copro.conflict.get_poly_ID
7.6. copro.conflict.get_poly_geometry
7.7. copro.conflict.split_conflict_geom_data
7.8. copro.conflict.get_pred_conflict_geometry
8. Model evaluation
8.1. copro.evaluation.init_out_dict
8.2. copro.evaluation.fill_out_dict
8.3. copro.evaluation.init_out_df
8.4. copro.evaluation.fill_out_df
8.5. copro.evaluation.evaluate_prediction
8.6. copro.evaluation.polygon_model_accuracy
8.7. copro.evaluation.init_out_ROC_curve
8.8. copro.evaluation.save_out_ROC_curve
8.9. copro.evaluation.calc_correlation_matrix
8.10. copro.evaluation.get_feature_importance
8.11. copro.evaluation.get_permutation_importance
9. Plotting
9.1. copro.plots.selected_polygons
9.2. copro.plots.selected_conflicts
9.3. copro.plots.metrics_distribution
9.4. copro.plots.correlation_matrix
9.5. copro.plots.plot_ROC_curve_n_times
9.6. copro.plots.plot_ROC_curve_n_mean
10. Auxiliary functions
10.1. copro.utils.print_model_info
10.2. copro.utils.get_geodataframe
10.3. copro.utils.show_versions
10.4. copro.utils.parse_settings
10.5. copro.utils.parse_projection_settings
10.6. copro.utils.determine_projection_period
10.7. copro.utils.make_output_dir
10.8. copro.utils.download_UCDP
10.9. copro.utils.initiate_setup
10.10. copro.utils.create_artificial_Y
10.11. copro.utils.global_ID_geom_info
10.12. copro.utils.get_conflict_datapoints_only
10.13. copro.utils.save_to_csv
10.14. copro.utils.save_to_npy
10.3.
copro.utils.show_versions
¶
copro.utils.
show_versions
(
)
[source]
¶
click.echos the version numbers by the main python-packages used.
10.2.
copro.utils.get_geodataframe
10.4.
copro.utils.parse_settings