1. Installation
2. Execution
3. Settings
4. Workflow
5. Output
6. Post-processing
7. API
GitHub
7.1. The model pipeline
7.1.1. copro.pipeline.create_XY
7.1.2. copro.pipeline.prepare_ML
7.1.3. copro.pipeline.run_reference
7.1.4. copro.pipeline.run_prediction
7.2. The various models
7.2.1. copro.models.all_data
7.2.2. copro.models.leave_one_out
7.2.3. copro.models.single_variables
7.2.4. copro.models.dubbelsteen
7.2.5. copro.models.predictive
7.3. Selecting polygons and conflicts
7.3.1. copro.selection.select
7.3.2. copro.selection.filter_conflict_properties
7.3.3. copro.selection.select_period
7.3.4. copro.selection.clip_to_extent
7.3.5. copro.selection.climate_zoning
7.4. Machine learning
7.4.1. copro.machine_learning.define_scaling
7.4.2. copro.machine_learning.define_model
7.4.3. copro.machine_learning.split_scale_train_test_split
7.4.4. copro.machine_learning.fit_predict
7.4.5. copro.machine_learning.pickle_clf
7.4.6. copro.machine_learning.load_clfs
7.5. Variable values
7.5.1. copro.variables.nc_with_float_timestamp
7.5.2. copro.variables.nc_with_continous_datetime_timestamp
7.6. XY-Data
7.6.1. copro.data.initiate_XY_data
7.6.2. copro.data.initiate_X_data
7.6.3. copro.data.fill_XY
7.6.4. copro.data.fill_X_sample
7.6.5. copro.data.fill_X_conflict
7.6.6. copro.data.split_XY_data
7.6.7. copro.data.neighboring_polys
7.6.8. copro.data.find_neighbors
7.7. Work with conflict data
7.7.1. copro.conflict.conflict_in_year_bool
7.7.2. copro.conflict.conflict_in_previous_year
7.7.3. copro.conflict.read_projected_conflict
7.7.4. copro.conflict.calc_conflicts_nb
7.7.5. copro.conflict.get_poly_ID
7.7.6. copro.conflict.get_poly_geometry
7.7.7. copro.conflict.split_conflict_geom_data
7.7.8. copro.conflict.get_pred_conflict_geometry
7.8. Model evaluation
7.8.1. copro.evaluation.init_out_dict
7.8.2. copro.evaluation.fill_out_dict
7.8.3. copro.evaluation.init_out_df
7.8.4. copro.evaluation.fill_out_df
7.8.5. copro.evaluation.evaluate_prediction
7.8.6. copro.evaluation.polygon_model_accuracy
7.8.7. copro.evaluation.init_out_ROC_curve
7.8.8. copro.evaluation.save_out_ROC_curve
7.8.9. copro.evaluation.calc_correlation_matrix
7.8.10. copro.evaluation.get_feature_importance
7.8.11. copro.evaluation.get_permutation_importance
7.9. Plotting
7.9.1. copro.plots.selected_polygons
7.9.2. copro.plots.selected_conflicts
7.9.3. copro.plots.metrics_distribution
7.9.4. copro.plots.correlation_matrix
7.9.5. copro.plots.plot_ROC_curve_n_times
7.9.6. copro.plots.plot_ROC_curve_n_mean
7.10. Auxiliary functions
7.10.1. copro.utils.print_model_info
7.10.2. copro.utils.get_geodataframe
7.10.3. copro.utils.show_versions
7.10.4. copro.utils.parse_settings
7.10.5. copro.utils.parse_projection_settings
7.10.6. copro.utils.determine_projection_period
7.10.7. copro.utils.make_output_dir
7.10.8. copro.utils.download_UCDP
7.10.9. copro.utils.initiate_setup
7.10.10. copro.utils.create_artificial_Y
7.10.11. copro.utils.global_ID_geom_info
7.10.12. copro.utils.get_conflict_datapoints_only
7.10.13. copro.utils.save_to_csv
7.10.14. copro.utils.save_to_npy
7.
API docs
¶
This section contains the Documentation of the Application Programming Interface (API) of ‘copro’.
7.1. The model pipeline
7.2. The various models
7.3. Selecting polygons and conflicts
7.4. Machine learning
7.5. Variable values
7.6. XY-Data
7.7. Work with conflict data
7.8. Model evaluation
7.9. Plotting
7.10. Auxiliary functions
6.
Postprocessing
7.1.
The model pipeline