VIEWS conflictology model is a Python function designed to facilitate generating conflictology uncertainty forecasts. It is developed and maintained by the Peace Research Institute Oslo (PRIO) as part of the VIEWS project.
To use conflictology model, the required libraries are:
from viewser import Queryset, Column
import numpy as np
import pandas as pd
The conflictology_benchmark function is the main function
# variables
test_partitioner_dict = {"train": (491, 492), "predict": (493, 504)}
steps = [1, 2, 3, 9, 36]
outcome = 'sb'
loa = 'cm'
x_conflictology = 3
# function call
conflictology_benchmark(test_partitioner_dict, steps, loa,x_conflictology, outcome)
Contributions are welcome! To contribute:
- Make an issue describing the feature you want to add or the bug you want to fix.
- Create your Feature Branch (
git checkout -b <issuenumber>-<your-feature-name>
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin <issuenumber>-<your-feature-name>
) - Open a Pull Request
A common bug is not importing the function from the script, so please import it as given below:
# the function is in the views_conflictology file
import views_conflictology as fm
Distributed under the MIT License.