Skip to content

Commit 7b67c2d

Browse files
author
Yam Peleg
committed
hunga bunga
1 parent 7153bec commit 7b67c2d

3 files changed

Lines changed: 401 additions & 1 deletion

File tree

.idea/workspace.xml

Lines changed: 354 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11

22

3-
from hunga_bunga import HungaBungaClassifier, HungaBungaRegressor
3+
import random
4+
5+
from hunga_bunga import HungaBungaClassifier, HungaBungaRegressor, HungaBungaZeroKnowledge
46
from hunga_bunga.regression import gen_reg_data
57
from sklearn import datasets
68

79

10+
811
# ---------- Getting The Data ----------
912

1013
iris = datasets.load_iris()
@@ -28,3 +31,13 @@
2831
print(mdl.predict(X_c))
2932

3033

34+
35+
# ---------- Zero Knowledge ----------
36+
37+
X, y = random.choice(((X_c, y_c), (X_r, y_r)))
38+
mdl = HungaBungaZeroKnowledge()
39+
mdl.fit(X, y)
40+
print(mdl.predict(X_c))
41+
print(mdl.problem_type)
42+
43+
# <3 Dean, this is 4 U <3

0 commit comments

Comments
 (0)