psrcal


Namepsrcal JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/luferrer/psr-calibration
SummaryMethods for evaluating and fixing calibration
upload_time2023-08-31 12:52:41
maintainer
docs_urlNone
authorNiko Brummer, Luciana Ferrer, Sergio Alvarez
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Proper Scoring Rules for calibration.

This repository contains the code for doing calibration on multi-class and binary classification using various approaches. The core functionality was written by Niko Brummer. Sergio Alvarez and I later added various methods and scripts to experiment with them. Further, I have another repository called [expected_cost](https://github.com/luferrer/expected_cost.git) with lots of examples on how to use the libraries in this repository. 

## How to install

```
pip install psrcal
```

When you do that, torch, matplotlib and other libraries will also be installed, unless you already have the required versions in your system. It does not install joblib and ternary, which are only needed to run the scripts in the experiments dir. If you want to run those scripts, you can install those two packages separately. 

Alternatively, if you want the latest version of the code, you can:

1. Clone the repository:  

   ```git clone https://github.com/luferrer/psr-calibration.git```

2. Install the requirements (this does install joblib and ternary since it assumes you are probably cloning the repo in order to run the scripts inside the experiments dir):  
   
   ```pip install -r requirements.txt```
   
3. Add the resulting top directory in your PYTHONPATH. In bash this would be:

   ```export PYTHONPATH=ROOT_DIR/psr-calibration:$PYTHONPATH```

where ROOT_DIR is the absolute path (or the relative path from the directory where you have the scripts or notebooks you want to run) to the top directory from where you did the clone above.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/luferrer/psr-calibration",
    "name": "psrcal",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Niko Brummer, Luciana Ferrer, Sergio Alvarez",
    "author_email": "lferrer@dc.uba.ar",
    "download_url": "https://files.pythonhosted.org/packages/f7/f6/a8288b419e8191edee24d5ac8bc8a1cff9f7029ddd911d2529a64a6cd8fe/psrcal-0.0.2.tar.gz",
    "platform": null,
    "description": "# Proper Scoring Rules for calibration.\n\nThis repository contains the code for doing calibration on multi-class and binary classification using various approaches. The core functionality was written by Niko Brummer. Sergio Alvarez and I later added various methods and scripts to experiment with them. Further, I have another repository called [expected_cost](https://github.com/luferrer/expected_cost.git) with lots of examples on how to use the libraries in this repository. \n\n## How to install\n\n```\npip install psrcal\n```\n\nWhen you do that, torch, matplotlib and other libraries will also be installed, unless you already have the required versions in your system. It does not install joblib and ternary, which are only needed to run the scripts in the experiments dir. If you want to run those scripts, you can install those two packages separately. \n\nAlternatively, if you want the latest version of the code, you can:\n\n1. Clone the repository:  \n\n   ```git clone https://github.com/luferrer/psr-calibration.git```\n\n2. Install the requirements (this does install joblib and ternary since it assumes you are probably cloning the repo in order to run the scripts inside the experiments dir):  \n   \n   ```pip install -r requirements.txt```\n   \n3. Add the resulting top directory in your PYTHONPATH. In bash this would be:\n\n   ```export PYTHONPATH=ROOT_DIR/psr-calibration:$PYTHONPATH```\n\nwhere ROOT_DIR is the absolute path (or the relative path from the directory where you have the scripts or notebooks you want to run) to the top directory from where you did the clone above.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Methods for evaluating and fixing calibration",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/luferrer/psr-calibration"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8b5e680b51f694e0e758d226df59c4dcc40fa26f7bbc573803e700ae0f1dec0",
                "md5": "74c7e84de175e70941744a99e6e99583",
                "sha256": "b57df3ff3e4700b673a4be7ae2b948006ea6db71990f7b6f40868cbc9ea7843a"
            },
            "downloads": -1,
            "filename": "psrcal-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "74c7e84de175e70941744a99e6e99583",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 13958,
            "upload_time": "2023-08-31T12:52:40",
            "upload_time_iso_8601": "2023-08-31T12:52:40.083699Z",
            "url": "https://files.pythonhosted.org/packages/f8/b5/e680b51f694e0e758d226df59c4dcc40fa26f7bbc573803e700ae0f1dec0/psrcal-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f7f6a8288b419e8191edee24d5ac8bc8a1cff9f7029ddd911d2529a64a6cd8fe",
                "md5": "f45bfc3a3b1c79e35d505c982e74ad21",
                "sha256": "01fd39b56b0cf4d9e78a1956c3a4e7c687e0d0fbfc68854a8c7231835a956257"
            },
            "downloads": -1,
            "filename": "psrcal-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f45bfc3a3b1c79e35d505c982e74ad21",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 12289,
            "upload_time": "2023-08-31T12:52:41",
            "upload_time_iso_8601": "2023-08-31T12:52:41.594327Z",
            "url": "https://files.pythonhosted.org/packages/f7/f6/a8288b419e8191edee24d5ac8bc8a1cff9f7029ddd911d2529a64a6cd8fe/psrcal-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-31 12:52:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "luferrer",
    "github_project": "psr-calibration",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "psrcal"
}
        
Elapsed time: 0.11949s