Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dpkg-0.2.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

dpkg-0.2.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file dpkg-0.2.2.tar.gz.

File metadata

  • Download URL: dpkg-0.2.2.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

Hashes for dpkg-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4e92104729ff76365be6e93456590571e503ad3b39e90036643be32121407938
MD5 128699e6bb9cdf14bf483355a4969643
BLAKE2b-256 4626e52bfbb505bd166e0325baa805373a63a041eef7669a8e1b4f1258c44368

See more details on using hashes here.

File details

Details for the file dpkg-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: dpkg-0.2.2-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

Hashes for dpkg-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da4cb8ef6cebb5e3299185ff521334178c13a49f2187b4de7ca0b6ca57d68de6
MD5 f9439b445b68686f838e2e91c5763d3f
BLAKE2b-256 b201dfbf12c1b8d4dc3aac61e0954343dacaadd586724c7e74406fc841225811

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page