No project description provided
Project description
dpkg
dpkg is a package that collects functions frequently used in healthcare analysis.
install
pip install dpkg
apk
Computes the average precision at k. This function computes the average prescision at k between two lists of items.
Parameters
- actual : list
A list of elements that are to be predicted (order doesn't matter)
- predicted : list
A list of predicted elements (order does matter)
- k : int, optional
The maximum number of predicted elements
Returns
- score : double The average precision at k over the input lists
Simple example
from dpkg.apk import ApkScore
ApkScore(actual, predicted, k)
mapk
Mean Average Precision (mAP) is commonly used to analyze the performance of object detection and segmentation systems.
Parameters
- apk_list : list
A list of apk scores
Returns
- score : Mean average precision score of input apk lists
Simple example
from dpkg.mapk import MapkScore
MapkScore(apk_list)
dataset
Dataset is a package that loads data sets related to food, bio, and healthcare.
Dataset
- khane : Korean Health and Nutrition Survey dataset(2016)
- main : main dataset including meta information
- ffq : food frequency questionnaires dataset including meta information
- 24rc : dietary assessment by 24-hour dataset including meta information
- oe : oral examination dataset including meta information
Parameters
- khane dataset
data type : 'main', 'ffq', '24rc', 'oe'
Simple example
from dpkg.dataset import Khane
main_ds, main_meta = Khane().load_data('main')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dpkg-0.2.3.tar.gz
.
File metadata
- Download URL: dpkg-0.2.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76aa93bdf19ab748ae396cbb88b0618b7e4caf8821ba6b9e9535e3b623c6a0a0 |
|
MD5 | ea9a3d0fc93bcab26b37e1b5d657fd6d |
|
BLAKE2b-256 | d3a2dbe774d47e488837fda089524a91dec7f810652e0b33076575e98b6fecc3 |
File details
Details for the file dpkg-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: dpkg-0.2.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5849d6393edb4c1c6cebc885cbe59a54fc7371e23a240e574d57d09404dfa63b |
|
MD5 | a3fbd3a91ea3a2e6c69d6900d5beeac1 |
|
BLAKE2b-256 | 3120ecd412f37e32a503c22fef4d0705bae2334cca292c387dd7d29db1739f99 |