Skip to content

Commit 6e01301

Browse files
author
Yam Peleg
committed
hunga bunga
1 parent f1f13c6 commit 6e01301

7 files changed

Lines changed: 44 additions & 51 deletions

File tree

.idea/workspace.xml

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

hunga_bunga/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
2+
import warnings
3+
warnings.filterwarnings('ignore')
34
from multiprocessing import cpu_count
45
from sklearn.base import BaseEstimator
56
from regression import HungaBungaRegressor

hunga_bunga/__init__.pyc

135 Bytes
Binary file not shown.

hunga_bunga/classification.pyc

73 Bytes
Binary file not shown.

hunga_bunga/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
import warnings
3+
warnings.filterwarnings('ignore')
24

35
import sklearn.model_selection
46
import numpy as np
@@ -98,7 +100,7 @@ def cv_(): return cv_clf(x, y, test_size, n_splits, random_state, upsample) if i
98100
if brain: print(clf_Klass.__name__)
99101
if clf_Klass == KMeans: parameters['n_clusters'] = [len(np.unique(y))]
100102
elif clf_Klass in TREE_N_ENSEMBLE_MODELS: parameters['max_features'] = [v for v in parameters['max_features'] if v is None or type(v)==str or v<=num_features]
101-
if gridsearch: clf_search = GridSearchCVProgressBar(clf_Klass(), parameters, scoring, cv=cv_(), n_jobs=n_jobs)
103+
if grid_search: clf_search = GridSearchCVProgressBar(clf_Klass(), parameters, scoring, cv=cv_(), n_jobs=n_jobs)
102104
else: clf_search = RandomizedSearchCVProgressBar(clf_Klass(), parameters, scoring, cv=cv_(), n_jobs=n_jobs)
103105
clf_search.fit(x, y)
104106
timespent = timeit(clf_Klass, clf_search.best_params_, x, y)

hunga_bunga/core.pyc

145 Bytes
Binary file not shown.

hunga_bunga/regression.pyc

75 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)