Metadata-Version: 2.1
Name: hybayes
Version: 0.0.1
Summary: Bayesian Assessment of Hypotheses
Home-page: https://github.com/allenai/HyBayes
Author: Erfan Sadeqi Azer, Daniel Khashabi
Author-email: esamath@gmail.com
License: BY-NC-SA
Download-URL: https://github.com/allenai/HyBayes/archive/0.0.1.tar.gz
Description: # Bayesian Hypothesis Assessment
        A Bayesian hypothesis assessment framework, tailored to comparing pairs of experiments. This package is preliminary 
        implementation statistical analyses described in [this paper](#citation). This can also be seen as a complimentary to  
        [testSignificanceNLP](https://github.com/rtmdrr/testSignificanceNLP) package which contains popular Frequentist tests. 
        
        We focus on the setup where the performances of two algorithms, applied on a certain dataset, are provided based on an 
        evaluation measure. The comparison is done by studying the posterior probabilities (rather than binary commonly-used binary decisions in other tests.)
        
        For further discussion of the approaches implemented here (and their comparison to other techniques), refer to [the paper](#citation) or the extended [manual](docs/MANUAL.md). 
        
        
        ## Getting started
        ### Installation
        For running this code, you will need **Python (version >=3.6)**.
        You have two options for installation: 
         - If you don't want to modify any code, you can just install the package and use it in commandline: 
        ```bash
         > pip install HyBayes
        ```
        
         - Alternatively, if you'd like to make modifications to the code (e.g., the underlying model) you can clone this project. Before running the code, make sure that you have all the requirements by 
         running the following line to install all the necessary dependencies: 
        ```bash
         > pip install -r requirements.txt
        ``` 
        
        
        If you're using MacOS, install GraphViz via `brew` command: 
        ```bash
         > brew install graphviz
        ```
        
        ### Preparing configuration file
        To analyze your data, you need to prepare the a configuration file that specifies the information needed for the analysis (e.g., the address to your observation files, the type of plots and files you want to be stored).
        
        You can find more details on this in the [extended manual](docs/MANUAL.md#preparing-configuration-files). Additionally, there are examples of complete configurations in [`configs`](configs) folder, after running `make_configs.py`.
        
        ## Running the Analysis 
        Let's assume that you have followed the above instructions and:  
         - (1) you have included the performances observations in two separate files,  
         - (2) and you have prepared a config file. 
        
        To run the analysis, you pass the name of the config file as argument: 
        ```bash
         > python -m HyBayes --config my_config_file.ini --verbose
        ```
        
        When the flag `--verbose` is on, the details of the analysis will be printed in standard output. 
        This flag does not affect the log file that is stored along side other outputs.
        
        And here is the general usage template which can be accessed using `--help` flag at any time:
        ```bash
         > python -m HyBayes --help
        usage: __main__.py [-h] [-c CONFIG] [-v] [--make_configs] [--make_data]
        
        Run Bayesian Statistics Tailored towardsanalysing the experiment results
        specially in NLP area.Email esamath@gmail.com for comments.
        
        optional arguments:
          -h, --help            show this help message and exit
          -c CONFIG, --config CONFIG
                                address of Config file
          -v, --verbose         prints the report of the steps
          --make_configs        if on, example configuration files will be made.
          --make_data           if on, example data files will be made.
        ```
        
        ### Examples 
        To demonstrate everything with a quick example, run the following command to generate toy data: 
        ```bash
         > python -m HyBayes --make_data
        ```
        You can see the some artificial data made in directory `artificial_data`. Moreover either use the config files provided in the repository [], or run:
        ```bash
         > python -m HyBayes --make_configs
         ```
        And then execute the analysis on any of the newly made config files. For example: 
        ```bash
         > python -m HyBayes --config configs/config_metric.ini --verbose
        ```
        
        ## Further Reading
        If you want to learn more about this package, please refer to the [extended manual](docs/MANUAL.md). 
        If you want to learn about the concepts discusssed here, refer to the paper below. 
        
        ## License 
        This code is published under [Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode) license.  
        
        
        ## Citation 
        If you used this package in your research feel free to cite the following paper: 
        ```
        @article{hypothesisAssessment19,
          title={??},
          author={{Sadeqi Azer}, Erfan and Khashabi, Daniel and Sabharwal, Ashish and Roth, Dan},
          journal={??},
          year={2019}
        }
        ```
        
Keywords: Bayesian Statistics,two groups test,Hypothesis Testing,Bayes Factor,NLP,natural language processing,
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering
Description-Content-Type: text/markdown
