fastroc


Namefastroc JSON
Version 1.1.3 PyPI version JSON
download
home_page
SummaryQuickly computes the ROC AUC score of a model
upload_time2024-02-18 17:11:12
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords roc roc reciever operating characteristic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fastroc
fastroc is a module that is able to approximate the ROC AUC score over an axis of two numpy arrays much faster than current 
alternatives. It does this at the expense of portability as it uses C to calculate the ROC AUC.

## Usage

To calculate the ROC AUC score, 2 arrays are needed:
* `y_true` - Whether that event actually happened
* `y_score` - The model's score of that event happening. The lower, the more likely. `y_score` should be in the range 0 
   to 1.

The function also takes in 3 optional arguments:
* `axis` (default `-1`) - Which axis to compute the score over
* `integral_precision` (default `50`) - The number of samples to use for the integration
* `thread_count` (default `1`) - The number of threads to use. A value of 1 keeps the program single threaded.

The array returned contains the roc scores.

## Building

First run:
```bash
git clone https://github.com/brightlego/fastroc.git
cd fastroc
```
Then run:
### Linux:
To build and install with you default Python3 installation, run 
```bash
bash build.sh
```

### Other
To build and install with another Python3 installation or on MacOS/Windows, run
```bash
<python-installation> -m build
<python-installation> -m pip install "$(ls dist/*.whl | sort -V | tail -n 1)" --force-reinstall
```

#### Notes for Windows:
This code is not tested on Windows and is unlikely to be able to use multithreading.


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fastroc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "roc,ROC,reciever operating characteristic",
    "author": "",
    "author_email": "John Ellis <12johnellis@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/85/61/b884bec7c7d3490ef72cf071aa50977765c50ebdf80b92ea360cf499f5af/fastroc-1.1.3.tar.gz",
    "platform": null,
    "description": "# fastroc\nfastroc is a module that is able to approximate the ROC AUC score over an axis of two numpy arrays much faster than current \nalternatives. It does this at the expense of portability as it uses C to calculate the ROC AUC.\n\n## Usage\n\nTo calculate the ROC AUC score, 2 arrays are needed:\n* `y_true` - Whether that event actually happened\n* `y_score` - The model's score of that event happening. The lower, the more likely. `y_score` should be in the range 0 \n   to 1.\n\nThe function also takes in 3 optional arguments:\n* `axis` (default `-1`) - Which axis to compute the score over\n* `integral_precision` (default `50`) - The number of samples to use for the integration\n* `thread_count` (default `1`) - The number of threads to use. A value of 1 keeps the program single threaded.\n\nThe array returned contains the roc scores.\n\n## Building\n\nFirst run:\n```bash\ngit clone https://github.com/brightlego/fastroc.git\ncd fastroc\n```\nThen run:\n### Linux:\nTo build and install with you default Python3 installation, run \n```bash\nbash build.sh\n```\n\n### Other\nTo build and install with another Python3 installation or on MacOS/Windows, run\n```bash\n<python-installation> -m build\n<python-installation> -m pip install \"$(ls dist/*.whl | sort -V | tail -n 1)\" --force-reinstall\n```\n\n#### Notes for Windows:\nThis code is not tested on Windows and is unlikely to be able to use multithreading.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Quickly computes the ROC AUC score of a model",
    "version": "1.1.3",
    "project_urls": {
        "Homepage": "https://github.com/brightlego/fastroc",
        "Issues": "https://github.com/brightlego/fastroc/issues",
        "Repostiory": "https://github.com/brightlego/fastroc.git"
    },
    "split_keywords": [
        "roc",
        "roc",
        "reciever operating characteristic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8561b884bec7c7d3490ef72cf071aa50977765c50ebdf80b92ea360cf499f5af",
                "md5": "d1df6e43a95c2d167607761198f8569a",
                "sha256": "d6c1b659b7dac75e52a19aecd4701d8fedc605a06b05425f65468daad4de5267"
            },
            "downloads": -1,
            "filename": "fastroc-1.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d1df6e43a95c2d167607761198f8569a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7485,
            "upload_time": "2024-02-18T17:11:12",
            "upload_time_iso_8601": "2024-02-18T17:11:12.018775Z",
            "url": "https://files.pythonhosted.org/packages/85/61/b884bec7c7d3490ef72cf071aa50977765c50ebdf80b92ea360cf499f5af/fastroc-1.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-18 17:11:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "brightlego",
    "github_project": "fastroc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fastroc"
}
        
Elapsed time: 0.18242s