Skip to main content

No project description provided

Project description

dpkg

  • dpkg is a package that collects functions frequently used in recommendation algorithms.

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dpkg-0.1.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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