Skip to main content

Library for calculating time-depending metrics for pps

Project description

Time-Dependent Metrics to Assess Performance Prediction Systems

Installation


pip install assess_pps

Get started

# Importing our library

from assess_pps import metrics as m



# for working with data we need pandas

import pandas as pd



# implementing csv files

ectel = pd.read_csv("D:/path")  # put your link here

ectelsys2 = pd.read_csv("D:/path")



# We use the file ectel.csv for testing.

prediction_time = 35  # till which week we should search the overall stability value

ectel_temp = ectel.loc[ectel.weeknumber <= prediction_time]  # dataframe with all data till predicted time

S = ectel_temp['idUser'].unique()  # list with student indexes

Y = [0, 1, 2]  # list of classes

x = 10  # x  earliest times of correct predictions



# Stability 

stability = m.Stability(ectel_temp, S)

print("Stability: ", stability)



# Accuracy

accuracy = m.Accuracy(ectel_temp, S)

print("Accuracy: ", accuracy)



# Earliness 

earliness = m.Earliness_Total(S, Y, x, ectel_temp)

print("Earliness: ", earliness)



# ESS 

# for ESS we need to know stability and earliness

ESS = m.ESS(stability, earliness)

print("ESS of average earliness: ", ESS)



# EAS 

# for EAS we need to know accuracy and earliness

EAS = m.EAS(accuracy, earliness)

print("EAS of average earliness: ", EAS)

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

assess_pps-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

assess_pps-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file assess_pps-0.1.1.tar.gz.

File metadata

  • Download URL: assess_pps-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for assess_pps-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d55c7941d5d96d241e3f4bafe2b0a0460db8de6b1fa53a66cd4b4b0267ef9fa3
MD5 86c7513cccdb150cb1810200e6fa153b
BLAKE2b-256 3ea08f9cf2e481fd24d9e20bdc4307d39e32faa59a5606afdba0405f8d2bd2e5

See more details on using hashes here.

File details

Details for the file assess_pps-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: assess_pps-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for assess_pps-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77e3555463a8dfea8ea19c3b659bc131beb6572ee8c797f1d99e573a4b298d0c
MD5 4f5f7fe1f429161bc29db5652d2990cf
BLAKE2b-256 613f9ba61dd34a56a0caf0552f3dd056dfc75c6905a27b17d91dd709510f8a39

See more details on using hashes here.

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