mirror of
https://github.com/Doctorado-ML/STree.git
synced 2025-08-15 15:36:00 +00:00
Update comment and readme
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# STree
|
||||
|
||||

|
||||
[](https://github.com/Doctorado-ML/STree/actions/workflows/codeql-analysis.yml)
|
||||
[](https://codecov.io/gh/doctorado-ml/stree)
|
||||
@@ -6,11 +8,10 @@
|
||||

|
||||
[](https://zenodo.org/badge/latestdoi/262658230)
|
||||
|
||||
# STree
|
||||

|
||||
|
||||
Oblique Tree classifier based on SVM nodes. The nodes are built and splitted with sklearn SVC models. Stree is a sklearn estimator and can be integrated in pipelines, grid searches, etc.
|
||||
|
||||

|
||||
|
||||
## Installation
|
||||
|
||||
|
@@ -746,7 +746,7 @@ class Splitter:
|
||||
Train time - True / Test time - False
|
||||
"""
|
||||
# data contains the distances of every sample to every class hyperplane
|
||||
# array of (m, nc) nc = # classes
|
||||
# array of (m, nc) nc = k if ovr, nc = k*(k-1)/2 if ovo
|
||||
data = self._distances(node, samples)
|
||||
if data.shape[0] < self._min_samples_split:
|
||||
# there aren't enough samples to split
|
||||
|
Reference in New Issue
Block a user