mirror of
https://github.com/Doctorado-ML/STree.git
synced 2025-08-16 16:06:01 +00:00
Fix random_sate issue in non linear kernels
This commit is contained in:
@@ -734,7 +734,7 @@ class Stree(BaseEstimator, ClassifierMixin):
|
|||||||
return node
|
return node
|
||||||
|
|
||||||
def _build_clf(self):
|
def _build_clf(self):
|
||||||
"""Build the correct classifier for the node"""
|
"""Build the right classifier for the node"""
|
||||||
return (
|
return (
|
||||||
LinearSVC(
|
LinearSVC(
|
||||||
max_iter=self.max_iter,
|
max_iter=self.max_iter,
|
||||||
@@ -750,6 +750,7 @@ class Stree(BaseEstimator, ClassifierMixin):
|
|||||||
C=self.C,
|
C=self.C,
|
||||||
gamma=self.gamma,
|
gamma=self.gamma,
|
||||||
degree=self.degree,
|
degree=self.degree,
|
||||||
|
random_state=self.random_state,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user