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 hashes)

Uploaded Source

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