Skip to main content

metrics module

Project description

This module is used to get metrics of Machine Learning/Deep Learning Models.It consists of all sklearn.metrics and stats module methods.Using this module you can also use all all different distances obtained in metrics.pairwise.cosine_distance etc.

from sklearning.metrics import *

y_test = [0,1,2,3,4]

y_pred = [0,1,2,3,5]

#Root Mean Squared Error

rmse = rootMeanSquaredError(y_test,y_pred)

print(rmse)

o/p:0.4472135954999579

#Regressor Summary

summary = regressorSummary(y_test,y_pred)

print(summary)

#Stats Value

statsValue(y_test,y_pred)

o/p:

statsValue(y_test,y_pred)

pvalues

[0.53047777 0.00190127]

tvalues

[-0.70710678 10.39230485]

rsquared

0.972972972972973

rsquared_adj

0.963963963963964

#All methods of sklean.metrics can be used by just giving the name of methods ex:

mse = mean_squared_error(y_test,y_pred)

print(mse)

o/p: 0.2

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

sklearning-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file sklearning-0.0.1.tar.gz.

File metadata

  • Download URL: sklearning-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.4rc1

File hashes

Hashes for sklearning-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b5b136d5b18e5d905ec77a1ea7551fed31a3f95873411d0619882cbe96096385
MD5 6e285bb176f584ac53f4fa1eb6707f7b
BLAKE2b-256 c5dc184c77e3215609fe8f9690b302c4467bd2c8d4748785e1051786184b1cc9

See more details on using hashes here.

Supported by

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