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.2

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.2
File Size Uploaded
dpkg-0.2.2.tar.gz 3.7 kB Details

Built distribution (wheel)

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

Total release size: 8.2 kB

Release files / dpkg-0.2.2.tar.gz

Download URL dpkg-0.2.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4e92104729ff76365be6e93456590571e503ad3b39e90036643be32121407938
BLAKE2b-256 checksum
How to use checksums
4626e52bfbb505bd166e0325baa805373a63a041eef7669a8e1b4f1258c44368
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.2-py3-none-any.whl

Download URL dpkg-0.2.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da4cb8ef6cebb5e3299185ff521334178c13a49f2187b4de7ca0b6ca57d68de6
BLAKE2b-256 checksum
How to use checksums
b201dfbf12c1b8d4dc3aac61e0954343dacaadd586724c7e74406fc841225811
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

0.2.3

2 release files

This release

0.2.2 This release

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