Commits

Jure Žbontar committed 2fc7ffb

Add majority.

Comments (0)

Files changed (1)

predavanja/majority.md

+Večinski klasifikator (Majority)
+================================
+
+
+
+`majority(X, y, X_test)`
+
+
+	def majority(X, y, X_test):
+		hist = np.bincount(y)
+		hist_normalized = hist / float(np.sum(hist))
+		return np.tile(hist_normalized, (X_test.shape[0], 1))