Skip to content

prio-data/conflictology_views_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

VIEWS Conflictology Model πŸ› οΈ

A general purpose Python function for generating VIEWS conflictology forecasts

Official Website VIEWS Forecasting Website Twitter Follow LinkedIn

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.

πŸ“š Table of Contents

  1. πŸ›  Installation
  2. πŸ“ Usage
  3. 🀝 Contributing
  4. 🐞 Common bugs
  5. πŸ”– License

πŸ›  Installation

To use conflictology model, the required libraries are:

from viewser import Queryset, Column
import numpy as np
import pandas as pd

πŸ“ Usage

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)

🀝 Contributing

Contributions are welcome! To contribute:

  1. Make an issue describing the feature you want to add or the bug you want to fix.
  2. Create your Feature Branch (git checkout -b <issuenumber>-<your-feature-name>)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin <issuenumber>-<your-feature-name>)
  5. Open a Pull Request

🐞 Common bugs

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

πŸ”– License

Distributed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages