Skip to main content

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')

Metadata

Release files for dpkg 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dpkg 0.2.3
File Size Uploaded
dpkg-0.2.3.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dpkg 0.2.3
File Interpreter ABI Platform
dpkg-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / dpkg-0.2.3.tar.gz

Download URL dpkg-0.2.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
76aa93bdf19ab748ae396cbb88b0618b7e4caf8821ba6b9e9535e3b623c6a0a0
BLAKE2b-256 checksum
How to use checksums
d3a2dbe774d47e488837fda089524a91dec7f810652e0b33076575e98b6fecc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release files / dpkg-0.2.3-py3-none-any.whl

Download URL dpkg-0.2.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5849d6393edb4c1c6cebc885cbe59a54fc7371e23a240e574d57d09404dfa63b
BLAKE2b-256 checksum
How to use checksums
3120ecd412f37e32a503c22fef4d0705bae2334cca292c387dd7d29db1739f99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page