Skip to content

Instantly share code, notes, and snippets.

View wikii122's full-sized avatar

Wiktor Ślęczka wikii122

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wikii122 on github.
  • I am wikii122 (https://keybase.io/wikii122) on keybase.
  • I have a public key whose fingerprint is F99F 0034 D58F 8200 EC46 0F2B 5BE8 1D48 6151 B9B8

To claim this, I am signing this object:

@wikii122
wikii122 / edami7.r
Last active May 22, 2016 14:37
Clustering
############ Laboratory task ###################
#calculation of accuracy
accuracyCalc <- function(confTbl, startCol)
{
corr = 0;
for(i in startCol:ncol(confTbl))
{
corr = corr + max(confTbl[,i])
}
accuracy = corr/sum(confTbl)
# Simple additional info in type showcase
# Assume normal list
class List<T>:
... # List stuff
# Only defining one more type
class Index(int):
# Basically, it's int subtype that on every operation should return int, no overrides
pass